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 Details

    • getType

      AttributeType getType()
      Override of PropertyDescriptor.getType() which type narrows to AttributeType.
      Specified by:
      getType in interface PropertyDescriptor
      See Also:
    • 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().