com.ca.commons.datamodel
Class DataModelSource
java.lang.Object
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.
logger
public static final Logger logger
DataModelSource
protected DataModelSource(@NotNull
String name)
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