Class SchemaXMLPropertyParser

java.lang.Object
com.espertech.esper.common.internal.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 Details

    • SchemaXMLPropertyParser

      public SchemaXMLPropertyParser()
  • Method Details

    • getXPathResolution

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