net.sf.csutils.core.model.impl
Class ROMetaModelWriter

java.lang.Object
  extended by net.sf.csutils.core.model.impl.ROMetaModelWriter

public class ROMetaModelWriter
extends java.lang.Object

The registry object model writer is used to serialize registry meta models into XML.


Constructor Summary
ROMetaModelWriter()
           
 
Method Summary
protected  ROClassification write(ROClassification pAttr)
          Converts the given classification attribute into a JAXB bean.
protected  ROFile write(ROFile pAttr)
          Converts the given file attribute into a JAXB bean.
protected  ROMetaModel write(ROMetaModel pModel)
          Converts the given meta model into a serializable JAXB bean.
 void write(ROMetaModel pModel, org.xml.sax.ContentHandler pHandler)
          Converts the given meta model to XML by writing to the given ContentHandler.
 void write(ROMetaModel pModel, java.io.File pFile)
          Converts the given meta model to XML by writing to the given File.
 void write(ROMetaModel pModel, org.w3c.dom.Node pNode)
          Converts the given meta model to XML by writing to the given Node.
 void write(ROMetaModel pModel, java.io.OutputStream pStream)
          Converts the given meta model to XML by writing to the given OutputStream.
 void write(ROMetaModel pModel, javax.xml.transform.Result pResult)
          Converts the given meta model to XML by writing to the given Result.
 void write(ROMetaModel pModel, java.io.Writer pWriter)
          Converts the given meta model to XML by writing to the given Writer.
 void write(ROMetaModel pModel, javax.xml.stream.XMLEventWriter pWriter)
          Converts the given meta model to XML by writing to the given XMLEventWriter.
 void write(ROMetaModel pModel, javax.xml.stream.XMLStreamWriter pWriter)
          Converts the given meta model to XML by writing to the given XMLStreamWriter.
protected  RORelation write(RORelation pAttr)
          Converts the given relationship attribute into a JAXB bean.
protected  ROSlot write(ROSlot pAttr)
           
protected  ROType write(ROType pType)
          Converts the given registry object type into a JAXB bean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ROMetaModelWriter

public ROMetaModelWriter()
Method Detail

write

protected ROSlot write(ROSlot pAttr)

write

protected ROFile write(ROFile pAttr)
                throws javax.xml.registry.JAXRException
Converts the given file attribute into a JAXB bean.

Parameters:
pAttr - The file attribute to convert.
Returns:
The created JAXB bean.
Throws:
javax.xml.registry.JAXRException - The operation failed.

write

protected RORelation write(RORelation pAttr)
                    throws javax.xml.registry.JAXRException
Converts the given relationship attribute into a JAXB bean.

Parameters:
pAttr - The relationship attribute to convert.
Returns:
The created JAXB bean.
Throws:
javax.xml.registry.JAXRException - The operation failed.

write

protected ROClassification write(ROClassification pAttr)
Converts the given classification attribute into a JAXB bean.

Parameters:
pAttr - The classification attribute to convert.
Returns:
The created JAXB bean.
Throws:
javax.xml.registry.JAXRException - The operation failed.

write

protected ROType write(ROType pType)
                throws javax.xml.registry.JAXRException
Converts the given registry object type into a JAXB bean.

Parameters:
pType - The registry object type to convert.
Returns:
The created JAXB bean.
Throws:
javax.xml.registry.JAXRException - The operation failed.

write

protected ROMetaModel write(ROMetaModel pModel)
                     throws javax.xml.registry.JAXRException
Converts the given meta model into a serializable JAXB bean.

Parameters:
pModel - The meta model to convert.
Returns:
The created JAXB bean.
Throws:
javax.xml.registry.JAXRException - The operation failed.

write

public void write(ROMetaModel pModel,
                  java.io.OutputStream pStream)
           throws javax.xml.registry.JAXRException
Converts the given meta model to XML by writing to the given OutputStream.

Parameters:
pModel - The meta model to convert.
pStream - The stream to write to.
Throws:
javax.xml.registry.JAXRException - The operation failed.

write

public void write(ROMetaModel pModel,
                  java.io.File pFile)
           throws javax.xml.registry.JAXRException
Converts the given meta model to XML by writing to the given File.

Parameters:
pModel - The meta model to convert.
pFile - The file to write to.
Throws:
javax.xml.registry.JAXRException - The operation failed.

write

public void write(ROMetaModel pModel,
                  java.io.Writer pWriter)
           throws javax.xml.registry.JAXRException
Converts the given meta model to XML by writing to the given Writer.

Parameters:
pModel - The meta model to convert.
pWriter - The writer to write to.
Throws:
javax.xml.registry.JAXRException - The operation failed.

write

public void write(ROMetaModel pModel,
                  javax.xml.transform.Result pResult)
           throws javax.xml.registry.JAXRException
Converts the given meta model to XML by writing to the given Result.

Parameters:
pModel - The meta model to convert.
pResult - The transformer result to write to.
Throws:
javax.xml.registry.JAXRException - The operation failed.

write

public void write(ROMetaModel pModel,
                  org.w3c.dom.Node pNode)
           throws javax.xml.registry.JAXRException
Converts the given meta model to XML by writing to the given Node.

Parameters:
pModel - The meta model to convert.
pNode - The node to write to.
Throws:
javax.xml.registry.JAXRException - The operation failed.

write

public void write(ROMetaModel pModel,
                  javax.xml.stream.XMLEventWriter pWriter)
           throws javax.xml.registry.JAXRException
Converts the given meta model to XML by writing to the given XMLEventWriter.

Parameters:
pModel - The meta model to convert.
pWriter - The StAX event writer to write to.
Throws:
javax.xml.registry.JAXRException - The operation failed.

write

public void write(ROMetaModel pModel,
                  javax.xml.stream.XMLStreamWriter pWriter)
           throws javax.xml.registry.JAXRException
Converts the given meta model to XML by writing to the given XMLStreamWriter.

Parameters:
pModel - The meta model to convert.
pWriter - The StAX stream writer to write to.
Throws:
javax.xml.registry.JAXRException - The operation failed.

write

public void write(ROMetaModel pModel,
                  org.xml.sax.ContentHandler pHandler)
           throws javax.xml.registry.JAXRException
Converts the given meta model to XML by writing to the given ContentHandler.

Parameters:
pModel - The meta model to convert.
pHandler - The SAX content handler to write to.
Throws:
javax.xml.registry.JAXRException - The operation failed.


Copyright © 2009-2010. All Rights Reserved.