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, isNillable
getMaxOccurs, getMinOccurs, getName, getUserData, isNillable
protected final Object defaultValue
public AttributeDescriptorImpl(AttributeType type, Name name, int min, int max, boolean isNillable, Object defaultValue)
public AttributeType getType()
PropertyDescriptor
This value should never be null
. The type contains information about the
value of the property such as its java class.
getType
in interface AttributeDescriptor
getType
in interface PropertyDescriptor
getType
in class PropertyDescriptorImpl
PropertyDescriptor.getType()
public Object getDefaultValue()
AttributeDescriptor
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()
.
getDefaultValue
in interface AttributeDescriptor
public int hashCode()
hashCode
in class PropertyDescriptorImpl
public boolean equals(Object o)
equals
in class PropertyDescriptorImpl
public String toString()
toString
in class PropertyDescriptorImpl
public String getLocalName()
AttributeDescriptor
getName().getLocalPart
().getLocalName
in interface AttributeDescriptor
Copyright © 1996–2023 Geotools. All rights reserved.