Class Namespaces


  • public class Namespaces
    extends Object
    A helper class for working with namespaces.
    • Constructor Detail

      • Namespaces

        public Namespaces()
        Creates an empty namespaces object
      • Namespaces

        public Namespaces​(String prefix,
                          String uri)
        Creates a namespace context with a single prefix and URI
    • Method Detail

      • isMatchingNamespaceOrEmptyNamespace

        public static boolean isMatchingNamespaceOrEmptyNamespace​(String namespaceURI,
                                                                  String expectedNamespace)
        Returns true if the given namespaceURI is empty or if it matches the given expected namespace
      • configure

        public void configure​(org.apache.camel.spi.NamespaceAware namespaceAware)
        Configures the namespace aware object