|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OMSerializable
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:
XMLStreamWriter.
| Method Summary | |
|---|---|
void |
build()
Builds itself. |
void |
close(boolean build)
If a builder and parser is associated with the node, it is closed. |
boolean |
isComplete()
Indicates whether parser has parsed this information item completely or not. |
void |
serialize(javax.xml.stream.XMLStreamWriter xmlWriter)
Serializes the information item with caching. |
void |
serialize(javax.xml.stream.XMLStreamWriter xmlWriter,
boolean cache)
Serializes the information item. |
void |
serializeAndConsume(javax.xml.stream.XMLStreamWriter xmlWriter)
Serializes the information item without caching. |
| Methods inherited from interface org.apache.axiom.om.OMInformationItem |
|---|
getOMFactory |
| Method Detail |
|---|
boolean isComplete()
void build()
void close(boolean build)
build - if true, the object is built first before closing the builder/parser
void serialize(javax.xml.stream.XMLStreamWriter xmlWriter)
throws javax.xml.stream.XMLStreamException
serialize(XMLStreamWriter, boolean) with cache set to
true.
xmlWriter -
javax.xml.stream.XMLStreamException
void serializeAndConsume(javax.xml.stream.XMLStreamWriter xmlWriter)
throws javax.xml.stream.XMLStreamException
serialize(XMLStreamWriter, boolean) with cache set to
false.
xmlWriter -
javax.xml.stream.XMLStreamException
void serialize(javax.xml.stream.XMLStreamWriter xmlWriter,
boolean cache)
throws javax.xml.stream.XMLStreamException
xmlWriter - cache - indicates if caching should be enabled
javax.xml.stream.XMLStreamException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||