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
-
-
Constructor Summary
Constructors Constructor Description OMSerializableImpl(org.apache.axiom.om.OMFactory factory)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidbuild()Parses this node and builds the object structure in memory.voidclose(boolean build)org.apache.axiom.om.OMFactorygetOMFactory()abstract voidinternalSerialize(XMLStreamWriter writer, boolean cache)Serializes the node.booleanisComplete()voidserialize(OutputStream output)voidserialize(OutputStream output, org.apache.axiom.om.OMOutputFormat format)voidserialize(Writer writer)voidserialize(Writer writer2, org.apache.axiom.om.OMOutputFormat format)voidserialize(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)
-
-
-
Method Detail
-
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
public void serialize(XMLStreamWriter xmlWriter) throws XMLStreamException
- Specified by:
serializein interfaceorg.apache.axiom.om.OMSerializable- Throws:
XMLStreamException
-
serializeAndConsume
public void serializeAndConsume(XMLStreamWriter xmlWriter) throws XMLStreamException
- Specified by:
serializeAndConsumein interfaceorg.apache.axiom.om.OMSerializable- Throws:
XMLStreamException
-
serialize
public void serialize(XMLStreamWriter xmlWriter, boolean cache) throws XMLStreamException
- Specified by:
serializein interfaceorg.apache.axiom.om.OMSerializable- Throws:
XMLStreamException
-
serialize
public void serialize(OutputStream output) throws XMLStreamException
- Throws:
XMLStreamException
-
serialize
public void serialize(Writer writer) throws XMLStreamException
- Throws:
XMLStreamException
-
serializeAndConsume
public void serializeAndConsume(OutputStream output) throws XMLStreamException
- Throws:
XMLStreamException
-
serializeAndConsume
public void serializeAndConsume(Writer writer) throws XMLStreamException
- 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
-
-