Package jmri.util.docbook
Class RevHistory
- java.lang.Object
-
- jmri.util.docbook.RevHistory
-
public class RevHistory extends java.lang.Object
Memo class to remember a revision history.These can be nested: A revision can come with a history.
-
-
Constructor Summary
Constructors Constructor Description RevHistory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRevision(int revnumber, java.lang.String date, java.lang.String authorinitials, java.lang.String revremark)
Used to add a revision form complete information created elsewherevoid
addRevision(java.lang.String revremark)
Add a revision, credited to the current uservoid
addRevision(java.lang.String authorinitials, java.lang.String revremark)
Usual form.void
addRevision(Revision r)
java.util.ArrayList<Revision>
getList()
int
maxNumber()
java.lang.String
toString()
java.lang.String
toString(java.lang.String prefix)
-
-
-
Constructor Detail
-
RevHistory
public RevHistory()
-
-
Method Detail
-
addRevision
public void addRevision(int revnumber, java.lang.String date, java.lang.String authorinitials, java.lang.String revremark)
Used to add a revision form complete information created elsewhere- Parameters:
revnumber
- the revision numberdate
- the revision dateauthorinitials
- the author's initialsrevremark
- the revision
-
addRevision
public void addRevision(Revision r)
-
addRevision
public void addRevision(java.lang.String authorinitials, java.lang.String revremark)
Usual form. Dated now, with the next number.- Parameters:
authorinitials
- the author's initialsrevremark
- the revision
-
maxNumber
public int maxNumber()
-
addRevision
public void addRevision(java.lang.String revremark)
Add a revision, credited to the current user- Parameters:
revremark
- the revision
-
toString
public java.lang.String toString(java.lang.String prefix)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-