com.espertech.esper.event.xml
Class SimpleXMLEventType

java.lang.Object
  extended by com.espertech.esper.event.BaseConfigurableEventType
      extended by com.espertech.esper.event.xml.BaseXMLEventType
          extended by com.espertech.esper.event.xml.SimpleXMLEventType
All Implemented Interfaces:
EventType

public class SimpleXMLEventType
extends BaseXMLEventType

Optimistic try to resolve the property string into an appropiate xPath, and use it as getter. Mapped and Indexed properties supported. Because no type information is given, all property are resolved to String. No namespace support. Cannot access to xml attributes, only elements content. If an xsd is present, then use SchemaXMLEventType

Author:
pablo

Field Summary
 
Fields inherited from class com.espertech.esper.event.xml.BaseXMLEventType
namespaceContext
 
Constructor Summary
SimpleXMLEventType(ConfigurationEventTypeXMLDOM configurationEventTypeXMLDOM)
          Ctor.
 
Method Summary
protected  EventPropertyGetter doResolvePropertyGetter(String property)
          Subclasses must implement this and supply a getter to a given property.
protected  Class doResolvePropertyType(String property)
          Subclasses must implement this and return a type for a property.
 
Methods inherited from class com.espertech.esper.event.xml.BaseXMLEventType
doListPropertyNames, equals, getConfigurationEventTypeXMLDOM, getDeepSuperTypes, getRootElementName, getSuperTypes, getXPathFactory, hashCode, setExplicitProperties, setNamespaceContext
 
Methods inherited from class com.espertech.esper.event.BaseConfigurableEventType
getGetter, getPropertyNames, getPropertyType, getUnderlyingType, isProperty, setExplicitProperties
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleXMLEventType

public SimpleXMLEventType(ConfigurationEventTypeXMLDOM configurationEventTypeXMLDOM)
Ctor.

Parameters:
configurationEventTypeXMLDOM - configures the event type
Method Detail

doResolvePropertyType

protected Class doResolvePropertyType(String property)
Description copied from class: BaseConfigurableEventType
Subclasses must implement this and return a type for a property.

Specified by:
doResolvePropertyType in class BaseConfigurableEventType
Parameters:
property - is the property name
Returns:
property type

doResolvePropertyGetter

protected EventPropertyGetter doResolvePropertyGetter(String property)
Description copied from class: BaseConfigurableEventType
Subclasses must implement this and supply a getter to a given property.

Specified by:
doResolvePropertyGetter in class BaseConfigurableEventType
Parameters:
property - is the property name
Returns:
getter for property

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