Package org.geotools.api.feature.type
Interface AttributeDescriptor
- All Superinterfaces:
PropertyDescriptor
- All Known Subinterfaces:
ChoiceAttributeType
,ChoiceGeometryType
,GeometryDescriptor
- All Known Implementing Classes:
AttributeDescriptorImpl
,ChoiceGeometryTypeImpl
,GeometryDescriptorImpl
Describes an instance of an Attribute.
An AttributeDescriptor is an extension of PropertyDescriptor
which defines some additional information:
- A default value for an attribute
- Author:
- Jody Garnett, Refractions Research, Justin Deoliveira, The Open Planning Project
-
Method Summary
Modifier and TypeMethodDescriptionThe default value for the attribute.The local name for this AttributeDescriptor.getType()
Override ofPropertyDescriptor.getType()
which type narrows toAttributeType
.Methods inherited from interface PropertyDescriptor
getMaxOccurs, getMinOccurs, getName, getUserData, isNillable
-
Method Details
-
getType
AttributeType getType()Override ofPropertyDescriptor.getType()
which type narrows toAttributeType
.- Specified by:
getType
in interfacePropertyDescriptor
- See Also:
-
getLocalName
String getLocalName()The local name for this AttributeDescriptor. Specifically this returnsgetName().getLocalPart
().- Returns:
- The local name for this attribute descriptor.
-
getDefaultValue
Object getDefaultValue()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()
.
-