public class AttributeDescriptorImpl extends PropertyDescriptorImpl implements AttributeDescriptor
| Modifier and Type | Field and Description |
|---|---|
protected Object |
defaultValue |
isNillable, maxOccurs, minOccurs, name, type| Constructor and Description |
|---|
AttributeDescriptorImpl(AttributeType type,
Name name,
int min,
int max,
boolean isNillable,
Object defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
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() |
getMaxOccurs, getMinOccurs, getName, getUserData, isNillablegetMaxOccurs, getMinOccurs, getName, getUserData, isNillableprotected final Object defaultValue
public AttributeDescriptorImpl(AttributeType type, Name name, int min, int max, boolean isNillable, Object defaultValue)
public AttributeType getType()
PropertyDescriptorThis value should never be null. The type contains information about the
value of the property such as its java class.
getType in interface AttributeDescriptorgetType in interface PropertyDescriptorgetType in class PropertyDescriptorImplPropertyDescriptor.getType()public Object getDefaultValue()
AttributeDescriptorThis 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().
getDefaultValue in interface AttributeDescriptorpublic int hashCode()
hashCode in class PropertyDescriptorImplpublic boolean equals(Object o)
equals in class PropertyDescriptorImplpublic String toString()
toString in class PropertyDescriptorImplpublic String getLocalName()
AttributeDescriptor
getName().getLocalPart().getLocalName in interface AttributeDescriptorCopyright © 1996–2021 Geotools. All rights reserved.