public class Xpe extends Object implements Serializable
| Constructor and Description |
|---|
Xpe(String expression)
Constructs an
XPE with the specified XPath expression. |
Xpe(String expression,
String[] namespaces)
Constructs an
XPE with the specified name, expression, and
XML namespaces. |
Xpe(String expression,
String[] namespaces,
String creator)
Constructs an
XPE with the specified name, expression
XML namespaces, and creator. |
| Modifier and Type | Method and Description |
|---|---|
String |
asExpandedString()
Used for comparison purposes using inline expansion of namespaces.
|
boolean |
equals(Object o) |
String |
getCreator()
Get the creator of this
XPE. |
String |
getExpression()
Get the XPath expression of this
XPE. |
String[] |
getNamespaces()
Get the XML namespaces used by this
XPE. |
int |
hashCode() |
static void |
main(String[] args) |
static Xpe |
parse(String expression) |
void |
setCreator(String creator) |
String |
toFilterString()
Gets the XPE as a string for sending to the router.
|
String |
toString() |
public Xpe(String expression)
XPE with the specified XPath expression.expression - The XPath expression. Note: <, > and are
escaped to <, > and " respectively.public Xpe(String expression, String[] namespaces)
XPE with the specified name, expression, and
XML namespaces.expression - The XPath expression. Note: <, > and " are
escaped to <, > and " respectively.namespaces - XML namespaces referenced by the expression. For example:
String[] nspaces = {"xmlns:sol=\"www.solace.com\"","xmlns:yahoo=\"www.yahoo.com\""}IllegalArgumentException - If an invalid argument is passed in.public Xpe(String expression, String[] namespaces, String creator)
XPE with the specified name, expression
XML namespaces, and creator.expression - The XPath expression. Note <, > and " are
escaped to <, > and " respectively.namespaces - XML namespaces referenced by the expression. For example:
String[] nspaces = {"xmlns:sol=\"www.solace.com\"","xmlns:yahoo=\"www.yahoo.com\""}creator - The creator of the XPE.IllegalArgumentException - If an invalid argument is passed in.public String getExpression()
XPE.public String[] getNamespaces()
XPE.public String getCreator()
XPE.XPE.public String toFilterString()
public String asExpandedString()
public static void main(String[] args)
args - parameterpublic void setCreator(String creator)
Copyright 2004-2017 Solace Corporation. All rights reserved.