Class MetaObjectDataholder
- java.lang.Object
-
- de.unirostock.sems.cbarchive.web.dataholder.MetaObjectDataholder
-
- Direct Known Subclasses:
OmexMetaObjectDataholder
,XmlTreeMetaObjectDataholder
public abstract class MetaObjectDataholder extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
changed
setted from the client side, if anything changed.protected String
id
protected de.unirostock.sems.cbarchive.meta.MetaDataObject
metaObject
protected ArchiveEntryDataholder
parent
Archive which contains this meta dataprotected String
type
type of the meta informationstatic String
TYPE_NOTSET
static String
TYPE_OMEX
static String
TYPE_XML
-
Constructor Summary
Constructors Constructor Description MetaObjectDataholder(de.unirostock.sems.cbarchive.meta.MetaDataObject metaObject, ArchiveEntryDataholder parent)
MetaObjectDataholder(String id, String type, boolean changed)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static MetaObjectDataholder
construct(de.unirostock.sems.cbarchive.meta.MetaDataObject metaObject)
static MetaObjectDataholder
construct(de.unirostock.sems.cbarchive.meta.MetaDataObject metaObject, ArchiveEntryDataholder parent)
void
generateId()
Generates a temporarily id for the meta entryabstract de.unirostock.sems.cbarchive.meta.MetaDataObject
getCombineArchiveMetaObject()
Generates a CombineArchive MetaObject, which can be easily added to an ArchvieEntry.String
getId()
de.unirostock.sems.cbarchive.meta.MetaDataObject
getMetaObject()
String
getType()
boolean
isChanged()
void
setChanged(boolean changed)
abstract void
update(MetaObjectDataholder newMetaObject)
Updates the existing dataholder and the underlaying MetaDataObject with new information from another dataholder.
-
-
-
Field Detail
-
TYPE_NOTSET
public static final String TYPE_NOTSET
- See Also:
- Constant Field Values
-
TYPE_OMEX
public static final String TYPE_OMEX
- See Also:
- Constant Field Values
-
TYPE_XML
public static final String TYPE_XML
- See Also:
- Constant Field Values
-
metaObject
protected de.unirostock.sems.cbarchive.meta.MetaDataObject metaObject
-
id
protected String id
-
type
protected String type
type of the meta information
-
changed
protected boolean changed
setted from the client side, if anything changed.
-
parent
protected ArchiveEntryDataholder parent
Archive which contains this meta data
-
-
Constructor Detail
-
MetaObjectDataholder
public MetaObjectDataholder(de.unirostock.sems.cbarchive.meta.MetaDataObject metaObject, ArchiveEntryDataholder parent)
-
-
Method Detail
-
construct
public static MetaObjectDataholder construct(de.unirostock.sems.cbarchive.meta.MetaDataObject metaObject)
-
construct
public static MetaObjectDataholder construct(de.unirostock.sems.cbarchive.meta.MetaDataObject metaObject, ArchiveEntryDataholder parent)
-
update
public abstract void update(MetaObjectDataholder newMetaObject) throws CombineArchiveWebException
Updates the existing dataholder and the underlaying MetaDataObject with new information from another dataholder.- Parameters:
newMetaObject
- the new meta object- Throws:
CombineArchiveWebException
- the combine archive web exception
-
getCombineArchiveMetaObject
public abstract de.unirostock.sems.cbarchive.meta.MetaDataObject getCombineArchiveMetaObject()
Generates a CombineArchive MetaObject, which can be easily added to an ArchvieEntry.- Returns:
- the combine archive meta object
-
generateId
public void generateId()
Generates a temporarily id for the meta entry
-
getId
public String getId()
-
getMetaObject
public de.unirostock.sems.cbarchive.meta.MetaDataObject getMetaObject()
-
getType
public String getType()
-
isChanged
public boolean isChanged()
-
setChanged
public void setChanged(boolean changed)
-
-