Package org.geotools.feature.type
Class AttributeDescriptorImpl
Object
PropertyDescriptorImpl
AttributeDescriptorImpl
- All Implemented Interfaces:
AttributeDescriptor
,PropertyDescriptor
- Direct Known Subclasses:
GeometryDescriptorImpl
-
Field Summary
FieldsFields inherited from class PropertyDescriptorImpl
isNillable, maxOccurs, minOccurs, name, type
-
Constructor Summary
ConstructorsConstructorDescriptionAttributeDescriptorImpl
(AttributeType type, Name name, int min, int max, boolean isNillable, Object defaultValue) -
Method Summary
Methods inherited from class PropertyDescriptorImpl
getMaxOccurs, getMinOccurs, getName, getUserData, isNillable
Methods inherited from interface PropertyDescriptor
getMaxOccurs, getMinOccurs, getName, getUserData, isNillable
-
Field Details
-
defaultValue
-
-
Constructor Details
-
AttributeDescriptorImpl
public AttributeDescriptorImpl(AttributeType type, Name name, int min, int max, boolean isNillable, Object defaultValue)
-
-
Method Details
-
getType
Description copied from interface:PropertyDescriptor
The type of the property defined by the descriptor.This value should never be
null
. The type contains information about the value of the property such as its java class.- Specified by:
getType
in interfaceAttributeDescriptor
- Specified by:
getType
in interfacePropertyDescriptor
- Overrides:
getType
in classPropertyDescriptorImpl
- See Also:
-
getDefaultValue
Description copied from interface:AttributeDescriptor
The default value for the attribute.This value is used when an attribute is created and no value for it is specified.
This value may be
null
. If it is non-null it should be an instance of of the class specified bygetType().getBinding()
.- Specified by:
getDefaultValue
in interfaceAttributeDescriptor
-
hashCode
public int hashCode()- Overrides:
hashCode
in classPropertyDescriptorImpl
-
equals
- Overrides:
equals
in classPropertyDescriptorImpl
-
toString
- Overrides:
toString
in classPropertyDescriptorImpl
-
getLocalName
Description copied from interface:AttributeDescriptor
The local name for this AttributeDescriptor. Specifically this returnsgetName().getLocalPart
().- Specified by:
getLocalName
in interfaceAttributeDescriptor
- Returns:
- The local name for this attribute descriptor.
-