Class ChangeFile

  • All Implemented Interfaces:
    java.io.Serializable

    public class ChangeFile
    extends java.lang.Object
    implements java.io.Serializable
    A set of information about revisions of a file as returned by CVS's log command
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private ScmFileStatus action
      edit type on the file note: perhaps we should use a different type, ideally enum? this one seems to target quite different usecases ...
      private java.lang.String name
      the name of the file relative to the project directory.
      private java.lang.String originalName
      the name before copying or moving
      private java.lang.String originalRevision
      the revision from which we copied or moved this file or directory
      private java.lang.String revision
      the latest revision of the file.
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      ChangeFile​(java.lang.String name)
      Constructor for the ChangeFile object without all details available
      ChangeFile​(java.lang.String name, java.lang.String rev)
      Constructor for the ChangeFile object
    • Field Detail

      • name

        private java.lang.String name
        the name of the file relative to the project directory.
      • revision

        private java.lang.String revision
        the latest revision of the file.
      • action

        private ScmFileStatus action
        edit type on the file note: perhaps we should use a different type, ideally enum? this one seems to target quite different usecases ...
        Since:
        1.7
      • originalName

        private java.lang.String originalName
        the name before copying or moving
        Since:
        1.7
      • originalRevision

        private java.lang.String originalRevision
        the revision from which we copied or moved this file or directory
        Since:
        1.7
    • Constructor Detail

      • ChangeFile

        public ChangeFile​(java.lang.String name)
        Constructor for the ChangeFile object without all details available
        Parameters:
        name - file name
      • ChangeFile

        public ChangeFile​(java.lang.String name,
                          java.lang.String rev)
        Constructor for the ChangeFile object
        Parameters:
        name - file name
        rev - latest revision of the file
    • Method Detail

      • getName

        public java.lang.String getName()
        Gets the name attribute of the ChangeLogFile object.
        Returns:
        the file name
      • setName

        public void setName​(java.lang.String name)
        Setter for property name.
        Parameters:
        name - New value of property name.
      • getOriginalName

        public java.lang.String getOriginalName()
      • setOriginalName

        public void setOriginalName​(java.lang.String originalName)
      • getOriginalRevision

        public java.lang.String getOriginalRevision()
      • setOriginalRevision

        public void setOriginalRevision​(java.lang.String originalRevision)
      • getRevision

        public java.lang.String getRevision()
        Gets the revision attribute of the ChangeLogFile object.
        Returns:
        the latest revision of the file
      • setRevision

        public void setRevision​(java.lang.String revision)
        Setter for property revision.
        Parameters:
        revision - New value of property revision.
      • toString

        public java.lang.String toString()
        Provide a version of the object as a string for debugging purposes
        Overrides:
        toString in class java.lang.Object
        Returns:
        a Stringmade up of the properties of the object