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,
ConfigurationCommonEventTypeXMLDOM configurationEventTypeXMLDOM,
EventBeanTypedEventFactory eventBeanTypedEventFactory,
EventTypeNameResolver eventTypeResolver,
XMLFragmentEventTypeFactory xmlEventTypeFactory)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object otherObj)
Same-Root XML types are actually equivalent.
|
ExprValidationException |
equalsCompareType(EventType eventType) |
ConfigurationCommonEventTypeXMLDOM |
getConfigurationEventTypeXMLDOM()
Returns the configuration XML for the XML type.
|
EventBeanCopyMethodForge |
getCopyMethodForge(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.
|
Set<EventType> |
getDeepSuperTypesAsSet()
Returns the set of deep supertypes
|
String |
getEndTimestampPropertyName()
Returns the property name of the property providing the end timestamp value.
|
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.
|
DataInputOutputSerde |
getUnderlyingBindingDIO() |
EventPropertyDescriptor |
getWritableProperty(String propertyName)
Returns the descriptor for a writable property.
|
EventPropertyDescriptor[] |
getWriteableProperties()
Returns the writable properties.
|
EventPropertyWriterSPI |
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<ConfigurationCommonEventTypeXMLDOM.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.
|
void |
setUnderlyingBindingDIO(DataInputOutputSerde<Object> underlyingSerde) |
doResolveFragmentType, doResolvePropertyGetter, doResolvePropertyType, getEventBeanTypedEventFactory, getEventTypeResolver, getFragmentType, getGetter, getGetterIndexed, getGetterIndexedSPI, getGetterMapped, getGetterMappedSPI, getGetterSPI, getMetadata, getName, getPropertyDescriptor, getPropertyDescriptors, getPropertyNames, getPropertyType, getUnderlyingType, getXmlEventTypeFactory, initialize, isProperty, setMetadataId
protected XPathNamespaceContext namespaceContext
public BaseXMLEventType(EventTypeMetadata metadata, ConfigurationCommonEventTypeXMLDOM configurationEventTypeXMLDOM, EventBeanTypedEventFactory eventBeanTypedEventFactory, EventTypeNameResolver eventTypeResolver, XMLFragmentEventTypeFactory xmlEventTypeFactory)
configurationEventTypeXMLDOM
- is the XML DOM configuration such as root element and schema namesmetadata
- event type metadataeventBeanTypedEventFactory
- for registration and lookup of typesxmlEventTypeFactory
- xml type factoryeventTypeResolver
- resolverpublic void setUnderlyingBindingDIO(DataInputOutputSerde<Object> underlyingSerde)
public DataInputOutputSerde getUnderlyingBindingDIO()
public String getRootElementName()
protected void setNamespaceContext(XPathNamespaceContext namespaceContext)
namespaceContext
- for XPath expressionsprotected void initialize(Collection<ConfigurationCommonEventTypeXMLDOM.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 Set<EventType> getDeepSuperTypesAsSet()
EventType
public ConfigurationCommonEventTypeXMLDOM getConfigurationEventTypeXMLDOM()
public ExprValidationException equalsCompareType(EventType eventType)
public boolean equals(Object otherObj)
public EventPropertyWriterSPI getWriter(String propertyName)
EventTypeSPI
propertyName
- to write topublic EventPropertyDescriptor[] getWriteableProperties()
EventTypeSPI
public EventBeanCopyMethodForge getCopyMethodForge(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 String getStartTimestampPropertyName()
EventType
Copyright © 2005–2019. All rights reserved.