public class AttributeTypeImpl extends PropertyTypeImpl implements AttributeType
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
identified |
binding, description, isAbstract, name, restrictions, superType, userData| Constructor and Description |
|---|
AttributeTypeImpl(Name name,
Class<?> binding,
boolean identified,
boolean isAbstract,
List<Filter> restrictions,
AttributeType superType,
InternationalString description) |
| Modifier and Type | Method and Description |
|---|---|
Object |
createDefaultValue() |
boolean |
equals(Object other)
Override of equals.
|
AttributeType |
getSuper()
The parent type of the property type.
|
int |
hashCode()
Override of hashcode.
|
boolean |
isIdentified()
Indicates if the type is identified or not.
|
Object |
parse(Object value)
Allows this AttributeType to convert an argument to its prefered storage type.
|
String |
toString() |
getBinding, getDescription, getName, getRestrictions, getUserData, isAbstractgetBinding, getDescription, getName, getRestrictions, getUserData, isAbstractpublic AttributeTypeImpl(Name name, Class<?> binding, boolean identified, boolean isAbstract, List<Filter> restrictions, AttributeType superType, InternationalString description)
public boolean isIdentified()
AttributeTypeIf this method returns true, then the corresponding attribute must have a
unique identifier, ie, Attribute#getID() must return a value, and cannot be
null.
isIdentified in interface AttributeTypetrue if the attribute is identified, otherwise false.Attribute#getID()public Object parse(Object value) throws IllegalArgumentException
value - the object to attempt parsing of.value converted to the preferred storage of this AttributeType
. If no parsing was possible then the same object is returned.IllegalArgumentException - if parsing is attempted and is unsuccessful.public Object createDefaultValue()
public AttributeType getSuper()
PropertyTypeThis method returns null if no super type is defined.
The super type may contain additional restrictions to be considered against properties of the the property type.
getSuper in interface AttributeTypegetSuper in interface PropertyTypegetSuper in class PropertyTypeImplnull.PropertyType.getSuper()public int hashCode()
hashCode in interface PropertyTypehashCode in class PropertyTypeImplpublic boolean equals(Object other)
equals in interface PropertyTypeequals in class PropertyTypeImplother - the object to be tested for equality.public String toString()
toString in class PropertyTypeImplCopyright © 1996–2021 Geotools. All rights reserved.