Top Description Methods
com.sun.xml.txw2

public Interface NamespaceResolver

Known Direct Implementers
com.sun.xml.txw2.StartTag

Used by DatatypeWriter to declare additional namespaces.
Author
Kohsuke Kawaguchi
See Also
DatatypeWriter

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the empty string if the URI is bound to the default namespace. Otherwise a non-empty string that represents a prefix.
getPrefix
(String
the namespace URI to be declared. Can be empty but must not be null.
nsUri
)

Allocates a prefix for the specified URI and returns it.

Method Detail

getPrefixback to summary
public String getPrefix(String nsUri)

Allocates a prefix for the specified URI and returns it.

Parameters
nsUri:String

the namespace URI to be declared. Can be empty but must not be null.

Returns:String

the empty string if the URI is bound to the default namespace. Otherwise a non-empty string that represents a prefix.