public final class XMLEvent extends com.streamscape.sdo.event.AbstractMutableEvent implements EventDatagram
Title: Structured Data Objects: XML Event
Description: Defines an XML event.
Copyright: Copyright (c) 2011
Company: StreamScape Technologies
SEMANTIC_TYPE_NAME
DEFAULT_SERIAL_VERSION_ID
Modifier and Type | Method and Description |
---|---|
void |
clearConstraint()
Clears the semantic type constraint.
|
boolean |
equals(java.lang.Object other) |
java.lang.String |
getXFragment()
Returns the
XML content of this event without <?xml> prefix if it has such a prefix. |
java.lang.String |
getXML()
Returns the
XML content of this event. |
boolean |
hasConstraint()
Checks if a semantic type constraint is set for the event.
|
void |
setConstraint(SemanticType type)
Sets a semantic type constraint.
|
void |
setXML(java.lang.Object data)
Sets the xml content of this event to the xml-string got as a serialization of the specified object.
|
void |
setXML(SemanticType type,
java.lang.Object data)
Sets the xml content of this event to the xml-string got as a serialization of the specified object.
|
void |
setXML(java.lang.String xml)
Sets the xml content of this event to the specified xml-string.
|
addAnnotation, clearEventProperties, protect, removeAnnotation, removeEventProperty, resetReplyTo, setCorrelationId, setCorrelationIdAsBytes, setDurable, setEventBigDecimalProperty, setEventBigDecimalProperty, setEventBooleanProperty, setEventByteProperty, setEventDoubleProperty, setEventExpiration, setEventFloatProperty, setEventGroupId, setEventIntProperty, setEventKey, setEventLongProperty, setEventObjectProperty, setEventShortProperty, setEventStringProperty, setFinal, setForwardTo, setReplyTo, setSecurityAssertionToken, setSecurityAssertionTokenAsBytes, unprotect
canConvertEventProperty, clone, existsEventProperty, getAnnotatedProperties, getAnnotation, getCorrelationId, getCorrelationIdAsBytes, getDurable, getEventBigDecimalProperty, getEventBooleanProperty, getEventByteProperty, getEventDoubleProperty, getEventExpiration, getEventFloatProperty, getEventGroupId, getEventId, getEventIntProperty, getEventKey, getEventLongProperty, getEventObjectProperty, getEventPropertyNames, getEventPropertyType, getEventShortProperty, getEventSource, getEventStringProperty, getForwardTo, getPermissions, getReadAccess, getReplyTo, getSecurityAssertionToken, getSecurityAssertionTokenAsBytes, getTimestamp, getTransmitAccess, getWriteAccess, hasAnnotatedProperties, hasSuitableAnnotationType, isProtected
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAnnotation, canConvertEventProperty, clearEventProperties, existsEventProperty, getAnnotatedProperties, getAnnotation, getCorrelationId, getCorrelationIdAsBytes, getEventBigDecimalProperty, getEventBooleanProperty, getEventByteProperty, getEventDoubleProperty, getEventExpiration, getEventFloatProperty, getEventIntProperty, getEventLongProperty, getEventObjectProperty, getEventPropertyNames, getEventPropertyType, getEventShortProperty, getEventStringProperty, getForwardTo, getPermissions, getReadAccess, getReplyTo, getSecurityAssertionToken, getSecurityAssertionTokenAsBytes, getTransmitAccess, getWriteAccess, hasAnnotatedProperties, isProtected, protect, removeAnnotation, removeEventProperty, resetReplyTo, setCorrelationId, setCorrelationIdAsBytes, setDurable, setEventBigDecimalProperty, setEventBigDecimalProperty, setEventBooleanProperty, setEventByteProperty, setEventDoubleProperty, setEventExpiration, setEventFloatProperty, setEventGroupId, setEventIntProperty, setEventKey, setEventLongProperty, setEventObjectProperty, setEventShortProperty, setEventStringProperty, setFinal, setForwardTo, setReplyTo, setSecurityAssertionToken, setSecurityAssertionTokenAsBytes, unprotect
clone, getDurable, getEventGroupId, getEventId, getEventKey, getEventSource, getTimestamp
getSerialVersionUID
public void setConstraint(SemanticType type) throws SDOException, SecurityViolationException
type
- the semantic type constraint to be set.SecurityViolationException
- if the event is protected from write access or
if the event already coalesced.SDOException
- if the semantic type already set.public void clearConstraint() throws SecurityViolationException, SDOException
SecurityViolationException
- if the event is protected from write access or
if the event already coalesced.SDOException
public boolean hasConstraint()
true
if a semantic type constraint is set and false
otherwise.public void setXML(java.lang.Object data) throws SecurityViolationException, SDOException, SerializerException
data
- the object which xml serialization string is set as the event content.SDORuntimeException
- if the event is coalesced (locked for editing).SecurityViolationException
- if the event is protected from write access.SDOException
- if the semantic type constraint is not set or
if it is not equal to the specified object class.XSerializerException
- if xml serialization of the specified object fails.SerializerException
public void setXML(SemanticType type, java.lang.Object data) throws SecurityViolationException, SDOException, SerializerException
type
- the semantic type constraint to be set and useddata
- the object which xml serialization string is set as the event contentSDORuntimeException
- if the event is coalesced (locked for editing).SecurityViolationException
- if the event is protected from write access.SDOException
- if the semantic type constraint is not set or
if it is not equal to the specified object class.XSerializerException
- if xml serialization of the specified object fails.SerializerException
public void setXML(java.lang.String xml) throws SecurityViolationException, SDOException, SerializerException
xml
- the xml-string to be set as the event content.SDORuntimeException
- if the event is coalesced (locked for editing).SecurityViolationException
- if the event is protected from write access.SDOException
- if the semantic type constraint is null and the specified string doesn't contain a valid xml.XSerializerException
- if the semantic type constraint is set and xml deserialization of the specified string fails.SerializerException
public java.lang.String getXML() throws SecurityViolationException
XML
content of this event.XML
content of the event.SecurityViolationException
- if the event is protected from read access.public java.lang.String getXFragment() throws SecurityViolationException, SDOException
XML
content of this event without <?xml> prefix if it has such a prefix.XML
content of the event without <?xml> prefix.SecurityViolationException
- if the event is protected from read access.SDOException
public boolean equals(java.lang.Object other)
equals
in class com.streamscape.sdo.IAbstractDataEvent
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.