com.ca.commons.datamodel
Class DataModelSource

java.lang.Object
  extended by com.ca.commons.datamodel.DataModelSource
Direct Known Subclasses:
DataModelChainedSource, DataModelJaxbSource, DataModelStreamSource, DataModelURLSource, DataModelWritableSource, ReaderSource

public abstract class DataModelSource
extends Object

Acts as a source to read a datamodel fragment from.


Field Summary
static Logger logger
           
 
Constructor Summary
protected DataModelSource(String name)
           
 
Method Summary
 boolean equals(Object o)
           
 String getName()
           
 int hashCode()
           
 void invalidate()
           
 boolean isChanged()
           
protected  long lastModified()
           
 boolean override()
          Indicates if metadata items from this source should override metadata already in the model.
protected  void readComplete()
           
 ModelType readJaxbModel()
           
protected abstract  ModelType readJaxbModelImpl()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static final Logger logger
Constructor Detail

DataModelSource

protected DataModelSource(@NotNull
                          String name)
Method Detail

isChanged

public final boolean isChanged()

invalidate

public final void invalidate()

override

public boolean override()
Indicates if metadata items from this source should override metadata already in the model. Defaults to true.


getName

@NotNull
public final String getName()

readJaxbModel

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

readJaxbModelImpl

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

readComplete

protected void readComplete()

lastModified

protected long lastModified()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Created 2011-07-14 13:27 EST