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
    • Constructor Detail

      • ApplicationSchemaXSD

        public ApplicationSchemaXSD​(String namespaceURI,
                                    String schemaLocation)
    • Method Detail

      • addDependencies

        protected void addDependencies​(Set<XSD> dependencies)
        Description copied from class: XSD
        Subclass hook to add additional dependencies.
        Overrides:
        addDependencies in class XSD
      • getNamespaceURI

        public String getNamespaceURI()
        Description copied from class: XSD
        The namespace uri of the schema.
        Specified by:
        getNamespaceURI in class XSD
      • 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 class XSD
      • createSchemaLocationResolver

        public SchemaLocationResolver createSchemaLocationResolver()
        Uses the 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.

        Overrides:
        createSchemaLocationResolver in class XSD
        Returns:
        a file: style uri with the resolved schema location for the given one, or null if location can't be resolved as a relative path of the schema location.