com.espertech.esper.event.xml
Class SchemaXMLPropertyParser

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

public class SchemaXMLPropertyParser
extends java.lang.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 EventPropertyGetter getXPathResolution(java.lang.String propertyName, javax.xml.xpath.XPathFactory xPathFactory, java.lang.String rootElementName, java.lang.String namespace, SchemaModel schemaModel, EventAdapterService eventAdapterService, BaseXMLEventType xmlEventType, boolean isAllowFragment, java.lang.String defaultNamespace)
          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

getXPathResolution

public static EventPropertyGetter getXPathResolution(java.lang.String propertyName,
                                                     javax.xml.xpath.XPathFactory xPathFactory,
                                                     java.lang.String rootElementName,
                                                     java.lang.String namespace,
                                                     SchemaModel schemaModel,
                                                     EventAdapterService eventAdapterService,
                                                     BaseXMLEventType xmlEventType,
                                                     boolean isAllowFragment,
                                                     java.lang.String defaultNamespace)
                                              throws EPException
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
schemaModel - is the schema model
xPathFactory - is the xpath factory instance to use
rootElementName - is the name of the root element
eventAdapterService - for type lookup and creation
xmlEventType - the resolving type
isAllowFragment - whether fragmenting is allowed
defaultNamespace - default namespace
Returns:
xpath expression
Throws:
EPException - is there are XPath errors

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