com.espertech.esper.event.xml
Class SchemaXMLPropertyParser
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SchemaXMLPropertyParser
public SchemaXMLPropertyParser()
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 namenamespace
- is the default namespaceschemaModel
- is the schema modelxPathFactory
- is the xpath factory instance to userootElementName
- is the name of the root elementeventAdapterService
- for type lookup and creationxmlEventType
- the resolving typeisAllowFragment
- whether fragmenting is alloweddefaultNamespace
- default namespace
- Returns:
- xpath expression
- Throws:
EPException
- is there are XPath errors