org.geotools.feature.type
Class AttributeDescriptorImpl

Object
  extended by PropertyDescriptorImpl
      extended by AttributeDescriptorImpl
All Implemented Interfaces:
AttributeDescriptor, PropertyDescriptor
Direct Known Subclasses:
GeometryDescriptorImpl

public class AttributeDescriptorImpl
extends PropertyDescriptorImpl
implements AttributeDescriptor


Field Summary
protected  Object defaultValue
           
 
Fields inherited from class PropertyDescriptorImpl
isNillable, maxOccurs, minOccurs, name, type
 
Constructor Summary
AttributeDescriptorImpl(AttributeType type, Name name, int min, int max, boolean isNillable, Object defaultValue)
           
 
Method Summary
 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 class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
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 interface AttributeDescriptor
Specified by:
getType in interface PropertyDescriptor
Overrides:
getType in class PropertyDescriptorImpl
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 by getType().getBinding().

Specified by:
getDefaultValue in interface AttributeDescriptor

hashCode

public int hashCode()
Overrides:
hashCode in class PropertyDescriptorImpl

equals

public boolean equals(Object o)
Overrides:
equals in class PropertyDescriptorImpl

toString

public String toString()
Overrides:
toString in class PropertyDescriptorImpl

getLocalName

public String getLocalName()
Description copied from interface: AttributeDescriptor
The local name for this AttributeDescriptor. Specifically this returns getName().getLocalPart().

Specified by:
getLocalName in interface AttributeDescriptor
Returns:
The local name for this attribute descriptor.


Copyright © 1996-2014 Geotools. All Rights Reserved.