Class GpxData.XMLNamespace

java.lang.Object
org.openstreetmap.josm.data.gpx.GpxData.XMLNamespace
Enclosing class:
GpxData

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

  • Constructor Details

    • 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 Details

    • 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
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object