org.geotools.feature.type
Class AttributeTypeImpl
java.lang.Object
org.geotools.feature.type.PropertyTypeImpl
org.geotools.feature.type.AttributeTypeImpl
- All Implemented Interfaces:
- org.opengis.feature.type.AttributeType, org.opengis.feature.type.PropertyType
- Direct Known Subclasses:
- ComplexTypeImpl, GeometryTypeImpl
public class AttributeTypeImpl
- extends PropertyTypeImpl
- implements org.opengis.feature.type.AttributeType
Base class for attribute types.
- Author:
- Justin Deoliveira, The Open Planning Project, jdeolive@openplans.org
Constructor Summary |
AttributeTypeImpl(org.opengis.feature.type.Name name,
java.lang.Class<?> binding,
boolean identified,
boolean isAbstract,
java.util.List<org.opengis.filter.Filter> restrictions,
org.opengis.feature.type.AttributeType superType,
org.opengis.util.InternationalString description)
|
Method Summary |
java.lang.Object |
createDefaultValue()
|
boolean |
equals(java.lang.Object other)
Override of equals. |
org.opengis.feature.type.AttributeType |
getSuper()
|
int |
hashCode()
Override of hashcode. |
boolean |
isIdentified()
|
java.lang.Object |
parse(java.lang.Object value)
Allows this AttributeType to convert an argument to its prefered storage
type. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.opengis.feature.type.PropertyType |
getBinding, getDescription, getName, getRestrictions, getUserData, isAbstract |
identified
protected final boolean identified
AttributeTypeImpl
public AttributeTypeImpl(org.opengis.feature.type.Name name,
java.lang.Class<?> binding,
boolean identified,
boolean isAbstract,
java.util.List<org.opengis.filter.Filter> restrictions,
org.opengis.feature.type.AttributeType superType,
org.opengis.util.InternationalString description)
isIdentified
public boolean isIdentified()
- Specified by:
isIdentified
in interface org.opengis.feature.type.AttributeType
parse
public java.lang.Object parse(java.lang.Object value)
throws java.lang.IllegalArgumentException
- Allows this AttributeType to convert an argument to its prefered storage
type. If no parsing is possible, returns the original value. If a parse
is attempted, yet fails (i.e. a poor decimal format) throw the Exception.
This is mostly for use internally in Features, but implementors should
simply follow the rules to be safe.
- Parameters:
value
- the object to attempt parsing of.
- Returns:
value
converted to the preferred storage of this
AttributeType
. If no parsing was possible then
the same object is returned.
- Throws:
java.lang.IllegalArgumentException
- if parsing is attempted and is unsuccessful.
createDefaultValue
public java.lang.Object createDefaultValue()
getSuper
public org.opengis.feature.type.AttributeType getSuper()
- Specified by:
getSuper
in interface org.opengis.feature.type.AttributeType
- Specified by:
getSuper
in interface org.opengis.feature.type.PropertyType
- Overrides:
getSuper
in class PropertyTypeImpl
hashCode
public int hashCode()
- Override of hashcode.
- Specified by:
hashCode
in interface org.opengis.feature.type.PropertyType
- Overrides:
hashCode
in class PropertyTypeImpl
equals
public boolean equals(java.lang.Object other)
- Override of equals.
- Specified by:
equals
in interface org.opengis.feature.type.PropertyType
- Overrides:
equals
in class PropertyTypeImpl
- Parameters:
other
- the object to be tested for equality.
- Returns:
- whether other is equal to this attribute Type.
toString
public java.lang.String toString()
- Overrides:
toString
in class PropertyTypeImpl
Copyright © 1996-2010 Geotools. All Rights Reserved.