com.espertech.esper.event.xml
Class SimpleXMLPropertyParser

java.lang.Object
  extended by 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.


Constructor Summary
SimpleXMLPropertyParser()
           
 
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
 

Constructor Detail

SimpleXMLPropertyParser

public SimpleXMLPropertyParser()
Method Detail

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 AST
propertyName - is the property name to parse
rootElementName - is the name of the root element for generating the XPath expression
defaultNamespacePrefix - is the prefix of the default namespace
isResolvePropertiesAbsolute - is true to indicate to resolve XPath properties as absolute props or relative props
Returns:
xpath expression

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com