Class NFEBasicAttributeConstraint
- java.lang.Object
-
- oracle.spatial.network.nfe.model.feature.NFEBasicAttributeConstraint
-
- All Implemented Interfaces:
NFEAttributeConstraint
public class NFEBasicAttributeConstraint extends java.lang.Object implements NFEAttributeConstraint
The deault implementation ofNFEAttributeConstraint
-
-
Constructor Summary
Constructors Constructor Description NFEBasicAttributeConstraint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NFEAttributeConstraintcreateCopy()Returns object copy.NFEAttributeDescriptorgetAttributeDescriptor()Gets the attribute descriptor where the constraint is enforcedjava.lang.ObjectgetDefaultValue()Gets the value the attribute must contain when it is createdlonggetId()Gets the constraint IDbooleanisReadOnly()Gets whether the attribute is writable or read-onlybooleanisVisible()Tells whether the attribute is visible or not.voidsetAttributeDescriptor(NFEAttributeDescriptor attrDescriptor)Sets the attribute descriptor where the constraint is enforcedvoidsetDefaultValue(java.lang.Object defaultValue)Sets the value the attribute must contain when it is createdvoidsetId(long id)Sets the constraint IDvoidsetReadOnly(boolean readOnly)Sets whether the attribute is writable or read-onlyvoidsetVisible(boolean visible)Sets whether the attribute is visible or not.
-
-
-
Method Detail
-
getId
public long getId()
Description copied from interface:NFEAttributeConstraintGets the constraint ID- Specified by:
getIdin interfaceNFEAttributeConstraint- Returns:
- the constraint ID
-
setId
public void setId(long id)
Description copied from interface:NFEAttributeConstraintSets the constraint ID- Specified by:
setIdin interfaceNFEAttributeConstraint- Parameters:
id- the constraint ID
-
setAttributeDescriptor
public void setAttributeDescriptor(NFEAttributeDescriptor attrDescriptor)
Description copied from interface:NFEAttributeConstraintSets the attribute descriptor where the constraint is enforced- Specified by:
setAttributeDescriptorin interfaceNFEAttributeConstraint- Parameters:
attrDescriptor- an attribute descriptor instance
-
getAttributeDescriptor
public NFEAttributeDescriptor getAttributeDescriptor()
Description copied from interface:NFEAttributeConstraintGets the attribute descriptor where the constraint is enforced- Specified by:
getAttributeDescriptorin interfaceNFEAttributeConstraint- Returns:
- an attribute descriptor instance
-
setDefaultValue
public void setDefaultValue(java.lang.Object defaultValue)
Description copied from interface:NFEAttributeConstraintSets the value the attribute must contain when it is created- Specified by:
setDefaultValuein interfaceNFEAttributeConstraint- Parameters:
defaultValue- an attribute default value. The type should match the type specified by the constraint's attribute descriptor
-
getDefaultValue
public java.lang.Object getDefaultValue()
Description copied from interface:NFEAttributeConstraintGets the value the attribute must contain when it is created- Specified by:
getDefaultValuein interfaceNFEAttributeConstraint- Returns:
- the attribute default value
-
setReadOnly
public void setReadOnly(boolean readOnly)
Description copied from interface:NFEAttributeConstraintSets whether the attribute is writable or read-only- Specified by:
setReadOnlyin interfaceNFEAttributeConstraint- Parameters:
readOnly- true if the attribute is read-only
-
isReadOnly
public boolean isReadOnly()
Description copied from interface:NFEAttributeConstraintGets whether the attribute is writable or read-only- Specified by:
isReadOnlyin interfaceNFEAttributeConstraint- Returns:
- true if the attribute is read-only
-
setVisible
public void setVisible(boolean visible)
Description copied from interface:NFEAttributeConstraintSets whether the attribute is visible or not. It is used with graphical editors.- Specified by:
setVisiblein interfaceNFEAttributeConstraint- Parameters:
visible- true for visible
-
isVisible
public boolean isVisible()
Description copied from interface:NFEAttributeConstraintTells whether the attribute is visible or not. It is used with graphical editors.- Specified by:
isVisiblein interfaceNFEAttributeConstraint- Returns:
- true for visible
-
createCopy
public NFEAttributeConstraint createCopy()
Description copied from interface:NFEAttributeConstraintReturns object copy.- Specified by:
createCopyin interfaceNFEAttributeConstraint- Returns:
- object copy
-
-