Package org.apache.maven.scm
Class ChangeFile
java.lang.Object
org.apache.maven.scm.ChangeFile
- All Implemented Interfaces:
Serializable
A set of information about revisions of a file as returned by CVS's log
command
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ScmFileStatus
edit type on the file note: perhaps we should use a different type, ideally enum? this one seems to target quite different usecases ...private String
the name of the file relative to the project directory.private String
the name before copying or movingprivate String
private String
the latest revision of the file.private static final long
-
Constructor Summary
ConstructorsConstructorDescriptionChangeFile
(String name) Constructor for the ChangeFile object without all details availableChangeFile
(String name, String rev) Constructor for the ChangeFile object -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Gets the name attribute of the ChangeLogFile object.Gets the revision attribute of the ChangeLogFile object.void
setAction
(ScmFileStatus action) void
Setter for property name.void
setOriginalName
(String originalName) void
setOriginalRevision
(String originalRevision) void
setRevision
(String revision) Setter for property revision.toString()
Provide a version of the object as a string for debugging purposes
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
name
the name of the file relative to the project directory. -
revision
the latest revision of the file. -
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
the name before copying or moving- Since:
- 1.7
-
originalRevision
- Since:
- 1.7
-
-
Constructor Details
-
ChangeFile
Constructor for the ChangeFile object without all details available- Parameters:
name
- file name
-
ChangeFile
Constructor for the ChangeFile object- Parameters:
name
- file namerev
- latest revision of the file
-
-
Method Details
-
getName
Gets the name attribute of the ChangeLogFile object.- Returns:
- the file name
-
setName
Setter for property name.- Parameters:
name
- New value of property name.
-
getOriginalName
-
setOriginalName
-
getOriginalRevision
-
setOriginalRevision
-
getRevision
Gets the revision attribute of the ChangeLogFile object.- Returns:
- the latest revision of the file
-
setRevision
Setter for property revision.- Parameters:
revision
- New value of property revision.
-
getAction
-
setAction
-
toString
Provide a version of the object as a string for debugging purposes
-