Class GpxData.XMLNamespace

  • Enclosing class:
    GpxData

    public static class GpxData.XMLNamespace
    extends java.lang.Object
    A class containing prefix, URI and location of a namespace
    Since:
    15496
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String location  
      private java.lang.String prefix  
      private java.lang.String uri  
    • Constructor Summary

      Constructors 
      Constructor Description
      XMLNamespace​(java.lang.String fallbackPrefix, java.lang.String uri)
      Creates a schema with prefix and URI, tries to determine prefix from URI
      XMLNamespace​(java.lang.String prefix, java.lang.String uri, java.lang.String location)
      Creates a schema with prefix, URI and location.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getLocation()
      Returns the location of the schema.
      java.lang.String getPrefix()
      Returns the prefix of the namespace.
      java.lang.String getURI()
      Returns the URI of the namespace.
      int hashCode()  
      void setLocation​(java.lang.String location)
      Sets the location of the schema
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • uri

        private final java.lang.String uri
      • prefix

        private final java.lang.String prefix
      • location

        private java.lang.String location
    • Constructor Detail

      • XMLNamespace

        public XMLNamespace​(java.lang.String fallbackPrefix,
                            java.lang.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​(java.lang.String prefix,
                            java.lang.String uri,
                            java.lang.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 java.lang.String getURI()
        Returns the URI of the namespace.
        Returns:
        the URI of the namespace
      • getPrefix

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

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

        public void setLocation​(java.lang.String location)
        Sets the location of the schema
        Parameters:
        location - the location of the schema
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object