public class NFEBasicAttributeConstraint extends java.lang.Object implements NFEAttributeConstraint
NFEAttributeConstraint| Constructor and Description |
|---|
NFEBasicAttributeConstraint() |
| 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.
|
public long getId()
NFEAttributeConstraintgetId in interface NFEAttributeConstraintpublic void setId(long id)
NFEAttributeConstraintsetId in interface NFEAttributeConstraintid - the constraint IDpublic void setAttributeDescriptor(NFEAttributeDescriptor attrDescriptor)
NFEAttributeConstraintsetAttributeDescriptor in interface NFEAttributeConstraintattrDescriptor - an attribute descriptor instancepublic NFEAttributeDescriptor getAttributeDescriptor()
NFEAttributeConstraintgetAttributeDescriptor in interface NFEAttributeConstraintpublic void setDefaultValue(java.lang.Object defaultValue)
NFEAttributeConstraintsetDefaultValue in interface NFEAttributeConstraintdefaultValue - an attribute default value. The type should match the type specified by the constraint's attribute descriptorpublic java.lang.Object getDefaultValue()
NFEAttributeConstraintgetDefaultValue in interface NFEAttributeConstraintpublic void setReadOnly(boolean readOnly)
NFEAttributeConstraintsetReadOnly in interface NFEAttributeConstraintreadOnly - true if the attribute is read-onlypublic boolean isReadOnly()
NFEAttributeConstraintisReadOnly in interface NFEAttributeConstraintpublic void setVisible(boolean visible)
NFEAttributeConstraintsetVisible in interface NFEAttributeConstraintvisible - true for visiblepublic boolean isVisible()
NFEAttributeConstraintisVisible in interface NFEAttributeConstraintpublic NFEAttributeConstraint createCopy()
NFEAttributeConstraintcreateCopy in interface NFEAttributeConstraint