org.geotools.feature.type
Class AttributeDescriptorImpl
Object
PropertyDescriptorImpl
AttributeDescriptorImpl
- All Implemented Interfaces:
- AttributeDescriptor, PropertyDescriptor
- Direct Known Subclasses:
- GeometryDescriptorImpl
public class AttributeDescriptorImpl
- extends PropertyDescriptorImpl
- implements AttributeDescriptor
defaultValue
protected final Object defaultValue
AttributeDescriptorImpl
public AttributeDescriptorImpl(AttributeType type,
Name name,
int min,
int max,
boolean isNillable,
Object defaultValue)
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.