public class Namespace extends Object
A simple helper class which acts as a factory of QName instances.
| Constructor and description |
|---|
Namespace
() |
Namespace
(String uri) |
Namespace
(String uri, String prefix) |
| Type Params | Return Type | Name and description |
|---|---|---|
public QName |
get(String localName)Returns the QName for the given localName. | |
public String |
getPrefix()Returns the prefix mapped to this namespace | |
public String |
getUri()Returns the URI of this namespace |
| Methods inherited from class | Name |
|---|---|
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Returns the QName for the given localName.
localName
- the local name within thisReturns the prefix mapped to this namespace
Returns the URI of this namespace
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/groovy/xml/Namespace.html