org.modeshape.jcr.value

## Interface NamespaceRegistry.Namespace

- All Superinterfaces:
    Comparable<NamespaceRegistry.Namespace>
  All Known Implementing Classes:
    BasicNamespace
  Enclosing interface:
    NamespaceRegistry

      @Immutable
      public static interface NamespaceRegistry.Namespace
      extends Comparable<NamespaceRegistry.Namespace>

  Representation of a single namespace at a single point in time. This object does not change to reflect changes made to the `registry`.
  See Also:
    `NamespaceRegistry.getNamespaces()`

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getNamespaceUri()` Get the URI for the namespace
    `String` | `getPrefix()` Get the prefix for the namespace

    - ### Methods inherited from interface java.lang.Comparable

      `compareTo`

- - ### Method Detail

    - #### getPrefix

          String getPrefix()

      Get the prefix for the namespace
      Returns:
        the prefix; never null but possibly the empty string

    - #### getNamespaceUri

          String getNamespaceUri()

      Get the URI for the namespace
      Returns:
        the namespace URI; never null but possibly the empty string

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.