org.apache.axiom.om.impl.llom
Class OMSerializableImpl

java.lang.Object
  extended by org.apache.axiom.om.impl.llom.OMSerializableImpl
All Implemented Interfaces:
OMSerializable
Direct Known Subclasses:
OMDocumentImpl, OMNodeImpl

public abstract class OMSerializableImpl
extends java.lang.Object
implements OMSerializable


Field Summary
 OMXMLParserWrapper builder
          Field parserWrapper
protected  boolean done
          Field done
protected  OMFactory factory
           
 
Constructor Summary
OMSerializableImpl(OMFactory factory)
           
 
Method Summary
 void build()
          Parses this node and builds the object structure in memory.
 void close(boolean build)
           
 OMFactory getOMFactory()
           
abstract  void internalSerialize(javax.xml.stream.XMLStreamWriter writer, boolean cache)
          Serializes the node.
 boolean isComplete()
           
 void serialize(java.io.OutputStream output)
           
 void serialize(java.io.OutputStream output, OMOutputFormat format)
           
 void serialize(java.io.Writer writer)
           
 void serialize(java.io.Writer writer2, OMOutputFormat format)
           
 void serialize(javax.xml.stream.XMLStreamWriter xmlWriter)
           
 void serialize(javax.xml.stream.XMLStreamWriter xmlWriter, boolean cache)
           
 void serializeAndConsume(java.io.OutputStream output)
           
 void serializeAndConsume(java.io.OutputStream output, OMOutputFormat format)
           
 void serializeAndConsume(java.io.Writer writer)
           
 void serializeAndConsume(java.io.Writer writer2, OMOutputFormat format)
           
 void serializeAndConsume(javax.xml.stream.XMLStreamWriter xmlWriter)
           
abstract  void setComplete(boolean state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

builder

public OMXMLParserWrapper builder
Field parserWrapper


done

protected boolean done
Field done


factory

protected final OMFactory factory
Constructor Detail

OMSerializableImpl

public OMSerializableImpl(OMFactory factory)
Method Detail

getOMFactory

public OMFactory getOMFactory()
Specified by:
getOMFactory in interface OMSerializable

isComplete

public boolean isComplete()
Specified by:
isComplete in interface OMSerializable

build

public void build()
           throws OMException
Parses 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:
build in interface OMSerializable
Throws:
OMException

close

public void close(boolean build)
Specified by:
close in interface OMSerializable

setComplete

public abstract void setComplete(boolean state)

internalSerialize

public abstract void internalSerialize(javax.xml.stream.XMLStreamWriter writer,
                                       boolean cache)
                                throws javax.xml.stream.XMLStreamException
Serializes the node.

Parameters:
writer -
Throws:
javax.xml.stream.XMLStreamException

serialize

public void serialize(javax.xml.stream.XMLStreamWriter xmlWriter)
               throws javax.xml.stream.XMLStreamException
Specified by:
serialize in interface OMSerializable
Throws:
javax.xml.stream.XMLStreamException

serializeAndConsume

public void serializeAndConsume(javax.xml.stream.XMLStreamWriter xmlWriter)
                         throws javax.xml.stream.XMLStreamException
Specified by:
serializeAndConsume in interface OMSerializable
Throws:
javax.xml.stream.XMLStreamException

serialize

public void serialize(javax.xml.stream.XMLStreamWriter xmlWriter,
                      boolean cache)
               throws javax.xml.stream.XMLStreamException
Specified by:
serialize in interface OMSerializable
Throws:
javax.xml.stream.XMLStreamException

serialize

public void serialize(java.io.OutputStream output)
               throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

serialize

public void serialize(java.io.Writer writer)
               throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

serializeAndConsume

public void serializeAndConsume(java.io.OutputStream output)
                         throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

serializeAndConsume

public void serializeAndConsume(java.io.Writer writer)
                         throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

serialize

public void serialize(java.io.OutputStream output,
                      OMOutputFormat format)
               throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

serialize

public void serialize(java.io.Writer writer2,
                      OMOutputFormat format)
               throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

serializeAndConsume

public void serializeAndConsume(java.io.OutputStream output,
                                OMOutputFormat format)
                         throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

serializeAndConsume

public void serializeAndConsume(java.io.Writer writer2,
                                OMOutputFormat format)
                         throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.