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, isAbstract
getBinding, getDescription, getName, getRestrictions, getUserData, isAbstract
public AttributeTypeImpl(Name name, Class<?> binding, boolean identified, boolean isAbstract, List<Filter> restrictions, AttributeType superType, InternationalString description)
public boolean isIdentified()
AttributeType
If 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 AttributeType
true
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()
PropertyType
This 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 AttributeType
getSuper
in interface PropertyType
getSuper
in class PropertyTypeImpl
null
.PropertyType.getSuper()
public int hashCode()
hashCode
in interface PropertyType
hashCode
in class PropertyTypeImpl
public boolean equals(Object other)
equals
in interface PropertyType
equals
in class PropertyTypeImpl
other
- the object to be tested for equality.public String toString()
toString
in class PropertyTypeImpl
Copyright © 1996–2023 Geotools. All rights reserved.