com.ca.commons.datamodel
Class ReaderWriterSource

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

public abstract class ReaderWriterSource
extends DataModelWritableSource


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

Constructor Detail

ReaderWriterSource

protected ReaderWriterSource(@NotNull
                             String name)
Method Detail

reader

@NotNull
protected abstract Reader reader()
                          throws IOException
Throws:
IOException

writer

@NotNull
protected abstract Writer writer()
                          throws IOException
Throws:
IOException

readJaxbModelImpl

@NotNull
public final ModelType readJaxbModelImpl()
                                  throws javax.xml.bind.JAXBException,
                                         IOException
Specified by:
readJaxbModelImpl in class DataModelSource
Throws:
javax.xml.bind.JAXBException
IOException

writeJaxbModelImpl

public final void writeJaxbModelImpl(@NotNull
                                     ModelType jaxbModel)
                              throws javax.xml.bind.JAXBException,
                                     IOException
Specified by:
writeJaxbModelImpl in class DataModelWritableSource
Throws:
javax.xml.bind.JAXBException
IOException


Created 2011-07-14 13:27 EST