Class ChangeFile

java.lang.Object
org.apache.maven.scm.ChangeFile
All Implemented Interfaces:
Serializable

public class ChangeFile extends Object implements Serializable
A set of information about revisions of a file as returned by CVS's log command
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • name

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

      private 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 String originalName
      the name before copying or moving
      Since:
      1.7
    • originalRevision

      private String originalRevision
      the revision from which we copied or moved this file or directory
      Since:
      1.7
  • Constructor Details

    • ChangeFile

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

      public ChangeFile(String name, String rev)
      Constructor for the ChangeFile object
      Parameters:
      name - file name
      rev - latest revision of the file
  • Method Details

    • getName

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

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

      public String getOriginalName()
    • setOriginalName

      public void setOriginalName(String originalName)
    • getOriginalRevision

      public String getOriginalRevision()
    • setOriginalRevision

      public void setOriginalRevision(String originalRevision)
    • getRevision

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

      public void setRevision(String revision)
      Setter for property revision.
      Parameters:
      revision - New value of property revision.
    • getAction

      public ScmFileStatus getAction()
    • setAction

      public void setAction(ScmFileStatus action)
    • toString

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