com.espertech.esper.event.xml
Class SimpleXMLPropertyParser

java.lang.Object
  extended by com.espertech.esper.event.xml.SimpleXMLPropertyParser

public class SimpleXMLPropertyParser
extends Object

Parses event property names and transforms to XPath expressions. Supports nested, indexed and mapped event properties.


Constructor Summary
SimpleXMLPropertyParser()
           
 
Method Summary
protected static org.antlr.runtime.tree.Tree parse(String propertyName)
          Parses a given property name returning an AST.
static String parse(String propertyName, String rootElementName, 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

parse

public static String parse(String propertyName,
                           String rootElementName,
                           String defaultNamespacePrefix,
                           boolean isResolvePropertiesAbsolute)
Return the xPath corresponding to the given property. The propertyName String may be simple, nested, indexed or mapped.

Parameters:
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

parse

protected static org.antlr.runtime.tree.Tree parse(String propertyName)
Parses a given property name returning an AST.

Parameters:
propertyName - to parse
Returns:
AST syntax tree

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com