| java.lang.Object org.geotools.feature.type.ListAttributeType
All known Subclasses: org.geotools.feature.type.NestedAttributeType,
ListAttributeType | public class ListAttributeType implements AttributeType(Code) | | Represents an ordered list of AttributeTypes. For SFS this will be a
FeatureType. For GML this is the same as an element whose complexType
contains a Sequence of Attributes.
author: dzwiers |
ListAttributeType | public ListAttributeType(String name, boolean nillable, int min, int max, AttributeType[] children, Filter restriction)(Code) | | |
find | public int find(AttributeType type)(Code) | | Find the position of a given AttributeType.
Parameters: type - The type to search for. -1 if not found, a zero-based index if found. |
find | public int find(String attName)(Code) | | Find the position of an AttributeType which matches the given String.
Parameters: attName - the name to look for -1 if not found, zero-based index otherwise |
getAttributeCount | public int getAttributeCount()(Code) | | Returns the number of attributes at the first 'level' of the schema.
equivalent value to getAttributeTypes().length |
getAttributeType | public AttributeType getAttributeType(String xPath)(Code) | | Gets the attributeType at this xPath, if the specified attributeType
does not exist then null is returned.
Parameters: xPath - XPath pointer to attribute type. True if attribute exists. |
getAttributeType | public AttributeType getAttributeType(int position)(Code) | | Gets the attributeType at the specified index.
Parameters: position - the position of the attribute to check. The attribute type at the specified position. |
getMaxOccurs | public int getMaxOccurs()(Code) | | |
getMinOccurs | public int getMinOccurs()(Code) | | |
getRestriction | public Filter getRestriction()(Code) | | |
hasAttributeType | public boolean hasAttributeType(String xPath)(Code) | | 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. If
getAttributeType does not have the AttributeType it will just return
null. Gets the number of occurrences of this attribute.
Parameters: xPath - XPath pointer to attribute type. Number of occurrences. |
isGeometry | public boolean isGeometry()(Code) | | |
isNillable | public boolean isNillable()(Code) | | |
|
|