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()
NFEAttributeConstraint
getId
in interface NFEAttributeConstraint
public void setId(long id)
NFEAttributeConstraint
setId
in interface NFEAttributeConstraint
id
- the constraint IDpublic void setAttributeDescriptor(NFEAttributeDescriptor attrDescriptor)
NFEAttributeConstraint
setAttributeDescriptor
in interface NFEAttributeConstraint
attrDescriptor
- an attribute descriptor instancepublic NFEAttributeDescriptor getAttributeDescriptor()
NFEAttributeConstraint
getAttributeDescriptor
in interface NFEAttributeConstraint
public void setDefaultValue(java.lang.Object defaultValue)
NFEAttributeConstraint
setDefaultValue
in interface NFEAttributeConstraint
defaultValue
- an attribute default value. The type should match the type specified by the constraint's attribute descriptorpublic java.lang.Object getDefaultValue()
NFEAttributeConstraint
getDefaultValue
in interface NFEAttributeConstraint
public void setReadOnly(boolean readOnly)
NFEAttributeConstraint
setReadOnly
in interface NFEAttributeConstraint
readOnly
- true if the attribute is read-onlypublic boolean isReadOnly()
NFEAttributeConstraint
isReadOnly
in interface NFEAttributeConstraint
public void setVisible(boolean visible)
NFEAttributeConstraint
setVisible
in interface NFEAttributeConstraint
visible
- true for visiblepublic boolean isVisible()
NFEAttributeConstraint
isVisible
in interface NFEAttributeConstraint
public NFEAttributeConstraint createCopy()
NFEAttributeConstraint
createCopy
in interface NFEAttributeConstraint