Top Description Fields Constructors Methods
groovy.xml

public Class Namespace

extends Object
Class Inheritance
Imports
groovy.namespace.QName

A simple helper class which acts as a factory of QName instances.

Field Summary

Modifier and TypeField and Description
private String
private String

Constructor Summary

AccessConstructor and Description
public
public
public
Namespace(String uri, String prefix)

Method Summary

Modifier and TypeMethod and Description
public QName
get(String
the local name within this
localName
)

Returns the QName for the given localName.

public String

Returns:

the prefix assigned to this namespace or null if no namespace is mapped.
getPrefix
()

Returns the prefix mapped to this namespace

public String

Returns:

the URI of this namespace
getUri
()

Returns the URI of this namespace

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

prefixback to summary
private String prefix
uriback to summary
private String uri

Constructor Detail

Namespaceback to summary
public Namespace()
Namespaceback to summary
public Namespace(String uri)
Namespaceback to summary
public Namespace(String uri, String prefix)

Method Detail

getback to summary
public QName get(String localName)

Returns the QName for the given localName.

Parameters
localName:String

the local name within this

getPrefixback to summary
public String getPrefix()

Returns the prefix mapped to this namespace

Returns:String

the prefix assigned to this namespace or null if no namespace is mapped.

getUriback to summary
public String getUri()

Returns the URI of this namespace

Returns:String

the URI of this namespace