public class Namespaces extends Object
Modifier and Type | Field and 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 and Description |
---|
Namespaces(Element element)
Creates a namespaces object from the given XML element
|
Namespaces(String prefix,
String uri)
Creates a namespace context with a single prefix and URI
|
Modifier and Type | Method and Description |
---|---|
Namespaces |
add(Element element) |
Namespaces |
add(String prefix,
String uri) |
void |
configure(NamespaceAware namespaceAware)
Configures the namespace aware object
|
Map<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
|
XPathExpression |
xpath(String expression)
Deprecated.
|
XPathExpression |
xpath(String expression,
Class<?> resultType)
Deprecated.
|
XQueryExpression |
xquery(String expression)
Deprecated.
|
XQueryExpression |
xquery(String expression,
Class<?> resultType)
Deprecated.
|
public static final String DEFAULT_NAMESPACE
public static final String IN_NAMESPACE
public static final String OUT_NAMESPACE
public static final String FUNCTION_NAMESPACE
public static final String SYSTEM_PROPERTIES_NAMESPACE
public static final String ENVIRONMENT_VARIABLES
public static final String EXCHANGE_PROPERTY
public Namespaces(Element element)
element
- the XML element representing the XPath namespace contextpublic Namespaces(String prefix, String uri)
public static boolean isMatchingNamespaceOrEmptyNamespace(String namespaceURI, String expectedNamespace)
public Namespaces add(String prefix, String uri)
public Namespaces add(Element element)
@Deprecated public XPathExpression xpath(String expression)
@Deprecated public XPathExpression xpath(String expression, Class<?> resultType)
@Deprecated public XQueryExpression xquery(String expression)
@Deprecated public XQueryExpression xquery(String expression, Class<?> resultType)
public Map<String,String> getNamespaces()
public void configure(NamespaceAware namespaceAware)
Apache Camel