Class DefaultNamespaceContext

  • All Implemented Interfaces:
    NamespaceContext, org.apache.camel.spi.NamespaceAware

    public class DefaultNamespaceContext
    extends Object
    implements NamespaceContext, org.apache.camel.spi.NamespaceAware
    An implementation of NamespaceContext which uses a simple Map where the keys are the prefixes and the values are the URIs
    • Constructor Detail

      • DefaultNamespaceContext

        public DefaultNamespaceContext()
      • DefaultNamespaceContext

        public DefaultNamespaceContext​(XPathFactory factory)
    • Method Detail

      • setNamespaces

        public void setNamespaces​(Map<String,​String> namespaces)
        Specified by:
        setNamespaces in interface org.apache.camel.spi.NamespaceAware
      • getNamespaces

        public Map<String,​String> getNamespaces()
        Specified by:
        getNamespaces in interface org.apache.camel.spi.NamespaceAware
      • toString

        public String toString()
        toString() implementation that outputs the namespace mappings with the following format: "[me: {prefix -> value}, {prefix -> value}], [parent: {prefix -> value}, {prefix -> value}]. Recurses up the parent's chain.
        Overrides:
        toString in class Object