public class Schema extends Object
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 and Description |
---|
Schema()
Deprecated.
|
Schema(FilterFactory filterFactory)
Deprecated.
|
Schema(Hints hints)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static AttributeDescriptor |
attribute(SimpleFeatureType type,
int index)
Deprecated.
use getAttribute( type, index )
|
static AttributeDescriptor |
attribute(SimpleFeatureType type,
String name)
Deprecated.
use getAttribute( type, name )
|
static int |
attributeCount(SimpleFeatureType featureType)
Deprecated.
Walk the provided FeatureType and produce a count of distinct attribtues.
|
static List |
attributes(SimpleFeatureType featureType)
Deprecated.
use getAttributes( featureType )
|
static List |
attributes(SimpleFeatureType featureType,
List list)
Deprecated.
use getAttributes( featureType, list )
|
static int |
find(SimpleFeatureType type,
String name)
Deprecated.
please use getIndexOf( type, name )
|
AttributeDescriptor |
getAttribute(SimpleFeatureType type,
int index)
Deprecated.
Look up based on name in the provided position.
|
AttributeDescriptor |
getAttribute(SimpleFeatureType type,
String name)
Deprecated.
|
int |
getAttributeCount(SimpleFeatureType featureType)
Deprecated.
Walk the provided FeatureType and produce a count of distinct attribtues.
|
List |
getAttributes(SimpleFeatureType featureType)
Deprecated.
|
List |
getAttributes(SimpleFeatureType featureType,
List list)
Deprecated.
This order is to be respected, based on Ancestors and so on.
|
int |
getIndexOf(SimpleFeatureType type,
String name)
Deprecated.
Lookup can only really be by name.
|
List |
getNames(SimpleFeatureType featureType)
Deprecated.
Does a quick walk to detect only a list of attribute names.
|
List |
getNames(SimpleFeatureType featureType,
List names)
Deprecated.
This order is to be respected, based on Ancestors and so on.
|
Filter |
getRestrictions(SimpleFeatureType featureType,
String name)
Deprecated.
Query featureType information the complete restrictions for the indicated name.
|
AttributeDescriptor |
getXPath(SimpleFeatureType type,
String xpath)
Deprecated.
Look up based on name in the provided position.
|
static List |
names(SimpleFeatureType featureType)
Deprecated.
use getNames( featureType )
|
static List |
names(SimpleFeatureType featureType,
List names)
Deprecated.
use getNames( featureType, List )
|
static Filter |
restriction(SimpleFeatureType featureType,
String name)
Deprecated.
please use getRestriction( featureType, name )
|
static AttributeDescriptor |
xpath(SimpleFeatureType type,
String xpath)
Deprecated.
use getXPath( type, xpath );
|
public Schema()
public Schema(Hints hints)
public Schema(FilterFactory filterFactory)
public int getAttributeCount(SimpleFeatureType featureType)
used to detect duplicate attributes names (ie override)
featureType
- public List getNames(SimpleFeatureType 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.
featureType
- public List getNames(SimpleFeatureType featureType, List names)
This method is "faster" then actually constructing the merged AttribtueTypes.
public List getAttributes(SimpleFeatureType featureType)
public List getAttributes(SimpleFeatureType featureType, List list)
This method is "faster" then actually constructing the merged AttribtueTypes.
public Filter getRestrictions(SimpleFeatureType featureType, String name)
featureType
- name
- public int getIndexOf(SimpleFeatureType type, String name)
type
- public AttributeDescriptor getAttribute(SimpleFeatureType type, int index)
type
- the FeatureTypeindex
- the positionpublic AttributeDescriptor getAttribute(SimpleFeatureType type, String name)
public AttributeDescriptor getXPath(SimpleFeatureType type, String xpath)
AttributeType needs a xpath based access
type
- xpath
- public static int attributeCount(SimpleFeatureType featureType)
used to detect duplicate attributes names (ie override)
featureType
- public static AttributeDescriptor attribute(SimpleFeatureType type, int index)
public static AttributeDescriptor attribute(SimpleFeatureType type, String name)
public static List attributes(SimpleFeatureType featureType)
public static List attributes(SimpleFeatureType featureType, List list)
public static int find(SimpleFeatureType type, String name)
public static List names(SimpleFeatureType featureType)
public static List names(SimpleFeatureType featureType, List names)
public static Filter restriction(SimpleFeatureType featureType, String name)
public static AttributeDescriptor xpath(SimpleFeatureType type, String xpath)
Copyright © 1996–2019 Geotools. All rights reserved.