org.jscience.ml.gml
Class GMLSchema

java.lang.Object
  extended by org.jscience.ml.gml.xml.schema.XMLSchema
      extended by org.jscience.ml.gml.GMLSchema
All Implemented Interfaces:
SchemaLocator

public class GMLSchema
extends XMLSchema

Encapsulates the GML Schema as an XML application schema.


Field Summary
static java.lang.String BASE_COORD_TYPE
          DOCUMENT ME!
static java.lang.String BASE_COORDINATES_TYPE
          DOCUMENT ME!
static java.lang.String BASE_FEATURE_COLLECTION_ELEMENT
          DOCUMENT ME!
static java.lang.String BASE_FEATURE_COLLECTION_TYPE
          DOCUMENT ME!
static java.lang.String BASE_FEATURE_ELEMENT
          DOCUMENT ME!
static java.lang.String BASE_FEATURE_TYPE
          DOCUMENT ME!
static java.lang.String BASE_GEOMETRY_COLLECTION_ELEMENT
          DOCUMENT ME!
static java.lang.String BASE_GEOMETRY_COLLECTION_TYPE
          DOCUMENT ME!
static java.lang.String BASE_GEOMETRY_ELEMENT
          DOCUMENT ME!
static java.lang.String BASE_GEOMETRY_TYPE
          DOCUMENT ME!
static java.lang.String FEATURE_MEMBER
          DOCUMENT ME!
static java.lang.String GEOMETRY_MEMBER
          DOCUMENT ME!
static java.lang.String GML_NS_URI
          DOCUMENT ME!
static java.lang.String INNER_BOUNDARY_IS
          DOCUMENT ME!
 
Fields inherited from class org.jscience.ml.gml.xml.schema.XMLSchema
ABSTRACT_ATTRIBUTE, ALL_ELEMENT, ANNOTATION_ELEMENT, ANY_ATTRIBUTE_ELEMENT, ANY_ELEMENT, ANY_TYPE_SIMPLE_TYPE, ANY_URI_SIMPLE_TYPE, APP_INFO_ELEMENT, ATTRIBUTE_ELEMENT, ATTRIBUTE_GROUP_ELEMENT, BASE_ATTRIBUTE, BASE64_BINARY_SIMPLE_TYPE, BOOLEAN_SIMPLE_TYPE, BYTE_SIMPLE_TYPE, CHOICE_ELEMENT, COMPLEX_CONTENT_ELEMENT, COMPLEX_TYPE_ELEMENT, DATE_SIMPLE_TYPE, DATE_TIME_SIMPLE_TYPE, DECIMAL_SIMPLE_TYPE, DEFAULT_NAMESPACE_PREFIX, DOCUMENTATION_ELEMENT, DOUBLE_SIMPLE_TYPE, DURATION_SIMPLE_TYPE, ELEMENT_ELEMENT, ENTITIES_SIMPLE_TYPE, ENTITY_SIMPLE_TYPE, ENUMERATION_ELEMENT, EXTENSION_ELEMENT, FIELD_ELEMENT, FLOAT_SIMPLE_TYPE, G_DAY_SIMPLE_TYPE, G_MONTH_DAY_SIMPLE_TYPE, G_MONTH_SIMPLE_TYPE, G_YEAR_MONTH_SIMPLE_TYPE, G_YEAR_SIMPLE_TYPE, GROUP_ELEMENT, HEX_BINARY_SIMPLE_TYPE, ID_REF_SIMPLE_TYPE, ID_REFS_SIMPLE_TYPE, ID_SIMPLE_TYPE, IMPORT_ELEMENT, INCLUDE_ELEMENT, INT_SIMPLE_TYPE, INTEGER_SIMPLE_TYPE, KEY_ELEMENT, KEY_REF_ELEMENT, LANGUAGE_SIMPLE_TYPE, LENGTH_ELEMENT, LIST_ELEMENT, LONG_SIMPLE_TYPE, MAX_INCLUSIVE_ELEMENT, MAX_LENGTH_ELEMENT, MIN_INCLUSIVE_ELEMENT, MIN_LENGTH_ELEMENT, NAME_ATTRIBUTE, NAME_SIMPLE_TYPE, NAMESPACE_ATTRIBUTE, NC_NAME_SIMPLE_TYPE, NEGATIVE_INTEGER_SIMPLE_TYPE, NM_TOKEN_SIMPLE_TYPE, NM_TOKENS_SIMPLE_TYPE, NON_NEGATIVE_INTEGER_SIMPLE_TYPE, NON_POSITIVE_INTEGER_SIMPLE_TYPE, NORMALIZED_STRING_SIMPLE_TYPE, NOTATION_SIMPLE_TYPE, PATTERN_ELEMENT, POSITIVE_INTEGER_SIMPLE_TYPE, QNAME_SIMPLE_TYPE, RECURSIVE_ELEMENT, REDEFINE_ELEMENT, REF_ATTRIBUTE, REFERENCE_XML_TYPE, RESTRICTION_ELEMENT, SCHEMA_ELEMENT, SCHEMA_LOCATION_ATTRIBUTE, SELECTOR_ELEMENT, SEQUENCE_ELEMENT, SHORT_SIMPLE_TYPE, SIMPLE_CONTENT_ELEMENT, SIMPLE_TYPE_ELEMENT, STRING_SIMPLE_TYPE, SUBSTITUTIONGROUP_ATTRIBUTE, TARGET_NAMESPACE_ATTRIBUTE, TIME_SIMPLE_TYPE, TOKEN_SIMPLE_TYPE, TYPE_ATTRIBUTE, UNION_ELEMENT, UNIQUE_ELEMENT, UNSIGNED_BYTE_SIMPLE_TYPE, UNSIGNED_INT_SIMPLE_TYPE, UNSIGNED_LONG_SIMPLE_TYPE, UNSIGNED_SHORT_SIMPLE_TYPE, VALUE_ATTRIBUTE, XML_NAMESPACE, XML_PREFIX, XML_SCHEMA_ELEMENT_TYPE, XML_SCHEMA_INSTANCE_NAMESPACE, XML_SCHEMA_NAMESPACE, XMLNS_ATTR
 
