public class SerializeTagEvent
extends java.util.EventObject
serializeTag
and deserializeTag
event handlers.Modifier and Type | Method and Description |
---|---|
XmlSerializationContext |
getContext()
Gets a context object that can help you write and read various values.
|
boolean |
getHandled()
Gets a value indicating whether the event is handled.
|
java.lang.Object |
getObject()
|
org.w3c.dom.Element |
getRepresentation()
Gets the root element of the XML representation of the tag object
being serialized / deserialized.
|
java.lang.Object |
getTag()
Gets the tag object being serialized/deserialized.
|
void |
setHandled(boolean value)
Sets a value indicating whether the event is handled.
|
void |
setRepresentation(org.w3c.dom.Element value)
Sets the root element of the XML representation of the tag object
being serialized / deserialized.
|
void |
setTag(java.lang.Object value)
Sets the tag object being serialized/deserialized.
|
public java.lang.Object getTag()
public void setTag(java.lang.Object value)
value
- An object representing the tag value being serialized or deserialized.public org.w3c.dom.Element getRepresentation()
When serializing tags use this XML element as a root of the tag representation by adding child elements to it. When deserializing the tag use this XML element as a root of the tag representation by reading child elements from it.
Element
class representing the node in
the XML document, containing the tag representation.public void setRepresentation(org.w3c.dom.Element value)
When serializing tags use this XML element as a root of the tag representation by adding child elements to it. When deserializing the tag use this XML element as a root of the tag representation by reading child elements from it.
value
- An instance of the Element
class representing the node in
the XML document, containing the tag representation.public boolean getHandled()
public void setHandled(boolean value)
Always set this flag to true if you perform custom tag serialization.
value
- true to indicate that the system should not attempt to serialize or
deserialize the tag; otherwise, false.public XmlSerializationContext getContext()
It is recommended to operate with the underlying XML document by the methods of this object.
XmlSerializationContext
class.