Class RelevantFile


  • public class RelevantFile
    extends Object
    The Class RelevantFile.
    • Constructor Detail

      • RelevantFile

        public RelevantFile​(String filePath,
                            String fileId)
        The Constructor.
        Parameters:
        filePath - the file path
        fileId - the file id
      • RelevantFile

        public RelevantFile​(String filePath)
        The Constructor.
        Parameters:
        filePath - the file path
    • Method Detail

      • getFilePath

        public String getFilePath()
        Gets the file path.
        Returns:
        the file path
      • getRepositoryUrl

        public URL getRepositoryUrl()
        Gets the repository url.
        Returns:
        the repository url
      • getFileId

        public String getFileId()
        Gets the file id.
        Returns:
        the file id
      • setLatestKnownVersion

        public void setLatestKnownVersion​(String latestVersionId,
                                          Date latestVersionDate,
                                          PmrChangeSet changeSet)
        Sets the latest known Version of this model and the changeSet of it.
        Parameters:
        latestVersionId - the latest version id
        latestVersionDate - the latest version date
        changeSet - the change set
      • setLatestKnownVersion

        public void setLatestKnownVersion​(String latestVersionId,
                                          Date latestVersionDate)
        Sets the latest known Version of this model.
        Parameters:
        latestVersionId - the latest version id
        latestVersionDate - the latest version date
      • getLatestKnownVersionId

        public String getLatestKnownVersionId()
        Gets the latest known VersionId. Not the real latest, but the versionId setted with setLatestKnownVersion()
        Returns:
        versionId
      • getLatestKnownVersionDate

        public Date getLatestKnownVersionDate()
        Gets the latest known VersionDate. Not the real latest, but the versionDate setted with setLatestKnownVersion()
        Returns:
        versionDate
      • getLatestVersionId

        public String getLatestVersionId()
        Gets the real latest versionId. Either from the latestKnownVersion() or from the changeSet
        Returns:
        versionId
      • getLatestVersionDate

        public Date getLatestVersionDate()
        Gets the real latest versionDate. Either from the latestKnownVersion() or from the changeSet
        Returns:
        versionDate
      • getChangeSet

        public PmrChangeSet getChangeSet()
        Return the changeSet or null, if no one was setted and no change added.
        Returns:
        PmrChangeSet or null
      • addChange

        public void addChange​(PmrChange change)
        Adds a change to the changeSet and creates one if necessary.
        Parameters:
        change - the change
      • getType

        public int getType()
        Gets the type.
        Returns:
        the type
      • setType

        public void setType​(int type)
        Sets the type.
        Parameters:
        type - the type