Class AbstractXMLSerializer.NamespaceLevel

  • Enclosing class:
    AbstractXMLSerializer<NODETYPE>

    protected static final class AbstractXMLSerializer.NamespaceLevel
    extends Object
    Contains the XML namespace definitions for a single element.
    Author:
    Philip Helger
    • Constructor Detail

      • NamespaceLevel

        public NamespaceLevel()
        Ctor
    • Method Detail

      • getNamespaceURIOfPrefix

        @Nullable
        public String getNamespaceURIOfPrefix​(@Nullable
                                              String sPrefix)
        Get the URL matching a given namespace prefix in this level.
        Parameters:
        sPrefix - The prefix to be searched. If it is null the default namespace URL is returned.
        Returns:
        null if the namespace mapping is not used or the URL otherwise.
      • getDefaultNamespaceURI

        @Nullable
        public String getDefaultNamespaceURI()
      • getNamespaceCount

        @Nonnegative
        public int getNamespaceCount()
      • hasAnyNamespace

        public boolean hasAnyNamespace()