Package org.geotools.feature.type
Class AttributeDescriptorImpl
- Object
-
- PropertyDescriptorImpl
-
- AttributeDescriptorImpl
-
- All Implemented Interfaces:
AttributeDescriptor
,PropertyDescriptor
- Direct Known Subclasses:
GeometryDescriptorImpl
public class AttributeDescriptorImpl extends PropertyDescriptorImpl implements AttributeDescriptor
-
-
Field Summary
Fields Modifier and Type Field Description protected Object
defaultValue
-
Fields inherited from class PropertyDescriptorImpl
isNillable, maxOccurs, minOccurs, name, type
-
-
Constructor Summary
Constructors Constructor Description AttributeDescriptorImpl(AttributeType type, Name name, int min, int max, boolean isNillable, Object defaultValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Object
getDefaultValue()
The default value for the attribute.String
getLocalName()
The local name for this AttributeDescriptor.AttributeType
getType()
The type of the property defined by the descriptor.int
hashCode()
String
toString()
-
Methods inherited from class PropertyDescriptorImpl
getMaxOccurs, getMinOccurs, getName, getUserData, isNillable
-
Methods inherited from interface PropertyDescriptor
getMaxOccurs, getMinOccurs, getName, getUserData, isNillable
-
-
-
-
Field Detail
-
defaultValue
protected final Object defaultValue
-
-
Constructor Detail
-
AttributeDescriptorImpl
public AttributeDescriptorImpl(AttributeType type, Name name, int min, int max, boolean isNillable, Object defaultValue)
-
-
Method Detail
-
getType
public AttributeType 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:
PropertyDescriptor.getType()
-
getDefaultValue
public Object 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
public boolean equals(Object o)
- Overrides:
equals
in classPropertyDescriptorImpl
-
toString
public String toString()
- Overrides:
toString
in classPropertyDescriptorImpl
-
getLocalName
public String 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.
-
-