Package groovy.xml
Class Namespace
java.lang.Object
groovy.xml.Namespace
A simple helper class which acts as a factory of
QName
instances.-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Namespace
public Namespace() -
Namespace
-
Namespace
-
-
Method Details
-
get
Returns the QName for the given localName.- Parameters:
localName
- the local name within this
-
getPrefix
Returns the prefix mapped to this namespace- Returns:
- the prefix assigned to this namespace or null if no namespace is mapped.
-
getUri
Returns the URI of this namespace- Returns:
- the URI of this namespace
-