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 SCM's log
command.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ScmFileStatusEdit type on the file note: perhaps we should use a different type, ideally enum? this one seems to target quite different usecases ...private StringThe name of the file relative to the project directory.private StringThe name before copying or moving.private Stringprivate StringThe latest revision of the file.private static final long -
Constructor Summary
ConstructorsConstructorDescriptionChangeFile(String name) Constructor for the ChangeFile object without all details available.ChangeFile(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.voidsetAction(ScmFileStatus action) voidSetter for property name.voidsetOriginalName(String originalName) voidsetOriginalRevision(String originalRevision) voidsetRevision(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
-
originalRevision
-
-
Constructor Details
-
ChangeFile
Constructor for the ChangeFile object without all details available.- Parameters:
name- file name
-
ChangeFile
-
-
Method Details
-
getName
-
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
-