org.opengis.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:

Author:
Jody Garnett, Refractions Research, Justin Deoliveira, The Open Planning Project

Method Summary
 Object getDefaultValue()
          The default value for the attribute.
 String getLocalName()
          The local name for this AttributeDescriptor.
 AttributeType getType()
          Override of PropertyDescriptor.getType() which type narrows to AttributeType.
 
Methods inherited from interface PropertyDescriptor
getMaxOccurs, getMinOccurs, getName, getUserData, isNillable
 

Method Detail

getType

AttributeType getType()
Override of PropertyDescriptor.getType() which type narrows to AttributeType.

Specified by:
getType in interface PropertyDescriptor
See Also:
PropertyDescriptor.getType()

getLocalName

String getLocalName()
The local name for this AttributeDescriptor. Specifically this returns getName().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 by getType().getBinding().



Copyright © 1996-2014 Geotools. All Rights Reserved.