public interface OMSerializable
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
.Modifier and Type | Method and Description |
---|---|
void |
build()
Builds itself.
|
void |
close(boolean build)
If a builder and parser is associated with the node, it is closed.
|
OMFactory |
getOMFactory()
Returns the OMFactory that created this object
|
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.
|
OMFactory getOMFactory()
boolean isComplete()
void build()
void close(boolean build)
build
- if true, the object is built first before closing the builder/parservoid 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 enabledjavax.xml.stream.XMLStreamException
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.