|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.feature.Schema
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.
FeatureTypes
,
FeatureType
Constructor Summary | |
Schema()
|
Method Summary | |
static int |
attribtueCount(FeatureType featureType)
Walk the provided FeatureType and produce a count of distinct attribtues. |
static AttributeType |
attribute(FeatureType type,
int index)
Look up based on name in the provided position. |
static AttributeType |
attribute(FeatureType type,
java.lang.String name)
|
static java.util.List |
attributes(FeatureType featureType)
|
static void |
attributes(FeatureType featureType,
java.util.List list)
This order is to be respected, based on Ancestors and so on. |
static int |
find(FeatureType type,
java.lang.String name)
Lookup can only really be by name. |
static java.util.List |
names(FeatureType featureType)
Does a quick walk to detect only a list of attribute names. |
static void |
names(FeatureType featureType,
java.util.List names)
This order is to be respected, based on Ancestors and so on. |
static Filter |
restriction(FeatureType featureType,
java.lang.String name)
Query featureType information the complete restrictions for the indicated name. |
static AttributeType |
xpath(FeatureType type,
java.lang.String xpath)
Look up based on name in the provided position. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Schema()
Method Detail |
public static int attribtueCount(FeatureType featureType)
featureType
-
public static java.util.List names(FeatureType featureType)
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.
public static java.util.List attributes(FeatureType featureType)
public static void names(FeatureType featureType, java.util.List names)
This method is "faster" then actually constructing the merged AttribtueTypes.
public static void attributes(FeatureType featureType, java.util.List list)
This method is "faster" then actually constructing the merged AttribtueTypes.
public static Filter restriction(FeatureType featureType, java.lang.String name)
featureType
- name
-
public static int find(FeatureType type, java.lang.String name)
type
-
public static AttributeType attribute(FeatureType type, int index)
public static AttributeType attribute(FeatureType type, java.lang.String name)
public static AttributeType xpath(FeatureType type, java.lang.String xpath)
AttributeType needs a xpath based access
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |