Class GpxData.XMLNamespace

    • Constructor Detail

      • XMLNamespace

        public XMLNamespace​(String fallbackPrefix,
                            String uri)
        Creates a schema with prefix and URI, tries to determine prefix from URI
        Parameters:
        fallbackPrefix - the namespace prefix, if not determined from URI
        uri - the namespace URI
      • XMLNamespace

        public XMLNamespace​(String prefix,
                            String uri,
                            String location)
        Creates a schema with prefix, URI and location. Does NOT try to determine prefix from URI!
        Parameters:
        prefix - XML namespace prefix
        uri - XML namespace URI
        location - XML namespace location
    • Method Detail

      • getURI

        public String getURI()
        Returns the URI of the namespace.
        Returns:
        the URI of the namespace
      • getPrefix

        public String getPrefix()
        Returns the prefix of the namespace.
        Returns:
        the prefix of the namespace, determined from URI if possible
      • getLocation

        public String getLocation()
        Returns the location of the schema.
        Returns:
        the location of the schema
      • setLocation

        public void setLocation​(String location)
        Sets the location of the schema
        Parameters:
        location - the location of the schema