|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.event.BaseConfigurableEventType
com.espertech.esper.event.xml.BaseXMLEventType
public abstract class BaseXMLEventType
Base class for XML event types.
Field Summary | |
---|---|
protected XPathNamespaceContext |
namespaceContext
XPath namespace context. |
Fields inherited from class com.espertech.esper.event.BaseConfigurableEventType |
---|
propertyDescriptorMap, propertyGetters |
Constructor Summary | |
---|---|
BaseXMLEventType(EventTypeMetadata metadata,
int eventTypeId,
ConfigurationEventTypeXMLDOM configurationEventTypeXMLDOM,
EventAdapterService eventAdapterService)
Ctor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object otherObj)
Same-Root XML types are actually equivalent. |
boolean |
equalsCompareType(EventType eventType)
|
ConfigurationEventTypeXMLDOM |
getConfigurationEventTypeXMLDOM()
Returns the configuration XML for the XML type. |
EventBeanCopyMethod |
getCopyMethod(java.lang.String[] properties)
Returns the copy method, considering only the attached properties for a write operation onto the copy |
java.util.Iterator<EventType> |
getDeepSuperTypes()
Returns iterator over all super types to event type, going up the hierarchy and including all Java interfaces (and their extended interfaces) and superclasses as EventType instances. |
java.lang.String |
getEndTimestampPropertyName()
Returns the property name of the property providing the end timestamp value. |
EventBeanReader |
getReader()
Returns a reader for reading all properties of an event. |
java.lang.String |
getRootElementName()
Returns the name of the root element. |
java.lang.String |
getStartTimestampPropertyName()
Returns the property name of the property providing the start timestamp value. |
EventType[] |
getSuperTypes()
Returns an array of event types that are super to this event type, from which this event type inherited event properties. |
EventPropertyDescriptor |
getWritableProperty(java.lang.String propertyName)
Returns the descriptor for a writable property. |
EventPropertyDescriptor[] |
getWriteableProperties()
Returns the writable properties. |
EventPropertyWriter |
getWriter(java.lang.String propertyName)
Return a writer for writing a single property value. |
EventBeanWriter |
getWriter(java.lang.String[] properties)
Returns the write for writing a set of properties. |
protected javax.xml.xpath.XPathFactory |
getXPathFactory()
Returns the XPath factory used. |
int |
hashCode()
|
protected void |
initialize(java.util.Collection<ConfigurationEventTypeXMLDOM.XPathPropertyDesc> explicitXPathProperties,
java.util.List<ExplicitPropertyDescriptor> additionalSchemaProperties)
Set the preconfigured event properties resolved by XPath expression. |
protected void |
setNamespaceContext(XPathNamespaceContext namespaceContext)
Sets the namespace context for use in XPath expression resolution. |
Methods inherited from class com.espertech.esper.event.BaseConfigurableEventType |
---|
doResolveFragmentType, doResolvePropertyGetter, doResolvePropertyType, getEventAdapterService, getEventTypeId, getFragmentType, getGetter, getGetterIndexed, getGetterMapped, getMetadata, getName, getPropertyDescriptor, getPropertyDescriptors, getPropertyNames, getPropertyType, getUnderlyingType, initialize, isProperty |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected XPathNamespaceContext namespaceContext
Constructor Detail |
---|
public BaseXMLEventType(EventTypeMetadata metadata, int eventTypeId, ConfigurationEventTypeXMLDOM configurationEventTypeXMLDOM, EventAdapterService eventAdapterService)
configurationEventTypeXMLDOM
- is the XML DOM configuration such as root element and schema namesmetadata
- event type metadataeventAdapterService
- for registration and lookup of typesMethod Detail |
---|
public java.lang.String getRootElementName()
protected void setNamespaceContext(XPathNamespaceContext namespaceContext)
namespaceContext
- for XPath expressionsprotected void initialize(java.util.Collection<ConfigurationEventTypeXMLDOM.XPathPropertyDesc> explicitXPathProperties, java.util.List<ExplicitPropertyDescriptor> additionalSchemaProperties)
explicitXPathProperties
- are preconfigured event propertiesadditionalSchemaProperties
- the explicit propertiesprotected javax.xml.xpath.XPathFactory getXPathFactory()
public EventType[] getSuperTypes()
EventType
For Java bean instances underlying the event this method returns the event types for all superclasses extended by the Java bean and all interfaces implemented by the Java bean.
public java.util.Iterator<EventType> getDeepSuperTypes()
EventType
public ConfigurationEventTypeXMLDOM getConfigurationEventTypeXMLDOM()
public boolean equalsCompareType(EventType eventType)
public boolean equals(java.lang.Object otherObj)
equals
in class java.lang.Object
otherObj
- to compare to
public int hashCode()
hashCode
in class java.lang.Object
public EventPropertyWriter getWriter(java.lang.String propertyName)
EventTypeSPI
propertyName
- to write to
public EventPropertyDescriptor[] getWriteableProperties()
EventTypeSPI
public EventBeanCopyMethod getCopyMethod(java.lang.String[] properties)
EventTypeSPI
properties
- to write after copy
public EventPropertyDescriptor getWritableProperty(java.lang.String propertyName)
EventTypeSPI
propertyName
- to get descriptor for
public EventBeanWriter getWriter(java.lang.String[] properties)
EventTypeSPI
properties
- to write
public EventBeanReader getReader()
EventTypeSPI
public java.lang.String getStartTimestampPropertyName()
EventType
public java.lang.String getEndTimestampPropertyName()
EventType
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |