|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.ultrametrics.rcs.ControlInformation | +--net.ultrametrics.rcs.Modification
Encapsulation of an RCS source modification including a log entry describing the change and the text of the modification.
Field Summary | |
static java.lang.String |
_rcsId
|
protected static char |
DELIMITER
|
protected static java.lang.String |
LOG
|
protected static java.lang.String |
TEXT
|
protected static java.lang.String |
VERSION
|
Fields inherited from class net.ultrametrics.rcs.ControlInformation |
_rcsId,
DELIMITER,
EXT_RCS,
map,
reader |
Constructor Summary | |
Modification(java.io.BufferedReader reader,
boolean isHeadRevision)
Create a modification. |
Method Summary | |
int |
compareTo(java.lang.Object o)
|
void |
dump()
Similar to toString(), but more verbose and dumps directly to stderr. |
int |
getAddedCount()
Retrieve the number of lines added. |
protected java.util.Collection |
getAllowedKeys()
|
java.lang.String |
getChanges()
Retrieve the source changes associated with this modification. |
java.lang.String |
getComments()
Retrieve the author's comments describing this modification. |
int |
getLineCount()
Retrieve the total line count. |
int |
getRemovedCount()
Retrieve the number of lines removed. |
java.lang.String |
getVersion()
Retrieve the version number associated with this modification. |
protected boolean |
isKeyAllowed(java.lang.String key)
|
static void |
main(java.lang.String[] args)
Tester. |
boolean |
parse()
Parse a modification block. |
protected Element |
parseNextElement()
Parse a single element of revision information. |
protected void |
setAddedCount(int added)
|
protected void |
setRemovedCount(int removed)
|
java.lang.String |
toString()
|
Methods inherited from class net.ultrametrics.rcs.ControlInformation |
clear,
containsKey,
getElement,
getFirstElement,
makeKeyCollection |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected static char DELIMITER
protected static final java.lang.String VERSION
protected static final java.lang.String LOG
protected static final java.lang.String TEXT
public static final java.lang.String _rcsId
Constructor Detail |
public Modification(java.io.BufferedReader reader, boolean isHeadRevision)
reader
- the buffered reader from which the modification will be
subsequently parsed.Method Detail |
public java.lang.String getVersion()
public java.lang.String getChanges()
Changes are annotated with diff markers so that the actualy source of this version can be constructed from the previous version plus these changes.
public java.lang.String getComments()
public int getAddedCount()
public int getRemovedCount()
public int getLineCount()
protected void setAddedCount(int added)
protected void setRemovedCount(int removed)
public boolean parse() throws ParserException
ControlInformation.parse()
protected Element parseNextElement() throws java.io.IOException, ParserException
public int compareTo(java.lang.Object o)
protected boolean isKeyAllowed(java.lang.String key)
protected java.util.Collection getAllowedKeys()
public void dump()
public java.lang.String toString()
public static void main(java.lang.String[] args) throws ParserException, java.io.FileNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |