Package org.geotools.gml3
Class ApplicationSchemaXSD
-
public class ApplicationSchemaXSD extends XSD
XSD instance for an application schema.- Author:
- Justin Deoliveira, The Open Planning Project
-
-
Field Summary
-
Fields inherited from class XSD
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 void
addDependencies(Set<XSD> dependencies)
Subclass hook to add additional dependencies.SchemaLocationResolver
createSchemaLocationResolver()
Uses theschema.getSchemaLocation()
's parent folder as the base folder to resolvelocation
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
-
-
-
-
Method Detail
-
addDependencies
protected void addDependencies(Set<XSD> dependencies)
Description copied from class:XSD
Subclass hook to add additional dependencies.- Overrides:
addDependencies
in classXSD
-
getNamespaceURI
public String getNamespaceURI()
Description copied from class:XSD
The namespace uri of the schema.- Specified by:
getNamespaceURI
in classXSD
-
getSchemaLocation
public String getSchemaLocation()
Description copied from class:XSD
The location on the local disk of the top level .xsd file which defines the schema.- Specified by:
getSchemaLocation
in classXSD
-
createSchemaLocationResolver
public SchemaLocationResolver createSchemaLocationResolver()
Uses theschema.getSchemaLocation()
's parent folder as the base folder to resolvelocation
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.
- Overrides:
createSchemaLocationResolver
in classXSD
- Returns:
- a file: style uri with the resolved schema location for the given one, or
null
iflocation
can't be resolved as a relative path of theschema
location.
-
-