|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ParameterConstraint<E>
Title: ParameterConstraintAPI
Description: This is the interface that all constraints must implement. Constraints store such information as if a value is allowed, if the data is editable, i.e. functions that restrict or allow setting new values on parameters.
| Method Summary | |
|---|---|
Object |
clone()
Returns a copy so you can't edit or damage the origial. |
String |
getName()
Every parameter constraint has a name, this function returns that name. |
boolean |
isAllowed(E obj)
Determine if the new value being set is allowed. |
boolean |
isEditable()
Determines if the value can be edited, i.e. |
boolean |
isNullAllowed()
A parameter may or may not allow null values. |
void |
setName(String name)
Every parameter constraint has a name, this function sets that name. |
void |
setNonEditable()
Disables editing the value once it is set. |
void |
setNullAllowed(boolean nullAllowed)
A parameter may or may not allow null values. |
| Method Detail |
|---|
String getName()
getName in interface Named
void setName(String name)
throws EditableException
EditableExceptionboolean isAllowed(E obj)
obj - Object to check if allowed via constraints.
boolean isEditable()
void setNonEditable()
Object clone()
void setNullAllowed(boolean nullAllowed)
throws EditableException
EditableExceptionboolean isNullAllowed()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||