|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectXSD
ApplicationSchemaXSD
public class ApplicationSchemaXSD
XSD instance for an application schema.
Copied from org.geotools.gml3 making use of addDependencies with our gml2.GML instance.
Field Summary |
---|
Fields inherited from class XSD |
---|
LOGGER, schema, typeMappingProfile, typeSchema |
Constructor Summary | |
---|---|
ApplicationSchemaXSD(String namespaceURI,
String schemaLocation)
|
Method Summary | |
---|---|
protected void |
addDependencies(Set dependencies)
Subclass hook to add additional dependencies. |
SchemaLocationResolver |
createSchemaLocationResolver()
Uses the schema.getSchemaLocation() 's parent
folder as the base folder to resolve location as a
relative URI of. |
String |
getNamespaceURI()
The namespace uri of the schema. |
String |
getSchemaLocation()
The location on the local disk of the top level .xsd file which defines the schema. |
Methods inherited from class XSD |
---|
allDependencies, buildSchema, buildTypeMappingProfile, buildTypeSchema, createSchemaLocator, dispose, equals, getAllDependencies, getAllTypeMappingProfiles, getDependencies, getSchema, getSupplementarySchemaLocator, getTypeMappingProfile, getTypeSchema, hashCode, name, qName, toString |
Methods inherited from class Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ApplicationSchemaXSD(String namespaceURI, String schemaLocation)
Method Detail |
---|
protected void addDependencies(Set dependencies)
XSD
addDependencies
in class XSD
public String getNamespaceURI()
XSD
getNamespaceURI
in class XSD
public String getSchemaLocation()
XSD
getSchemaLocation
in class XSD
public SchemaLocationResolver createSchemaLocationResolver()
schema.getSchemaLocation()
's parent
folder as the base folder to resolve location
as a
relative URI of.
This way, application schemas splitted over multiple files can be resolved based on the relative location of a given import or include.
createSchemaLocationResolver
in class XSD
schema
- the schema being resolveduri
- not used as it might be an empty string when location
refers to an includelocation
- the xsd location, either of schema
, an
import or an include, for which to try resolving it as
a relative path of the schema
location.
null
if
location
can't be resolved as a relative
path of the schema
location.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |