public class RelevantFile extends Object
Constructor and Description |
---|
RelevantFile(String filePath)
The Constructor.
|
RelevantFile(String filePath,
String fileId)
The Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addChange(PmrChange change)
Adds a change to the changeSet and creates one if necessary.
|
String |
generateFileId(String repoUrl)
Generate file id.
|
PmrChangeSet |
getChangeSet()
Return the changeSet or null, if no one was setted and no change added.
|
String |
getFileId()
Gets the file id.
|
String |
getFilePath()
Gets the file path.
|
Date |
getLatestKnownVersionDate()
Gets the latest known VersionDate.
|
String |
getLatestKnownVersionId()
Gets the latest known VersionId.
|
Date |
getLatestVersionDate()
Gets the real latest versionDate.
|
String |
getLatestVersionId()
Gets the real latest versionId.
|
URL |
getRepositoryUrl()
Gets the repository url.
|
int |
getType()
Gets the type.
|
void |
setLatestKnownVersion(String latestVersionId,
Date latestVersionDate)
Sets the latest known Version of this model.
|
void |
setLatestKnownVersion(String latestVersionId,
Date latestVersionDate,
PmrChangeSet changeSet)
Sets the latest known Version of this model and the changeSet of it.
|
void |
setType(int type)
Sets the type.
|
public RelevantFile(String filePath, String fileId)
filePath
- the file pathfileId
- the file idpublic RelevantFile(String filePath)
filePath
- the file pathpublic String generateFileId(String repoUrl) throws MalformedURLException, URISyntaxException
repoUrl
- the repo urlMalformedURLException
- the malformed url exceptionURISyntaxException
- the URI syntax exceptionpublic String getFilePath()
public URL getRepositoryUrl()
public String getFileId()
public void setLatestKnownVersion(String latestVersionId, Date latestVersionDate, PmrChangeSet changeSet)
latestVersionId
- the latest version idlatestVersionDate
- the latest version datechangeSet
- the change setpublic void setLatestKnownVersion(String latestVersionId, Date latestVersionDate)
latestVersionId
- the latest version idlatestVersionDate
- the latest version datepublic String getLatestKnownVersionId()
public Date getLatestKnownVersionDate()
public String getLatestVersionId()
public Date getLatestVersionDate()
public PmrChangeSet getChangeSet()
public void addChange(PmrChange change)
change
- the changepublic int getType()
public void setType(int type)
type
- the typeCopyright © 2019 SEMS (Simulation Experiment Management for Systems Biology). All rights reserved.