public abstract class BaseXMLEventType extends BaseConfigurableEventType
Modifier and Type | Field and Description |
---|---|
protected XPathNamespaceContext |
namespaceContext
XPath namespace context.
|
propertyDescriptorMap, propertyGetters
Constructor and Description |
---|
BaseXMLEventType(EventTypeMetadata metadata,
int eventTypeId,
ConfigurationEventTypeXMLDOM configurationEventTypeXMLDOM,
EventAdapterService eventAdapterService)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(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(String[] properties)
Returns the copy method, considering only the attached properties for a write operation onto the copy
|
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.
|
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.
|
String |
getRootElementName()
Returns the name of the root element.
|
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(String propertyName)
Returns the descriptor for a writable property.
|
EventPropertyDescriptor[] |
getWriteableProperties()
Returns the writable properties.
|
EventPropertyWriter |
getWriter(String propertyName)
Return a writer for writing a single property value.
|
EventBeanWriter |
getWriter(String[] properties)
Returns the write for writing a set of properties.
|
protected XPathFactory |
getXPathFactory()
Returns the XPath factory used.
|
int |
hashCode() |
protected void |
initialize(Collection<ConfigurationEventTypeXMLDOM.XPathPropertyDesc> explicitXPathProperties,
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.
|
doResolveFragmentType, doResolvePropertyGetter, doResolvePropertyType, getEventAdapterService, getEventTypeId, getFragmentType, getGetter, getGetterIndexed, getGetterIndexedSPI, getGetterMapped, getGetterMappedSPI, getGetterSPI, getMetadata, getName, getPropertyDescriptor, getPropertyDescriptors, getPropertyNames, getPropertyType, getUnderlyingType, initialize, isProperty
protected XPathNamespaceContext namespaceContext
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 typeseventTypeId
- type idpublic String getRootElementName()
protected void setNamespaceContext(XPathNamespaceContext namespaceContext)
namespaceContext
- for XPath expressionsprotected void initialize(Collection<ConfigurationEventTypeXMLDOM.XPathPropertyDesc> explicitXPathProperties, List<ExplicitPropertyDescriptor> additionalSchemaProperties)
explicitXPathProperties
- are preconfigured event propertiesadditionalSchemaProperties
- the explicit propertiesprotected 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 Iterator<EventType> getDeepSuperTypes()
EventType
public ConfigurationEventTypeXMLDOM getConfigurationEventTypeXMLDOM()
public boolean equalsCompareType(EventType eventType)
public boolean equals(Object otherObj)
public EventPropertyWriter getWriter(String propertyName)
EventTypeSPI
propertyName
- to write topublic EventPropertyDescriptor[] getWriteableProperties()
EventTypeSPI
public EventBeanCopyMethod getCopyMethod(String[] properties)
EventTypeSPI
properties
- to write after copypublic EventPropertyDescriptor getWritableProperty(String propertyName)
EventTypeSPI
propertyName
- to get descriptor forpublic EventBeanWriter getWriter(String[] properties)
EventTypeSPI
properties
- to writepublic EventBeanReader getReader()
EventTypeSPI
public String getStartTimestampPropertyName()
EventType