|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectPropertyDescriptorImpl
AttributeDescriptorImpl
SetAttributeType
public class SetAttributeType
Represents an un-ordered Set of AttributeTypes. For SFS this should not be used. For GML this is the same as an element whose complexType contains a All of Attributes. NOTE: Some of the methods in this class has nasty order-dependant assumptions, please fix.
modules/library/legacy (gt-legacy.jar)
Field Summary |
---|
Fields inherited from class AttributeDescriptorImpl |
---|
defaultValue |
Fields inherited from class PropertyDescriptorImpl |
---|
isNillable, maxOccurs, minOccurs, name, type |
Fields inherited from interface AttributeType |
---|
UNBOUNDED |
Constructor Summary | |
---|---|
SetAttributeType(SetAttributeType copy)
Deprecated. |
|
SetAttributeType(String name,
boolean nillable,
AttributeType[] children)
Deprecated. |
|
SetAttributeType(String name,
boolean nillable,
int min,
int max,
AttributeType[] children,
Filter restriction)
Deprecated. |
Method Summary | |
---|---|
Object |
createDefaultValue()
Deprecated. This method is unstable ... and does not yet check validity well. |
Object |
duplicate(Object src)
Deprecated. This method is unstable ... and does not yet check validity well. |
int |
find(AttributeType type)
Deprecated. Find the position of a given AttributeType. |
int |
find(String attName)
Deprecated. Find the position of an AttributeType which matches the given String. |
int |
getAttributeCount()
Deprecated. Returns the number of attributes at the first 'level' of the schema. |
AttributeType |
getAttributeType(int position)
Deprecated. Gets the attributeType at the specified index. |
AttributeType |
getAttributeType(String xPath)
Deprecated. Gets the attributeType at this xPath, if the specified attributeType does not exist then null is returned. |
AttributeType[] |
getAttributeTypes()
Deprecated. |
Class |
getBinding()
Deprecated. Gets the class/type/binding for this attribute. |
String |
getLocalName()
Deprecated. Returns the unqualified name of this attribute. |
Filter |
getRestriction()
Deprecated. This represents a Facet in XML schema ... for example can be used to represent the max length of 20 for a string. |
boolean |
hasAttributeType(String xPath)
Deprecated. This is only used twice in the whole geotools code base, and one of those is for a test, so we're removing it from the interface. |
boolean |
isGeometry()
Deprecated. |
Object |
parse(Object value)
Deprecated. This method is unstable ... and does not yet check validity well. |
void |
validate(Object obj)
Deprecated. This method is unstable ... and does not yet check validity well. |
Methods inherited from class AttributeDescriptorImpl |
---|
equals, getDefaultValue, getType, hashCode, toString |
Methods inherited from class PropertyDescriptorImpl |
---|
getMaxOccurs, getMinOccurs, getName, getUserData, isNillable |
Methods inherited from class Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface AttributeType |
---|
getMaxOccurs, getMinOccurs, isNillable |
Methods inherited from interface AttributeDescriptor |
---|
getDefaultValue, getType |
Methods inherited from interface PropertyDescriptor |
---|
getName, getUserData |
Constructor Detail |
---|
public SetAttributeType(SetAttributeType copy)
copy
- public SetAttributeType(String name, boolean nillable, int min, int max, AttributeType[] children, Filter restriction)
public SetAttributeType(String name, boolean nillable, AttributeType[] children)
Method Detail |
---|
public Filter getRestriction()
AttributeType
getRestriction
in interface AttributeType
public String getLocalName()
This method is a replacement for PropertyDescriptor.getName()
in order to resolve
a naming conflict with the geoapi feature model.
getLocalName
in interface AttributeType
getLocalName
in interface AttributeDescriptor
getLocalName
in class AttributeDescriptorImpl
PropertyDescriptor.getName()
public Class getBinding()
This method is a replacement for AttributeDescriptor.getType()
in order to resolve
a naming conflict with the geoapi feature model.
getBinding
in interface AttributeType
AttributeDescriptor.getType()
public boolean isGeometry()
public Object parse(Object value) throws IllegalArgumentException
parse
in interface AttributeType
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 void validate(Object obj) throws IllegalArgumentException
validate
in interface AttributeType
obj
- The object to be tested for validity.
IllegalArgumentException
- if the object does not validate.public Object duplicate(Object src) throws IllegalAttributeException
duplicate
in interface AttributeType
src
- The Object to duplicate.
IllegalAttributeException
- If the src Object is not the correct
type.public Object createDefaultValue()
createDefaultValue
in interface AttributeType
public boolean hasAttributeType(String xPath)
xPath
- XPath pointer to attribute type.
public int getAttributeCount()
public AttributeType getAttributeType(String xPath)
xPath
- XPath pointer to attribute type.
public int find(AttributeType type)
type
- The type to search for.
public int find(String attName)
attName
- the name to look for
public AttributeType getAttributeType(int position)
position
- the position of the attribute to check.
public AttributeType[] getAttributeTypes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |