com.espertech.esper.event.xml
Class SimpleXMLPropertyParser
java.lang.Object
com.espertech.esper.event.xml.SimpleXMLPropertyParser
public class SimpleXMLPropertyParser
- extends java.lang.Object
Parses event property names and transforms to XPath expressions. Supports
nested, indexed and mapped event properties.
Method Summary |
static java.lang.String |
walk(EsperEPL2GrammarParser.StartEventPropertyRuleContext ast,
java.lang.String propertyName,
java.lang.String rootElementName,
java.lang.String defaultNamespacePrefix,
boolean isResolvePropertiesAbsolute)
Return the xPath corresponding to the given property. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleXMLPropertyParser
public SimpleXMLPropertyParser()
walk
public static java.lang.String walk(EsperEPL2GrammarParser.StartEventPropertyRuleContext ast,
java.lang.String propertyName,
java.lang.String rootElementName,
java.lang.String defaultNamespacePrefix,
boolean isResolvePropertiesAbsolute)
- Return the xPath corresponding to the given property.
The propertyName String may be simple, nested, indexed or mapped.
- Parameters:
ast
- is the property tree ASTpropertyName
- is the property name to parserootElementName
- is the name of the root element for generating the XPath expressiondefaultNamespacePrefix
- is the prefix of the default namespaceisResolvePropertiesAbsolute
- is true to indicate to resolve XPath properties as absolute props
or relative props
- Returns:
- xpath expression