|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.feature.type.Descriptors
public class Descriptors
Helper methods for dealing with Descriptor.
This methods opperate directly on the interfaces provided by geoapi, no actual classes were harmed in the making of these utility methods.
Constructor Summary | |
---|---|
Descriptors()
|
Method Summary | |
---|---|
static org.opengis.feature.type.AttributeDescriptor |
find(java.util.List descriptors,
org.opengis.feature.type.Name name)
Returns the attribute descriptor from a list which matches the specified name, or null if no such descriptor is found. |
static boolean |
isSimple(java.util.Collection schema)
Determines if a collection of attribute descriptors is "simple". |
static java.util.List |
list(org.opengis.feature.type.AttributeType type)
Returns the list of descriptors defined in the provided schema, preserving declaration order when relevant. |
static int |
maxOccurs(org.opengis.feature.type.ComplexType schema,
org.opengis.feature.type.AttributeType type)
|
static boolean |
multiple(org.opengis.feature.type.ComplexType schema,
org.opengis.feature.type.AttributeType type)
True if there may be more then one AttributeType in the schema. |
static org.opengis.feature.type.AttributeDescriptor |
node(java.util.Collection schema,
org.opengis.feature.type.Name name)
Finds the node associated with the provided name. |
static org.opengis.feature.type.AttributeDescriptor |
node(org.opengis.feature.type.ComplexType schema,
org.opengis.feature.type.AttributeType type)
Finds the node associated with the provided type. |
static org.opengis.feature.type.AttributeDescriptor |
node(org.opengis.feature.type.ComplexType schema,
org.opengis.feature.type.Name name)
Finds the node associated with the provided name. |
static org.opengis.feature.type.AttributeDescriptor |
node(org.opengis.feature.type.ComplexType schema,
java.lang.String name)
Finds the first node associated with the provided name disregarding namespaces |
static java.util.List |
nodes(org.opengis.feature.type.ComplexType schema,
org.opengis.feature.type.AttributeType type)
List of nodes matching AttributeType. |
static org.opengis.feature.type.AttributeType |
type(java.util.Collection schema,
org.opengis.feature.type.Name name)
Locate type associated with provided name, or null if not found. |
static org.opengis.feature.type.AttributeType |
type(org.opengis.feature.type.ComplexType schema,
org.opengis.feature.type.Name name)
Locate type associated with provided name, or null if not found. |
static org.opengis.feature.type.AttributeType |
type(org.opengis.feature.type.ComplexType schema,
java.lang.String name)
Locate type associated with provided name, or null if not found. |
static java.util.List |
types(org.opengis.feature.type.AttributeType type)
List of types described by this schema. |
static org.opengis.feature.type.AttributeDescriptor |
wrapAttributeType(org.opengis.feature.type.AttributeType type)
Wraps a AttributeType in AttributeDescriptor . |
static java.util.List |
wrapAttributeTypes(java.util.List typeList)
Wraps a list of AttributeType in AttributeDescriptor . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Descriptors()
Method Detail |
---|
public static final java.util.List wrapAttributeTypes(java.util.List typeList)
AttributeType
in AttributeDescriptor
.
typeList
- The list of attribute types.
wrapAttributeType(AttributeType)
public static final org.opengis.feature.type.AttributeDescriptor wrapAttributeType(org.opengis.feature.type.AttributeType type)
AttributeType
in AttributeDescriptor
.
type
- The attribute type.
public static final org.opengis.feature.type.AttributeDescriptor find(java.util.List descriptors, org.opengis.feature.type.Name name)
null
if no such descriptor is found.
descriptors
- The list of AttributeDescriptor
.name
- The name to match.
null
.public static org.opengis.feature.type.AttributeType type(java.util.Collection schema, org.opengis.feature.type.Name name)
Namespaces are not taken in count, so if two properties share the same local name, the first one that matches will be returned.
schema
- name
-
public static org.opengis.feature.type.AttributeType type(org.opengis.feature.type.ComplexType schema, java.lang.String name)
Namespaces are not taken in count, so if two properties share the same local name, the first one that matches will be returned.
schema
- name
-
public static org.opengis.feature.type.AttributeType type(org.opengis.feature.type.ComplexType schema, org.opengis.feature.type.Name name)
schema
- name
-
public static org.opengis.feature.type.AttributeDescriptor node(org.opengis.feature.type.ComplexType schema, java.lang.String name)
schema
- name
-
public static org.opengis.feature.type.AttributeDescriptor node(org.opengis.feature.type.ComplexType schema, org.opengis.feature.type.Name name)
schema
- name
-
public static org.opengis.feature.type.AttributeDescriptor node(java.util.Collection schema, org.opengis.feature.type.Name name)
schema
- name
-
public static org.opengis.feature.type.AttributeDescriptor node(org.opengis.feature.type.ComplexType schema, org.opengis.feature.type.AttributeType type)
Note a type may be included in more then one node, in which case this will only find the first one.
schema
- type
-
public static java.util.List nodes(org.opengis.feature.type.ComplexType schema, org.opengis.feature.type.AttributeType type)
schema
- type
-
public static java.util.List types(org.opengis.feature.type.AttributeType type)
On the cases where order matters, the returned list preserves the order
of descriptors declared in schema
type
-
public static boolean multiple(org.opengis.feature.type.ComplexType schema, org.opengis.feature.type.AttributeType type)
This may happen if:
schema
- type
-
public static int maxOccurs(org.opengis.feature.type.ComplexType schema, org.opengis.feature.type.AttributeType type)
public static java.util.List list(org.opengis.feature.type.AttributeType type)
schema
-
public static boolean isSimple(java.util.Collection schema)
schema
- Collection of attribute descriptors.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |