com.ca.commons.datamodel
Class DataModelWritableSource

java.lang.Object
  extended by com.ca.commons.datamodel.DataModelSource
      extended by com.ca.commons.datamodel.DataModelWritableSource
Direct Known Subclasses:
DataModelWritableJaxbSource, DataModelWritableStreamSource, ReaderWriterSource

public abstract class DataModelWritableSource
extends DataModelSource

Acts as a source to read a datamodel fragment from, and optionally to write it back out to.


Field Summary
 
Fields inherited from class com.ca.commons.datamodel.DataModelSource
logger
 
Constructor Summary
protected DataModelWritableSource(String name)
           
 
Method Summary
protected static javax.xml.bind.Marshaller newMarshaller()
           
protected  void writeComplete()
           
 void writeJaxbModel(ModelType jaxbModel)
           
protected abstract  void writeJaxbModelImpl(ModelType jaxbModel)
           
 
Methods inherited from class com.ca.commons.datamodel.DataModelSource
equals, getName, hashCode, invalidate, isChanged, lastModified, override, readComplete, readJaxbModel, readJaxbModelImpl
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataModelWritableSource

protected DataModelWritableSource(@NotNull
                                  String name)
Method Detail

newMarshaller

@NotNull
protected static javax.xml.bind.Marshaller newMarshaller()
                                                  throws javax.xml.bind.JAXBException
Throws:
javax.xml.bind.JAXBException

writeJaxbModel

public final void writeJaxbModel(@NotNull
                                 ModelType jaxbModel)
                          throws javax.xml.bind.JAXBException,
                                 IOException
Throws:
javax.xml.bind.JAXBException
IOException

writeJaxbModelImpl

protected abstract void writeJaxbModelImpl(@NotNull
                                           ModelType jaxbModel)
                                    throws javax.xml.bind.JAXBException,
                                           IOException
Throws:
javax.xml.bind.JAXBException
IOException

writeComplete

protected void writeComplete()


Created 2011-07-14 13:27 EST