Package org.apache.camel.support.builder
Class Namespaces
java.lang.Object
org.apache.camel.support.builder.Namespaces
A helper class for working with namespaces.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty namespaces objectNamespaces(String prefix, String uri) Creates a namespace context with a single prefix and URI -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(org.apache.camel.spi.NamespaceAware namespaceAware) Configures the namespace aware objectstatic booleanisMatchingNamespaceOrEmptyNamespace(String namespaceURI, String expectedNamespace) Returns true if the given namespaceURI is empty or if it matches the given expected namespace
-
Field Details
-
DEFAULT_NAMESPACE
- See Also:
-
IN_NAMESPACE
- See Also:
-
OUT_NAMESPACE
- See Also:
-
FUNCTION_NAMESPACE
- See Also:
-
SYSTEM_PROPERTIES_NAMESPACE
- See Also:
-
ENVIRONMENT_VARIABLES
- See Also:
-
EXCHANGE_PROPERTY
- See Also:
-
-
Constructor Details
-
Namespaces
public Namespaces()Creates an empty namespaces object -
Namespaces
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
-
getNamespaces
-
configure
public void configure(org.apache.camel.spi.NamespaceAware namespaceAware) Configures the namespace aware object
-