Class XPathExpression
- java.lang.Object
-
- org.apache.activemq.artemis.selector.filter.XPathExpression
-
- All Implemented Interfaces:
BooleanExpression,Expression
public final class XPathExpression extends Object implements BooleanExpression
Used to evaluate an XPath Expression in a JMS selector.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceXPathExpression.XPathEvaluatorstatic interfaceXPathExpression.XPathEvaluatorFactory
-
Field Summary
Fields Modifier and Type Field Description static StringDOCUMENT_BUILDER_FACTORY_FEATURE_PREFIXstatic XPathExpression.XPathEvaluatorFactoryXPATH_EVALUATOR_FACTORY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectevaluate(Filterable message)booleanmatches(Filterable message)protected static voidsetupFeatures(DocumentBuilderFactory factory)StringtoString()
-
-
-
Field Detail
-
XPATH_EVALUATOR_FACTORY
public static XPathExpression.XPathEvaluatorFactory XPATH_EVALUATOR_FACTORY
-
DOCUMENT_BUILDER_FACTORY_FEATURE_PREFIX
public static final String DOCUMENT_BUILDER_FACTORY_FEATURE_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
evaluate
public Object evaluate(Filterable message) throws FilterException
- Specified by:
evaluatein interfaceExpression- Returns:
- the value of this expression
- Throws:
FilterException
-
matches
public boolean matches(Filterable message) throws FilterException
- Specified by:
matchesin interfaceBooleanExpression- Parameters:
message-- Returns:
- true if the expression evaluates to Boolean.TRUE.
- Throws:
FilterException
-
setupFeatures
protected static void setupFeatures(DocumentBuilderFactory factory) throws ParserConfigurationException
- Throws:
ParserConfigurationException
-
-