Package org.openstreetmap.josm.data.gpx
Class GpxData.XMLNamespace
java.lang.Object
org.openstreetmap.josm.data.gpx.GpxData.XMLNamespace
- Enclosing class:
- GpxData
A class containing prefix, URI and location of a namespace
- Since:
- 15496
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionXMLNamespace(String fallbackPrefix, String uri) Creates a schema with prefix and URI, tries to determine prefix from URIXMLNamespace(String prefix, String uri, String location) Creates a schema with prefix, URI and location. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the location of the schema.Returns the prefix of the namespace.getURI()Returns the URI of the namespace.inthashCode()voidsetLocation(String location) Sets the location of the schema
-
Field Details
-
uri
-
prefix
-
location
-
-
Constructor Details
-
XMLNamespace
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
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 Details
-
getURI
Returns the URI of the namespace.- Returns:
- the URI of the namespace
-
getPrefix
Returns the prefix of the namespace.- Returns:
- the prefix of the namespace, determined from URI if possible
-
getLocation
Returns the location of the schema.- Returns:
- the location of the schema
-
setLocation
Sets the location of the schema- Parameters:
location- the location of the schema
-
hashCode
-
equals
-