Package org.apache.axiom.om.impl.llom
Class OMSerializableImpl
java.lang.Object
org.apache.axiom.om.impl.llom.OMSerializableImpl
- All Implemented Interfaces:
org.apache.axiom.om.OMSerializable
- Direct Known Subclasses:
OMDocumentImpl,OMNodeImpl
public abstract class OMSerializableImpl
extends Object
implements org.apache.axiom.om.OMSerializable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuild()Parses this node and builds the object structure in memory.voidclose(boolean build) org.apache.axiom.om.OMFactoryabstract voidinternalSerialize(XMLStreamWriter writer, boolean cache) Serializes the node.booleanvoidserialize(OutputStream output) voidserialize(OutputStream output, org.apache.axiom.om.OMOutputFormat format) voidvoidvoidserialize(XMLStreamWriter xmlWriter) voidserialize(XMLStreamWriter xmlWriter, boolean cache) voidserializeAndConsume(OutputStream output) voidserializeAndConsume(OutputStream output, org.apache.axiom.om.OMOutputFormat format) voidserializeAndConsume(Writer writer) voidserializeAndConsume(Writer writer2, org.apache.axiom.om.OMOutputFormat format) voidserializeAndConsume(XMLStreamWriter xmlWriter) abstract voidsetComplete(boolean state)
-
Field Details
-
builder
public org.apache.axiom.om.OMXMLParserWrapper builderField parserWrapper -
done
protected boolean doneField done -
factory
protected final org.apache.axiom.om.OMFactory factory
-
-
Constructor Details
-
OMSerializableImpl
public OMSerializableImpl(org.apache.axiom.om.OMFactory factory)
-
-
Method Details
-
getOMFactory
public org.apache.axiom.om.OMFactory getOMFactory()- Specified by:
getOMFactoryin interfaceorg.apache.axiom.om.OMSerializable
-
isComplete
public boolean isComplete()- Specified by:
isCompletein interfaceorg.apache.axiom.om.OMSerializable
-
build
public void build() throws org.apache.axiom.om.OMExceptionParses this node and builds the object structure in memory. However a node, created programmatically, will have done set to true by default and this will cause populateyourself not to work properly!- Specified by:
buildin interfaceorg.apache.axiom.om.OMSerializable- Throws:
org.apache.axiom.om.OMException
-
close
public void close(boolean build) - Specified by:
closein interfaceorg.apache.axiom.om.OMSerializable
-
setComplete
public abstract void setComplete(boolean state) -
internalSerialize
public abstract void internalSerialize(XMLStreamWriter writer, boolean cache) throws XMLStreamException Serializes the node.- Parameters:
writer-- Throws:
XMLStreamException
-
serialize
- Specified by:
serializein interfaceorg.apache.axiom.om.OMSerializable- Throws:
XMLStreamException
-
serializeAndConsume
- Specified by:
serializeAndConsumein interfaceorg.apache.axiom.om.OMSerializable- Throws:
XMLStreamException
-
serialize
- Specified by:
serializein interfaceorg.apache.axiom.om.OMSerializable- Throws:
XMLStreamException
-
serialize
- Throws:
XMLStreamException
-
serialize
- Throws:
XMLStreamException
-
serializeAndConsume
- Throws:
XMLStreamException
-
serializeAndConsume
- Throws:
XMLStreamException
-
serialize
public void serialize(OutputStream output, org.apache.axiom.om.OMOutputFormat format) throws XMLStreamException - Throws:
XMLStreamException
-
serialize
public void serialize(Writer writer2, org.apache.axiom.om.OMOutputFormat format) throws XMLStreamException - Throws:
XMLStreamException
-
serializeAndConsume
public void serializeAndConsume(OutputStream output, org.apache.axiom.om.OMOutputFormat format) throws XMLStreamException - Throws:
XMLStreamException
-
serializeAndConsume
public void serializeAndConsume(Writer writer2, org.apache.axiom.om.OMOutputFormat format) throws XMLStreamException - Throws:
XMLStreamException
-