|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.xml.XSD
public abstract class XSD
Xml Schema for a particular namespace.
This class should is subclasses for the xs, gml, filter, sld, etc... schemas. Subclasses should be implemented as singletons.
Field Summary | |
---|---|
protected static java.util.logging.Logger |
LOGGER
logging instance |
protected org.eclipse.xsd.XSDSchema |
schema
schema contents |
protected org.opengis.feature.type.Schema |
typeMappingProfile
type mapping profile |
protected org.opengis.feature.type.Schema |
typeSchema
type schema |
Constructor Summary | |
---|---|
protected |
XSD()
|
Method Summary | |
---|---|
protected void |
addDependencies(java.util.Set dependencies)
Subclass hook to add additional dependencies. |
protected java.util.List |
allDependencies()
|
protected org.eclipse.xsd.XSDSchema |
buildSchema()
Builds the schema from the .xsd file specified by getSchemaLocation() |
protected org.opengis.feature.type.Schema |
buildTypeMappingProfile(org.opengis.feature.type.Schema typeSchema)
Sets up a profile which uniquely maps a set of java classes to a schema element. |
protected org.opengis.feature.type.Schema |
buildTypeSchema()
Sets up the schema which maps xml schema types to attribute types. |
SchemaLocationResolver |
createSchemaLocationResolver()
|
SchemaLocator |
createSchemaLocator()
|
boolean |
equals(java.lang.Object obj)
Implementation of equals, equality is based soley on getNamespaceURI() . |
java.util.List<XSD> |
getAllDependencies()
Returns all dependencies , direct and transitive that this xsd depends on. |
java.util.Set<XSD> |
getDependencies()
The dependencies of this schema. |
abstract java.lang.String |
getNamespaceURI()
The namespace uri of the schema. |
org.eclipse.xsd.XSDSchema |
getSchema()
Returns the XSD object representing the contents of the schema. |
abstract java.lang.String |
getSchemaLocation()
The location on the local disk of the top level .xsd file which defines the schema. |
org.opengis.feature.type.Schema |
getTypeMappingProfile()
Returns the sbuset of getTypeSchema() which maintains
a unique java class to xml type mapping. |
org.opengis.feature.type.Schema |
getTypeSchema()
Returns the schema containing AttributeType 's for
all xml types. |
int |
hashCode()
|
protected org.opengis.feature.type.Name |
name(javax.xml.namespace.QName qName)
Convenience method to turn a QName into a Name. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static java.util.logging.Logger LOGGER
protected org.eclipse.xsd.XSDSchema schema
protected org.opengis.feature.type.Schema typeSchema
protected org.opengis.feature.type.Schema typeMappingProfile
Constructor Detail |
---|
protected XSD()
Method Detail |
---|
protected org.opengis.feature.type.Schema buildTypeSchema()
protected org.opengis.feature.type.Schema buildTypeMappingProfile(org.opengis.feature.type.Schema typeSchema)
protected org.opengis.feature.type.Name name(javax.xml.namespace.QName qName)
Useful for building type mapping profiles.
qName
- The name to transform.public final org.opengis.feature.type.Schema getTypeSchema()
AttributeType
's for
all xml types.
public final org.opengis.feature.type.Schema getTypeMappingProfile()
getTypeSchema()
which maintains
a unique java class to xml type mapping.
public abstract java.lang.String getNamespaceURI()
public abstract java.lang.String getSchemaLocation()
public final java.util.Set<XSD> getDependencies()
public java.util.List<XSD> getAllDependencies()
protected java.util.List allDependencies()
protected void addDependencies(java.util.Set dependencies)
public final org.eclipse.xsd.XSDSchema getSchema() throws java.io.IOException
java.io.IOException
protected org.eclipse.xsd.XSDSchema buildSchema() throws java.io.IOException
getSchemaLocation()
This method may be extended, but should not be overridden.
java.io.IOException
public SchemaLocator createSchemaLocator()
public SchemaLocationResolver createSchemaLocationResolver()
public final boolean equals(java.lang.Object obj)
getNamespaceURI()
.
equals
in class java.lang.Object
public final int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |