getXPathResolution
public static EventPropertyGetterSPI getXPathResolution(String propertyName,
XPathFactory xPathFactory,
String rootElementName,
String namespace,
SchemaModel schemaModel,
EventAdapterService eventAdapterService,
BaseXMLEventType xmlEventType,
boolean isAllowFragment,
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