groovy.xml
Class Namespace
java.lang.Object
groovy.xml.Namespace
public class Namespace
- extends java.lang.Object
A simple helper class which acts as a factory of QName
instances.
- Version:
- $Revision: 9925 $
Field Summary |
private java.lang.String |
prefix
|
private java.lang.String |
uri
|
Method Summary |
QName |
get(java.lang.String localName)
Returns the QName for the given localName. |
java.lang.String |
getPrefix()
Returns the prefix mapped to this namespace |
java.lang.String |
getUri()
Returns the URI of this namespace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
uri
private java.lang.String uri
prefix
private java.lang.String prefix
Namespace
public Namespace()
Namespace
public Namespace(java.lang.String uri)
Namespace
public Namespace(java.lang.String uri,
java.lang.String prefix)
get
public QName get(java.lang.String localName)
- Returns the QName for the given localName.
- Parameters:
localName
- the local name within this
getPrefix
public java.lang.String getPrefix()
- Returns the prefix mapped to this namespace
- Returns:
- the prefix assigned to this namespace or null if no namespace is
mapped.
getUri
public java.lang.String getUri()
- Returns the URI of this namespace
- Returns:
- the URI of this namespace
Copyright © ${year} The Codehaus. All Rights Reserved.