Package org.openstreetmap.josm.data.gpx
Class GpxData.XMLNamespace
- java.lang.Object
-
- org.openstreetmap.josm.data.gpx.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
-
-
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 URIXMLNamespace(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
-
-
-
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 URIuri
- 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 prefixuri
- XML namespace URIlocation
- 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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-