com.espertech.esperio.representation.axiom
Class AxiomXMLEventType

java.lang.Object
  extended by com.espertech.esperio.representation.axiom.AxiomXMLEventType
All Implemented Interfaces:
EventType, EventTypeSPI

public class AxiomXMLEventType
extends java.lang.Object
implements EventTypeSPI

Apache Axiom event type provides event metadata for Axiom OMDocument events.

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.

See AxiomEventRepresentation for more details.


Constructor Summary
AxiomXMLEventType(EventTypeMetadata metadata, int eventTypeId, ConfigurationEventTypeAxiom configurationEventTypeAxiom)
          Ctor.
 
Method Summary
 boolean equalsCompareType(EventType eventType)
           
 ConfigurationEventTypeAxiom getConfig()
          Returns the configuration for the name.
 EventBeanCopyMethod getCopyMethod(java.lang.String[] properties)
           
 java.util.Iterator<EventType> getDeepSuperTypes()
           
 java.lang.String getEndTimestampPropertyName()
           
 int getEventTypeId()
           
 FragmentEventType getFragmentType(java.lang.String propertyExpression)
           
 EventPropertyGetter getGetter(java.lang.String property)
           
 EventPropertyGetterIndexed getGetterIndexed(java.lang.String indexedPropertyName)
           
 EventPropertyGetterMapped getGetterMapped(java.lang.String mappedPropertyName)
           
 EventTypeMetadata getMetadata()
           
 java.lang.String getName()
           
 EventPropertyDescriptor getPropertyDescriptor(java.lang.String propertyName)
           
 EventPropertyDescriptor[] getPropertyDescriptors()
           
 java.lang.String[] getPropertyNames()
           
 java.lang.Class getPropertyType(java.lang.String property)
           
 EventBeanReader getReader()
           
 java.lang.String getStartTimestampPropertyName()
           
 EventType[] getSuperTypes()
           
 java.lang.Class getUnderlyingType()
           
 EventPropertyDescriptor getWritableProperty(java.lang.String propertyName)
           
 EventPropertyDescriptor[] getWriteableProperties()
           
 EventPropertyWriter getWriter(java.lang.String propertyName)
           
 EventBeanWriter getWriter(java.lang.String[] properties)
           
 boolean isProperty(java.lang.String property)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AxiomXMLEventType

public AxiomXMLEventType(EventTypeMetadata metadata,
                         int eventTypeId,
                         ConfigurationEventTypeAxiom configurationEventTypeAxiom)
Ctor.

Parameters:
configurationEventTypeAxiom - is the configuration for XML access
Method Detail

getEventTypeId

public int getEventTypeId()
Specified by:
getEventTypeId in interface EventType

getPropertyType

public java.lang.Class getPropertyType(java.lang.String property)
Specified by:
getPropertyType in interface EventType

getUnderlyingType

public java.lang.Class getUnderlyingType()
Specified by:
getUnderlyingType in interface EventType

getGetter

public EventPropertyGetter getGetter(java.lang.String property)
Specified by:
getGetter in interface EventType

getPropertyNames

public java.lang.String[] getPropertyNames()
Specified by:
getPropertyNames in interface EventType

isProperty

public boolean isProperty(java.lang.String property)
Specified by:
isProperty in interface EventType

getSuperTypes

public EventType[] getSuperTypes()
Specified by:
getSuperTypes in interface EventType

getDeepSuperTypes

public java.util.Iterator<EventType> getDeepSuperTypes()
Specified by:
getDeepSuperTypes in interface EventType

getStartTimestampPropertyName

public java.lang.String getStartTimestampPropertyName()
Specified by:
getStartTimestampPropertyName in interface EventType

getEndTimestampPropertyName

public java.lang.String getEndTimestampPropertyName()
Specified by:
getEndTimestampPropertyName in interface EventType

getConfig

public ConfigurationEventTypeAxiom getConfig()
Returns the configuration for the name.

Returns:
configuration details underlying the type

getMetadata

public EventTypeMetadata getMetadata()
Specified by:
getMetadata in interface EventTypeSPI

getName

public java.lang.String getName()
Specified by:
getName in interface EventType

getFragmentType

public FragmentEventType getFragmentType(java.lang.String propertyExpression)
Specified by:
getFragmentType in interface EventType

getPropertyDescriptors

public EventPropertyDescriptor[] getPropertyDescriptors()
Specified by:
getPropertyDescriptors in interface EventType

getPropertyDescriptor

public EventPropertyDescriptor getPropertyDescriptor(java.lang.String propertyName)
Specified by:
getPropertyDescriptor in interface EventType

getWriter

public EventPropertyWriter getWriter(java.lang.String propertyName)
Specified by:
getWriter in interface EventTypeSPI

getWriteableProperties

public EventPropertyDescriptor[] getWriteableProperties()
Specified by:
getWriteableProperties in interface EventTypeSPI

getCopyMethod

public EventBeanCopyMethod getCopyMethod(java.lang.String[] properties)
Specified by:
getCopyMethod in interface EventTypeSPI

getWritableProperty

public EventPropertyDescriptor getWritableProperty(java.lang.String propertyName)
Specified by:
getWritableProperty in interface EventTypeSPI

getWriter

public EventBeanWriter getWriter(java.lang.String[] properties)
Specified by:
getWriter in interface EventTypeSPI

getReader

public EventBeanReader getReader()
Specified by:
getReader in interface EventTypeSPI

getGetterMapped

public EventPropertyGetterMapped getGetterMapped(java.lang.String mappedPropertyName)
Specified by:
getGetterMapped in interface EventType

getGetterIndexed

public EventPropertyGetterIndexed getGetterIndexed(java.lang.String indexedPropertyName)
Specified by:
getGetterIndexed in interface EventType

equalsCompareType

public boolean equalsCompareType(EventType eventType)
Specified by:
equalsCompareType in interface EventTypeSPI

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