|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.builder.xml.Namespaces
public class Namespaces
A helper class for working with namespaces or creating namespace based expressions
| Field Summary | |
|---|---|
static String |
DEFAULT_NAMESPACE
|
static String |
ENVIRONMENT_VARIABLES
|
static String |
EXCHANGE_PROPERTY
|
static String |
IN_NAMESPACE
|
static String |
OUT_NAMESPACE
|
static String |
SYSTEM_PROPERTIES_NAMESPACE
|
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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)
Creates the XPath expression using the current namespace context |
XPathExpression |
xpath(String expression,
Class<?> resultType)
Creates the XPath expression using the current namespace context |
XQueryExpression |
xquery(String expression)
Creates the XQuery expression using the current namespace context |
XQueryExpression |
xquery(String expression,
Class<?> resultType)
Creates the XQuery expression using the current namespace context and the given expected return type |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_NAMESPACE
public static final String IN_NAMESPACE
public static final String OUT_NAMESPACE
public static final String SYSTEM_PROPERTIES_NAMESPACE
public static final String ENVIRONMENT_VARIABLES
public static final String EXCHANGE_PROPERTY
| Constructor Detail |
|---|
public Namespaces(Element element)
element - the XML element representing the XPath namespace context
public Namespaces(String prefix,
String uri)
| Method Detail |
|---|
public static boolean isMatchingNamespaceOrEmptyNamespace(String namespaceURI,
String expectedNamespace)
public Namespaces add(String prefix,
String uri)
public Namespaces add(Element element)
public XPathExpression xpath(String expression)
public XPathExpression xpath(String expression,
Class<?> resultType)
public XQueryExpression xquery(String expression)
public XQueryExpression xquery(String expression,
Class<?> resultType)
public Map<String,String> getNamespaces()
public void configure(NamespaceAware namespaceAware)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||