com.espertech.esperio.representation.axiom
Class AxiomXPathPropertyGetter

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

public class AxiomXPathPropertyGetter
extends java.lang.Object
implements TypedEventPropertyGetter

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

See AxiomEventRepresentation for more details.


Constructor Summary
AxiomXPathPropertyGetter(java.lang.String propertyName, org.apache.axiom.om.xpath.AXIOMXPath xPath, javax.xml.namespace.QName resultType, java.lang.Class optionalCastToType)
          Ctor.
 
Method Summary
 java.lang.Object get(com.espertech.esper.client.EventBean eventBean)
           
 java.lang.Object getFragment(com.espertech.esper.client.EventBean eventBean)
           
 java.lang.Class getResultClass()
          Returns type of event property.
 boolean isExistsProperty(com.espertech.esper.client.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(java.lang.String propertyName,
                                org.apache.axiom.om.xpath.AXIOMXPath xPath,
                                javax.xml.namespace.QName resultType,
                                java.lang.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 java.lang.Object get(com.espertech.esper.client.EventBean eventBean)
                     throws com.espertech.esper.client.PropertyAccessException
Specified by:
get in interface com.espertech.esper.client.EventPropertyGetter
Throws:
com.espertech.esper.client.PropertyAccessException

getResultClass

public java.lang.Class getResultClass()
Description copied from interface: TypedEventPropertyGetter
Returns type of event property.

Specified by:
getResultClass in interface TypedEventPropertyGetter
Returns:
class of the objects returned by this getter

isExistsProperty

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

getFragment

public java.lang.Object getFragment(com.espertech.esper.client.EventBean eventBean)
                             throws com.espertech.esper.client.PropertyAccessException
Specified by:
getFragment in interface com.espertech.esper.client.EventPropertyGetter
Throws:
com.espertech.esper.client.PropertyAccessException

© 2006-2016 EsperTech Inc.
All rights reserved.
Visit us at espertech.com