Package org.geotools.gml2
Class ApplicationSchemaXSD
-
public class ApplicationSchemaXSD extends XSD
XSD instance for an application schema.Copied from org.geotools.gml3 making use of addDependencies with our gml2.GML instance.
- Author:
- Justin Deoliveira, The Open Planning Project
-
-
Field Summary
-
Fields inherited from class XSD
entityResolver, LOGGER, schema, typeMappingProfile, typeSchema
-
-
Constructor Summary
Constructors Constructor Description ApplicationSchemaXSD(String namespaceURI, String schemaLocation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddDependencies(Set<XSD> dependencies)Subclass hook to add additional dependencies.SchemaLocationResolvercreateSchemaLocationResolver()Uses theschema.getSchemaLocation()'s parent folder as the base folder to resolvelocationas a relative URI of.StringgetNamespaceURI()The namespace uri of the schema.StringgetSchemaLocation()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
-
-
-
-
Method Detail
-
addDependencies
protected void addDependencies(Set<XSD> dependencies)
Description copied from class:XSDSubclass hook to add additional dependencies.- Overrides:
addDependenciesin classXSD
-
getNamespaceURI
public String getNamespaceURI()
Description copied from class:XSDThe namespace uri of the schema.- Specified by:
getNamespaceURIin classXSD
-
getSchemaLocation
public String getSchemaLocation()
Description copied from class:XSDThe location on the local disk of the top level .xsd file which defines the schema.- Specified by:
getSchemaLocationin classXSD
-
createSchemaLocationResolver
public SchemaLocationResolver createSchemaLocationResolver()
Uses theschema.getSchemaLocation()'s parent folder as the base folder to resolvelocationas 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.
- Overrides:
createSchemaLocationResolverin classXSD- Returns:
- a file: style uri with the resolved schema location for the given one, or
nulliflocationcan't be resolved as a relative path of theschemalocation.
-
-