Class Namespaces

java.lang.Object
org.apache.camel.support.builder.Namespaces

public class Namespaces extends Object
A helper class for working with namespaces.
  • Field Details

  • Constructor Details

    • 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 Details

    • 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
    • add

      public Namespaces add(String prefix, String uri)
    • getNamespaces

      public Map<String,String> getNamespaces()
    • configure

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