Package org.geotools.api.feature.type
Interface AttributeDescriptor
-
- All Superinterfaces:
PropertyDescriptor
- All Known Subinterfaces:
ChoiceAttributeType
,ChoiceGeometryType
,GeometryDescriptor
- All Known Implementing Classes:
AttributeDescriptorImpl
,ChoiceGeometryTypeImpl
,GeometryDescriptorImpl
public interface AttributeDescriptor extends PropertyDescriptor
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
getDefaultValue()
The default value for the attribute.String
getLocalName()
The local name for this AttributeDescriptor.AttributeType
getType()
Override ofPropertyDescriptor.getType()
which type narrows toAttributeType
.-
Methods inherited from interface PropertyDescriptor
getMaxOccurs, getMinOccurs, getName, getUserData, isNillable
-
-
-
-
Method Detail
-
getType
AttributeType getType()
Override ofPropertyDescriptor.getType()
which type narrows toAttributeType
.- Specified by:
getType
in interfacePropertyDescriptor
- See Also:
PropertyDescriptor.getType()
-
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()
.
-
-