org.geotools.xml.schema |
Schema Interfaces
Overview
This package is intended to provide all the necessary interfaces to semantically
represent an XML Schema. Some of the concious shortcomings of this interface set
include the in-ability to reproduce exact xml schema documents from a schema
represented in memory using just these interfaces (some non-essential constructs
have been removed/ignored).
Implementors creating instances of this package should refer to the SchemaFactory
(org.geotools.gml) to link your implmentation into the parser.
How to make an extension
This is easy to describe, but hard to implement (or rather to test + debug).
Essentially you should create a class that implements Schema, and register it
with the SchemaFactory. When creating the appropriate Types as part of the
Schema (I assume your Schema will have these) you can link extra parsing into
the getValue method (see Type Interface).
|
Java Source File Name | Type | Comment |
All.java | Interface |
Instances of this interface are intended to represent the 'all' construct in
an XML Schema. |
Any.java | Interface |
Instances of this interface are intended to represent the 'any' construct in
an XML Schema. |
Attribute.java | Interface |
An instance of this interface should represent an Attribute from an XML
schema. |
AttributeGroup.java | Interface |
This interface is intended to represent an XML Schema AttributeGroup. |
AttributeValue.java | Interface | |
Choice.java | Interface |
This interface is intended to represent a Choice in an XML Schema. |
ComplexType.java | Interface |
This interface is intended to represent an XML Schema complexType. |
Element.java | Interface |
Instances of this interface are intended to represent XML Schema Elements. |
ElementGrouping.java | Interface |
This represents an abstract collection of xml element definitions within a
Schema. |
ElementValue.java | Interface |
This interface is intended to represent a data structure to pass resolved
Child elements to the parent element. |
Facet.java | Interface | |
Group.java | Interface |
This interface is intended to represent the Group construct within XML
Schemas.
In many situations it is recommended that groups be flatened out to their
child declaration, removing the additional layer of indirection. |
Schema.java | Interface |
This Interface is intended to represent the public portion of an XML Schema.
By public portion, I mean the portion of the Schema which can be included
in an instance document, or imported into another Schema.
The distinction between the public portion of a XML Schema and the entire
XML Schema is or particular important when comparing, or printing two XML
Schemas. |
Sequence.java | Interface |
This interface is intended to represent a Sequence in an XML Schema. |
SimpleType.java | Interface |
This interface is intended to represent an XML Schema simple type. |
Type.java | Interface |
This is a convinience interface to help speed up the code, allowing for any
type definition to handled in a consistent manner, independant of whether
it's nested or not. |