Package javax.jcr

Interface NamespaceRegistry

All Known Implementing Classes:
ReadOnlyNamespaceRegistry, ReadWriteNamespaceRegistry

public interface NamespaceRegistry
Each repository has a single, persistent namespace registry represented by the NamespaceRegistry object, accessed via Workspace.getNamespaceRegistry(). The namespace registry contains the default prefixes of the registered namespaces. The namespace registry may contain namespaces that are not used in repository content, and there may be repository content with namespaces that are not included in the registry.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    A constant for the predefined namespace mapped by default to the prefix "" (the empty prefix).
    static final String
    A constant for the predefined namespace mapped by default to the prefix "jcr".
    static final String
    A constant for the predefined namespace mapped by default to the prefix "mix".
    static final String
    A constant for the predefined namespace mapped by default to the prefix "nt".
    static final String
    A constant for the predefined namespace mapped by default to the prefix "xml".
    static final String
    A constant for the predefined namespace prefix "" (the empty prefix).
    static final String
    A constant for the predefined namespace prefix "jcr".
    static final String
    A constant for the predefined namespace prefix "mix".
    static final String
    A constant for the predefined namespace prefix "nt".
    static final String
    A constant for the predefined namespace prefix "xml".
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the prefix which is mapped to the given uri.
    Returns an array holding all currently registered prefixes.
    getURI(String prefix)
    Returns the URI to which the given prefix is mapped.
    Returns an array holding all currently registered URIs.
    void
    Sets a one-to-one mapping between prefix and uri in the global namespace registry of this repository.
    void
    Removes a namespace mapping from the registry.
  • Field Details

    • PREFIX_JCR

      static final String PREFIX_JCR
      A constant for the predefined namespace prefix "jcr".
      See Also:
    • PREFIX_NT

      static final String PREFIX_NT
      A constant for the predefined namespace prefix "nt".
      See Also:
    • PREFIX_MIX

      static final String PREFIX_MIX
      A constant for the predefined namespace prefix "mix".
      See Also:
    • PREFIX_XML

      static final String PREFIX_XML
      A constant for the predefined namespace prefix "xml".
      See Also:
    • PREFIX_EMPTY

      static final String PREFIX_EMPTY
      A constant for the predefined namespace prefix "" (the empty prefix).
      See Also:
    • NAMESPACE_JCR

      static final String NAMESPACE_JCR
      A constant for the predefined namespace mapped by default to the prefix "jcr".
      See Also:
    • NAMESPACE_NT

      static final String NAMESPACE_NT
      A constant for the predefined namespace mapped by default to the prefix "nt".
      See Also:
    • NAMESPACE_MIX

      static final String NAMESPACE_MIX
      A constant for the predefined namespace mapped by default to the prefix "mix".
      See Also:
    • NAMESPACE_XML

      static final String NAMESPACE_XML
      A constant for the predefined namespace mapped by default to the prefix "xml".
      See Also:
    • NAMESPACE_EMPTY

      static final String NAMESPACE_EMPTY
      A constant for the predefined namespace mapped by default to the prefix "" (the empty prefix).
      See Also:
  • Method Details