com.espertech.esper.event.xml
Class SchemaXMLPropertyParser

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

public class SchemaXMLPropertyParser
extends Object

Parses event property names and transforms to XPath expressions using the schema information supplied. Supports the nested, indexed and mapped event properties.


Constructor Summary
SchemaXMLPropertyParser()
           
 
Method Summary
static TypedEventPropertyGetter parse(String propertyName, XPathFactory xPathFactory, String rootElementName, String namespace, com.sun.org.apache.xerces.internal.xs.XSModel xsModel)
          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

SchemaXMLPropertyParser

public SchemaXMLPropertyParser()
Method Detail

parse

public static TypedEventPropertyGetter parse(String propertyName,
                                             XPathFactory xPathFactory,
                                             String rootElementName,
                                             String namespace,
                                             com.sun.org.apache.xerces.internal.xs.XSModel xsModel)
                                      throws XPathExpressionException
Return the xPath corresponding to the given property. The propertyName String may be simple, nested, indexed or mapped.

Parameters:
propertyName - is the event property name
namespace - is the default namespace
xsModel - is the schema model
xPathFactory - is the xpath factory instance to use
rootElementName - is the name of the root element
Returns:
xpath expression
Throws:
XPathExpressionException - when the XPath expression is invalid

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