Package org.apache.camel.support.builder
Class Namespaces
- java.lang.Object
-
- org.apache.camel.support.builder.Namespaces
-
public class Namespaces extends Object
A helper class for working with namespaces.
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_NAMESPACE
static String
ENVIRONMENT_VARIABLES
static String
EXCHANGE_PROPERTY
static String
FUNCTION_NAMESPACE
static String
IN_NAMESPACE
static String
OUT_NAMESPACE
static String
SYSTEM_PROPERTIES_NAMESPACE
-
Constructor Summary
Constructors Constructor Description Namespaces()
Creates an empty namespaces objectNamespaces(String prefix, String uri)
Creates a namespace context with a single prefix and URI
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Namespaces
add(String prefix, String uri)
void
configure(org.apache.camel.spi.NamespaceAware namespaceAware)
Configures the namespace aware objectMap<String,String>
getNamespaces()
static boolean
isMatchingNamespaceOrEmptyNamespace(String namespaceURI, String expectedNamespace)
Returns true if the given namespaceURI is empty or if it matches the given expected namespace
-
-
-
Field Detail
-
DEFAULT_NAMESPACE
public static final String DEFAULT_NAMESPACE
- See Also:
- Constant Field Values
-
IN_NAMESPACE
public static final String IN_NAMESPACE
- See Also:
- Constant Field Values
-
OUT_NAMESPACE
public static final String OUT_NAMESPACE
- See Also:
- Constant Field Values
-
FUNCTION_NAMESPACE
public static final String FUNCTION_NAMESPACE
- See Also:
- Constant Field Values
-
SYSTEM_PROPERTIES_NAMESPACE
public static final String SYSTEM_PROPERTIES_NAMESPACE
- See Also:
- Constant Field Values
-
ENVIRONMENT_VARIABLES
public static final String ENVIRONMENT_VARIABLES
- See Also:
- Constant Field Values
-
EXCHANGE_PROPERTY
public static final String EXCHANGE_PROPERTY
- See Also:
- Constant Field Values
-
-
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
-
add
public Namespaces add(String prefix, String uri)
-
configure
public void configure(org.apache.camel.spi.NamespaceAware namespaceAware)
Configures the namespace aware object
-
-