Constructor Summary
GMLSchema(java.lang.String location)
          Instantiates a GML schema object from the given full path or URL.
 
Method Summary
 boolean isCoord(java.lang.String namespaceURI, java.lang.String localName)
          Determines whether an element is a "coord" GML object.
 boolean isCoordinates(java.lang.String namespaceURI, java.lang.String localName)
          Determines whether an element is a "coordinates" GML object.
 boolean isFeature(java.lang.String namespaceURI, java.lang.String localName)
          Determines whether an element corresponds to a feature.
 boolean isFeatureCollection(java.lang.String namespaceURI, java.lang.String localName)
          Determines whether an element corresponds to a feature collection.
static boolean isFeatureMemberProperty(java.lang.String namespaceURI, java.lang.String localName)
          Determines whether something is a feature member property element.
 boolean isGeometry(java.lang.String namespaceURI, java.lang.String localName)
          Determines whether an element corresponds to a geometry.
 boolean isGeometryCollection(java.lang.String namespaceURI, java.lang.String localName)
          Determines whether an element corresponds to a geometry collection.
static boolean isGeometryMemberProperty(java.lang.String namespaceURI, java.lang.String localName)
          Determines whether something is a geometry member property element.
static boolean isInnerBoundary(java.lang.String namespaceURI, java.lang.String localName)
          Determines whether an element is a "coord" GML object.
 boolean isProperty(java.lang.String namespaceURI, java.lang.String localName, java.lang.String parentNamespaceURI, java.lang.String parentLocalName)
          Determines whether an element corresponds to a property.
 
Methods inherited from class org.jscience.ml.gml.xml.schema.XMLSchema
getParser, isBuiltInType, retrieveSchemaFromFile, retrieveSchemaFromStream, retrieveSchemaFromURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GML_NS_URI

public static final java.lang.String GML_NS_URI
DOCUMENT ME!

See Also:
Constant Field Values

BASE_FEATURE_TYPE

public static final java.lang.String BASE_FEATURE_TYPE
DOCUMENT ME!

See Also:
Constant Field Values

BASE_FEATURE_ELEMENT

public static final java.lang.String BASE_FEATURE_ELEMENT
DOCUMENT ME!

See Also:
Constant Field Values

BASE_FEATURE_COLLECTION_TYPE

public static final java.lang.String BASE_FEATURE_COLLECTION_TYPE
DOCUMENT ME!

See Also:
Constant Field Values

BASE_FEATURE_COLLECTION_ELEMENT

public static final java.lang.String BASE_FEATURE_COLLECTION_ELEMENT
DOCUMENT ME!

See Also:
Constant Field Values

BASE_GEOMETRY_TYPE

public static final java.lang.String BASE_GEOMETRY_TYPE
DOCUMENT ME!

See Also:
Constant Field Values

BASE_GEOMETRY_ELEMENT

public static final java.lang.String BASE_GEOMETRY_ELEMENT
DOCUMENT ME!

See Also:
Constant Field Values

