Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.sun.xml.txw2
Interface NamespaceResolver

    public interface NamespaceResolver

Used by `DatatypeWriter` to declare additional namespaces.

Author:
  Kohsuke Kawaguchi
See Also:
  `DatatypeWriter`

Method Summary
`java.lang.String` | `getPrefix(java.lang.String nsUri)` Allocates a prefix for the specified URI and returns it.

Method Detail

### getPrefix

    java.lang.String getPrefix(java.lang.String nsUri)

  Allocates a prefix for the specified URI and returns it.

  Parameters:
    `nsUri` - the namespace URI to be declared. Can be empty but must not be null.
  Returns:
    the empty string if the URI is bound to the default namespace. Otherwise a non-empty string that represents a prefix.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD