com.espertech.esperio.representation.axiom
Class AxiomXPathPropertyGetter

java.lang.Object
  extended by com.espertech.esperio.representation.axiom.AxiomXPathPropertyGetter
All Implemented Interfaces:
com.espertech.esper.event.EventPropertyGetter, com.espertech.esper.event.TypedEventPropertyGetter

public class AxiomXPathPropertyGetter
extends Object
implements com.espertech.esper.event.TypedEventPropertyGetter

Implementation of a property getter for the Axiom XML data model.

See AxiomEventRepresentation for more details.


Constructor Summary
AxiomXPathPropertyGetter(String propertyName, org.apache.axiom.om.xpath.AXIOMXPath xPath, QName resultType, Class optionalCastToType)
          Ctor.
 
Method Summary
 Object get(com.espertech.esper.event.EventBean eventBean)
           
 Class getResultClass()
           
 boolean isExistsProperty(com.espertech.esper.event.EventBean eventBean)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AxiomXPathPropertyGetter

public AxiomXPathPropertyGetter(String propertyName,
                                org.apache.axiom.om.xpath.AXIOMXPath xPath,
                                QName resultType,
                                Class optionalCastToType)
Ctor.

Parameters:
propertyName - is the name of the event property for which this getter gets values
resultType - is the resulting type
xPath - the Axiom xpath expression
optionalCastToType - null if no cast, or the type to cast to
Method Detail

get

public Object get(com.espertech.esper.event.EventBean eventBean)
           throws com.espertech.esper.event.PropertyAccessException
Specified by:
get in interface com.espertech.esper.event.EventPropertyGetter
Throws:
com.espertech.esper.event.PropertyAccessException

getResultClass

public Class getResultClass()
Specified by:
getResultClass in interface com.espertech.esper.event.TypedEventPropertyGetter

isExistsProperty

public boolean isExistsProperty(com.espertech.esper.event.EventBean eventBean)
Specified by:
isExistsProperty in interface com.espertech.esper.event.EventPropertyGetter

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