Interface OMSerializable

All Superinterfaces:
OMInformationItem
All Known Subinterfaces:
OMComment, OMContainer, OMDocType, OMDocument, OMElement, OMEntityReference, OMNode, OMProcessingInstruction, OMSourcedElement, OMText, SOAPBody, SOAPEnvelope, SOAPFault, SOAPFaultClassifier, SOAPFaultCode, SOAPFaultDetail, SOAPFaultNode, SOAPFaultReason, SOAPFaultRole, SOAPFaultSubCode, SOAPFaultText, SOAPFaultValue, SOAPHeader, SOAPHeaderBlock, SOAPMessage

public interface OMSerializable extends OMInformationItem
Information item that can be serialized (written to an XML stream writer) and deserialized (retrieved from an XML parser) as a unit. This is the common super-interface for OMDocument and OMNode. Note that OMAttribute and OMNamespace are information items that don't match the definition of this interface because they can only be read from the parser as part of a larger unit, namely an element.

In accordance with the definition given above, this interface declares two sets of methods:

  • Methods allowing to control whether the information item has been completely built, i.e. whether all events corresponding to the information item have been retrieved from the parser.
  • Methods to write the StAX events corresponding to the information item to an XMLStreamWriter.
  • Method Details