public interface NFEAttributeConstraint
Modifier and Type | Method and Description |
---|---|
NFEAttributeConstraint |
createCopy()
Returns object copy.
|
NFEAttributeDescriptor |
getAttributeDescriptor()
Gets the attribute descriptor where the constraint is enforced
|
java.lang.Object |
getDefaultValue()
Gets the value the attribute must contain when it is created
|
long |
getId()
Gets the constraint ID
|
boolean |
isReadOnly()
Gets whether the attribute is writable or read-only
|
boolean |
isVisible()
Tells whether the attribute is visible or not.
|
void |
setAttributeDescriptor(NFEAttributeDescriptor attrDescriptor)
Sets the attribute descriptor where the constraint is enforced
|
void |
setDefaultValue(java.lang.Object defaultValue)
Sets the value the attribute must contain when it is created
|
void |
setId(long id)
Sets the constraint ID
|
void |
setReadOnly(boolean readOnly)
Sets whether the attribute is writable or read-only
|
void |
setVisible(boolean visible)
Sets whether the attribute is visible or not.
|
long getId()
void setId(long id)
id
- the constraint IDvoid setAttributeDescriptor(NFEAttributeDescriptor attrDescriptor)
attrDescriptor
- an attribute descriptor instanceNFEAttributeDescriptor getAttributeDescriptor()
void setDefaultValue(java.lang.Object defaultValue)
defaultValue
- an attribute default value. The type should match the type specified by the constraint's attribute descriptorjava.lang.Object getDefaultValue()
void setReadOnly(boolean readOnly)
readOnly
- true if the attribute is read-onlyboolean isReadOnly()
void setVisible(boolean visible)
visible
- true for visibleboolean isVisible()
NFEAttributeConstraint createCopy()