public abstract class Change extends CrawledModelRecord implements Comparable<Change>
Modifier and Type | Field and Description |
---|---|
protected String |
fileName |
protected String |
filePath |
protected URL |
repositoryUrl |
protected String |
versionId |
protected File |
xmlFile |
DATE_FORMAT
Constructor and Description |
---|
Change(URL repositoryUrl,
String filePath,
String versionId,
Date versionDate,
Date crawledDate) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Change change) |
static String |
generateFileId(URL repositoryUrl,
String filePath) |
String |
getChangeCrawledDate(Change change) |
String |
getChangeFileName(Change change) |
String |
getChangeFilePath(Change change) |
String |
getChangeRepositoryUrl(Change change) |
String |
getChangeVersionDate(Change change) |
String |
getChangeVersionId(Change change) |
Date |
getCrawledDate()
Returns the parsed CrawledDate if it is set, or null.
|
Date |
getVersionDate()
Returns the parsed VersionDate if it is set, or null.
|
File |
getXmlFile() |
void |
setCrawledDate(Date crawledDate)
Sets the CrawledDate in the Meta Field.
|
void |
setVersionDate(Date versionDate)
Sets the VersionDate in the Meta Field.
|
boolean |
setXmlFile(File xmlFile) |
boolean |
setXmlFile(File xmlFile,
boolean override) |
String |
toString() |
addParent, addParent, extendDataholder, getMeta, isAvailable, setMeta
protected transient File xmlFile
protected transient URL repositoryUrl
protected transient String filePath
protected String fileName
protected String versionId
public Change(URL repositoryUrl, String filePath, String versionId, Date versionDate, Date crawledDate) throws URISyntaxException
URISyntaxException
public static String generateFileId(URL repositoryUrl, String filePath) throws URISyntaxException
URISyntaxException
public File getXmlFile()
public boolean setXmlFile(File xmlFile)
public boolean setXmlFile(File xmlFile, boolean override)
public void setVersionDate(Date versionDate)
CrawledModelRecord
setVersionDate
in class CrawledModelRecord
versionDate
- the version datepublic Date getVersionDate()
CrawledModelRecord
getVersionDate
in class CrawledModelRecord
public void setCrawledDate(Date crawledDate)
CrawledModelRecord
setCrawledDate
in class CrawledModelRecord
crawledDate
- the crawled datepublic Date getCrawledDate()
CrawledModelRecord
getCrawledDate
in class CrawledModelRecord
public int compareTo(Change change)
compareTo
in interface Comparable<Change>
public String toString()
toString
in class de.unirostock.sems.morre.client.dataholder.CrawledModel
Copyright © 2019 SEMS (Simulation Experiment Management for Systems Biology). All rights reserved.