Interface NamespaceAware

    • Method Detail

      • getNamespaces

        Set<Namespace> getNamespaces()
        Gets the set that contains the assigned namespaces.
        Returns:
        A Set containing the Namespace objects that are available.
      • getNamespace

        default Optional<Namespace> getNamespace​(String prefix)
        Gets the namespace that is associated with the specified prefix, if any. If multiple namespaces match the given prefix, the result may not be consistent over successive calls to this method.
        Parameters:
        prefix - A namespace prefix.
        Returns:
        The namespace name that is associated with the specified prefix, or Optional.empty() if there is no such namespace.