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 NFEAttributeConstraint
createCopy()
Returns object copy.NFEAttributeDescriptor
getAttributeDescriptor()
Gets the attribute descriptor where the constraint is enforcedjava.lang.Object
getDefaultValue()
Gets the value the attribute must contain when it is createdlong
getId()
Gets the constraint IDboolean
isReadOnly()
Gets whether the attribute is writable or read-onlyboolean
isVisible()
Tells whether the attribute is visible or not.void
setAttributeDescriptor(NFEAttributeDescriptor attrDescriptor)
Sets the attribute descriptor where the constraint is enforcedvoid
setDefaultValue(java.lang.Object defaultValue)
Sets the value the attribute must contain when it is createdvoid
setId(long id)
Sets the constraint IDvoid
setReadOnly(boolean readOnly)
Sets whether the attribute is writable or read-onlyvoid
setVisible(boolean visible)
Sets whether the attribute is visible or not.
-
-
-
Method Detail
-
getId
public long getId()
Description copied from interface:NFEAttributeConstraint
Gets the constraint ID- Specified by:
getId
in interfaceNFEAttributeConstraint
- Returns:
- the constraint ID
-
setId
public void setId(long id)
Description copied from interface:NFEAttributeConstraint
Sets the constraint ID- Specified by:
setId
in interfaceNFEAttributeConstraint
- Parameters:
id
- the constraint ID
-
setAttributeDescriptor
public void setAttributeDescriptor(NFEAttributeDescriptor attrDescriptor)
Description copied from interface:NFEAttributeConstraint
Sets the attribute descriptor where the constraint is enforced- Specified by:
setAttributeDescriptor
in interfaceNFEAttributeConstraint
- Parameters:
attrDescriptor
- an attribute descriptor instance
-
getAttributeDescriptor
public NFEAttributeDescriptor getAttributeDescriptor()
Description copied from interface:NFEAttributeConstraint
Gets the attribute descriptor where the constraint is enforced- Specified by:
getAttributeDescriptor
in interfaceNFEAttributeConstraint
- Returns:
- an attribute descriptor instance
-
setDefaultValue
public void setDefaultValue(java.lang.Object defaultValue)
Description copied from interface:NFEAttributeConstraint
Sets the value the attribute must contain when it is created- Specified by:
setDefaultValue
in 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:NFEAttributeConstraint
Gets the value the attribute must contain when it is created- Specified by:
getDefaultValue
in interfaceNFEAttributeConstraint
- Returns:
- the attribute default value
-
setReadOnly
public void setReadOnly(boolean readOnly)
Description copied from interface:NFEAttributeConstraint
Sets whether the attribute is writable or read-only- Specified by:
setReadOnly
in interfaceNFEAttributeConstraint
- Parameters:
readOnly
- true if the attribute is read-only
-
isReadOnly
public boolean isReadOnly()
Description copied from interface:NFEAttributeConstraint
Gets whether the attribute is writable or read-only- Specified by:
isReadOnly
in interfaceNFEAttributeConstraint
- Returns:
- true if the attribute is read-only
-
setVisible
public void setVisible(boolean visible)
Description copied from interface:NFEAttributeConstraint
Sets whether the attribute is visible or not. It is used with graphical editors.- Specified by:
setVisible
in interfaceNFEAttributeConstraint
- Parameters:
visible
- true for visible
-
isVisible
public boolean isVisible()
Description copied from interface:NFEAttributeConstraint
Tells whether the attribute is visible or not. It is used with graphical editors.- Specified by:
isVisible
in interfaceNFEAttributeConstraint
- Returns:
- true for visible
-
createCopy
public NFEAttributeConstraint createCopy()
Description copied from interface:NFEAttributeConstraint
Returns object copy.- Specified by:
createCopy
in interfaceNFEAttributeConstraint
- Returns:
- object copy
-
-