| java.lang.Object org.geotools.feature.Schema
Schema | public class Schema (Code) | | This class contains utility methods focused on the schema represented by
the FeatureType data model.
These methods are often used for implementation the convience methods
such as FeatureType.getAttributeCount(), although they may be used directly
with any FeatureType.
These schema methods are based on the *complete* picture indicated by a FeatureType
and its ancestors. Many of these methods are focused on the derivation of AttribtueTypes
during an override.
See Also: FeatureTypes See Also: FeatureType author: Jody Garnett since: 2.1.0 |
Method Summary | |
public static AttributeType | attribute(FeatureType type, int index) | public static AttributeType | attribute(FeatureType type, String name) | public static int | attributeCount(FeatureType featureType) Walk the provided FeatureType and produce a count of distinct attribtues. | public static List | attributes(FeatureType featureType) | public static List | attributes(FeatureType featureType, List list) | public static int | find(FeatureType type, String name) | public AttributeType | getAttribute(FeatureType type, int index) Look up based on name in the provided position. | public AttributeType | getAttribute(FeatureType type, String name) | public int | getAttributeCount(FeatureType featureType) Walk the provided FeatureType and produce a count of distinct attribtues. | public List | getAttributes(FeatureType featureType) | public List | getAttributes(FeatureType featureType, List list) This order is to be respected, based on Ancestors and so on. | public int | getIndexOf(FeatureType type, String name) Lookup can only really be by name. | public List | getNames(FeatureType featureType) Does a quick walk to detect only a list of attribute names.
This method does not produce the complete schema (ie derrived restrictions based
on attribute facets). | public List | getNames(FeatureType featureType, List names) This order is to be respected, based on Ancestors and so on. | public Filter | getRestrictions(FeatureType featureType, String name) Query featureType information the complete restrictions for the indicated name. | public AttributeType | getXPath(FeatureType type, String xpath) Look up based on name in the provided position. | public static List | names(FeatureType featureType) | public static List | names(FeatureType featureType, List names) | public static Filter | restriction(FeatureType featureType, String name) | public static AttributeType | xpath(FeatureType type, String xpath) |
Schema | public Schema(FilterFactory filterFactory)(Code) | | |
attributeCount | public static int attributeCount(FeatureType featureType)(Code) | | Walk the provided FeatureType and produce a count of distinct attribtues.
used to detect duplicate attributes names (ie override)
Parameters: featureType - |
getAttribute | public AttributeType getAttribute(FeatureType type, int index)(Code) | | Look up based on name in the provided position.
Parameters: type - the FeatureType Parameters: index - the position |
getAttributeCount | public int getAttributeCount(FeatureType featureType)(Code) | | Walk the provided FeatureType and produce a count of distinct attribtues.
used to detect duplicate attributes names (ie override)
Parameters: featureType - |
getAttributes | public List getAttributes(FeatureType featureType, List list)(Code) | | This order is to be respected, based on Ancestors and so on.
This method is "faster" then actually constructing the merged
AttribtueTypes.
|
getIndexOf | public int getIndexOf(FeatureType type, String name)(Code) | | Lookup can only really be by name.
Parameters: type - |
getNames | public List getNames(FeatureType featureType)(Code) | | Does a quick walk to detect only a list of attribute names.
This method does not produce the complete schema (ie derrived restrictions based
on attribute facets). It is only used to get a list of the unique attribtues in
the resulting schema.
Parameters: featureType - Set of unique attribute names |
getNames | public List getNames(FeatureType featureType, List names)(Code) | | This order is to be respected, based on Ancestors and so on.
This method is "faster" then actually constructing the merged
AttribtueTypes.
|
getRestrictions | public Filter getRestrictions(FeatureType featureType, String name)(Code) | | Query featureType information the complete restrictions for the indicated name.
Parameters: featureType - Parameters: name - |
getXPath | public AttributeType getXPath(FeatureType type, String xpath)(Code) | | Look up based on name in the provided position.
AttributeType needs a xpath based access
Parameters: type - Parameters: xpath - |
|
|