BASE_GEOMETRY_COLLECTION_TYPE

public static final java.lang.String BASE_GEOMETRY_COLLECTION_TYPE
DOCUMENT ME!

See Also:
Constant Field Values

BASE_GEOMETRY_COLLECTION_ELEMENT

public static final java.lang.String BASE_GEOMETRY_COLLECTION_ELEMENT
DOCUMENT ME!

See Also:
Constant Field Values

BASE_COORD_TYPE

public static final java.lang.String BASE_COORD_TYPE
DOCUMENT ME!

See Also:
Constant Field Values

BASE_COORDINATES_TYPE

public static final java.lang.String BASE_COORDINATES_TYPE
DOCUMENT ME!

See Also:
Constant Field Values

INNER_BOUNDARY_IS

public static final java.lang.String INNER_BOUNDARY_IS
DOCUMENT ME!

See Also:
Constant Field Values

FEATURE_MEMBER

public static final java.lang.String FEATURE_MEMBER
DOCUMENT ME!

See Also:
Constant Field Values

GEOMETRY_MEMBER

public static final java.lang.String GEOMETRY_MEMBER
DOCUMENT ME!

See Also:
Constant Field Values
Constructor Detail

GMLSchema

public GMLSchema(java.lang.String location)
          throws XMLException
Instantiates a GML schema object from the given full path or URL.

Parameters:
location - DOCUMENT ME!
Throws:
XMLException - DOCUMENT ME!
Method Detail

isFeatureCollection

public boolean isFeatureCollection(java.lang.String namespaceURI,
                                   java.lang.String localName)
Determines whether an element corresponds to a feature collection.

Parameters:
namespaceURI - DOCUMENT ME!
localName - DOCUMENT ME!
Returns:
DOCUMENT ME!

isFeature

public boolean isFeature(java.lang.String namespaceURI,
                         java.lang.String localName)
Determines whether an element corresponds to a feature.

Parameters:
namespaceURI - DOCUMENT ME!
localName - DOCUMENT ME!
Returns:
DOCUMENT ME!

isGeometryCollection

public boolean isGeometryCollection(java.lang.String namespaceURI,
                                    java.lang.String localName)
Determines whether an element corresponds to a geometry collection.

Parameters:
namespaceURI - DOCUMENT ME!
localName - DOCUMENT ME!
Returns:
DOCUMENT ME!

isGeometry

public boolean isGeometry(java.lang.String namespaceURI,
                          java.lang.String localName)
Determines whether an element corresponds to a geometry.

Parameters:
namespaceURI - DOCUMENT ME!
localName - DOCUMENT ME!
Returns:
DOCUMENT ME!

isProperty

public boolean isProperty(java.lang.String namespaceURI,
                          java.lang.String localName,
                          java.lang.String parentNamespaceURI,
                          java.lang.String parentLocalName)
Determines whether an element corresponds to a property.

Parameters:
namespaceURI - DOCUMENT ME!
localName - DOCUMENT ME!
parentNamespaceURI - DOCUMENT ME!
parentLocalName - DOCUMENT ME!
Returns:
DOCUMENT ME!

isCoordinates

public boolean isCoordinates(java.lang.String namespaceURI,
                             java.lang.String localName)
Determines whether an element is a "coordinates" GML object.

Parameters:
namespaceURI - DOCUMENT ME!
localName - DOCUMENT ME!
Returns:
DOCUMENT ME!

isCoord

public boolean isCoord(java.lang.String namespaceURI,
                       java.lang.String localName)
Determines whether an element is a "coord" GML object.

Parameters:
namespaceURI - DOCUMENT ME!
localName - DOCUMENT ME!
Returns:
DOCUMENT ME!

isInnerBoundary

public static boolean isInnerBoundary(java.lang.String namespaceURI,
                                      java.lang.String localName)
Determines whether an element is a "coord" GML object.

Parameters:
namespaceURI - DOCUMENT ME!
localName - DOCUMENT ME!
Returns:
DOCUMENT ME!

isFeatureMemberProperty

public static boolean isFeatureMemberProperty(java.lang.String namespaceURI,
                                              java.lang.String localName)
Determines whether something is a feature member property element.

Parameters:
namespaceURI - DOCUMENT ME!
localName - DOCUMENT ME!
Returns:
DOCUMENT ME!

isGeometryMemberProperty

public static boolean isGeometryMemberProperty(java.lang.String namespaceURI,
                                               java.lang.String localName)
Determines whether something is a geometry member property element.

Parameters:
namespaceURI - DOCUMENT ME!
localName - DOCUMENT ME!
Returns:
DOCUMENT ME!