public class CrawledModelRecord
extends de.unirostock.sems.morre.client.dataholder.CrawledModel
Modifier and Type | Field and Description |
---|---|
static String |
DATE_FORMAT |
Constructor and Description |
---|
CrawledModelRecord(de.unirostock.sems.morre.client.dataholder.CrawledModel model)
Creates a new CrawledModelRecord based on a simple CrawledModel Dataholder.
|
CrawledModelRecord(String fileId,
String versionId,
Date versionDate,
Date crawledDate) |
CrawledModelRecord(String fileId,
String versionId,
String xmldoc,
Map<String,List<String>> parentMap,
Map<String,String> metaMap,
String modelType) |
CrawledModelRecord(String fileId,
String versionId,
String xmldoc,
Map<String,List<String>> parentMap,
Map<String,String> metaMap,
String modelType,
Date versionDate,
Date crawledDate) |
Modifier and Type | Method and Description |
---|---|
void |
addParent(String parentVersionId)
Adds a parent to this model with the same fileId.
|
void |
addParent(String parentFileId,
String parentVersionId)
Adds a parent to this model.
|
static CrawledModelRecord |
extendDataholder(de.unirostock.sems.morre.client.dataholder.CrawledModel model) |
Date |
getCrawledDate()
Returns the parsed CrawledDate if it is set, or null.
|
String |
getMeta(String metaField)
Returns the value of a meta field or null.
|
Date |
getVersionDate()
Returns the parsed VersionDate if it is set, or null.
|
boolean |
isAvailable()
Checks if the model dataholder is valid.
|
void |
setCrawledDate(Date crawledDate)
Sets the CrawledDate in the Meta Field.
|
void |
setMeta(String metaField,
String value)
Sets the value of a meta field and overrides the previous value.
|
void |
setVersionDate(Date versionDate)
Sets the VersionDate in the Meta Field.
|
public static final String DATE_FORMAT
public CrawledModelRecord(de.unirostock.sems.morre.client.dataholder.CrawledModel model)
model
- the modelpublic CrawledModelRecord(String fileId, String versionId, String xmldoc, Map<String,List<String>> parentMap, Map<String,String> metaMap, String modelType)
public CrawledModelRecord(String fileId, String versionId, String xmldoc, Map<String,List<String>> parentMap, Map<String,String> metaMap, String modelType, Date versionDate, Date crawledDate)
public static CrawledModelRecord extendDataholder(de.unirostock.sems.morre.client.dataholder.CrawledModel model)
public boolean isAvailable()
public String getMeta(String metaField)
metaField
- the meta fieldpublic void setMeta(String metaField, String value)
metaField
- the meta fieldvalue
- the valuepublic Date getVersionDate()
public void setVersionDate(Date versionDate)
versionDate
- the version datepublic Date getCrawledDate()
public void setCrawledDate(Date crawledDate)
crawledDate
- the crawled datepublic void addParent(String parentFileId, String parentVersionId)
parentFileId
- the parent file idparentVersionId
- the parent version idpublic void addParent(String parentVersionId)
parentVersionId
- the parent version idCopyright © 2019 SEMS (Simulation Experiment Management for Systems Biology). All rights reserved.