|
Oxygen XML Editor 11.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ro.sync.ecss.changetracking.ChangeMarker
public abstract class ChangeMarker
Change marker base class.
Field Summary |
---|
Fields inherited from interface ro.sync.ecss.changetracking.ChangeConstants |
---|
ALL_MARKERS_PI, AUTHOR_NAME_ATTRIBUTE, COMMENT_ATTRIBUTE, COMMENT_CHANGE, COMMENT_CHANGE_MARKER_PI, COMMENT_CHANGE_PI_END, COMMENT_CHANGE_PI_START, CONTENT, DELETE_CHANGE, DELETE_CHANGE_MARKER_PI, DELETE_CHANGE_PI, END_ATTRIBUTE, INSERT_CHANGE, INSERT_CHANGE_MARKER_PI, INSERT_CHANGE_PI_END, INSERT_CHANGE_PI_START, MODIFICATION_TIME, START_ATTRIBUTE |
Constructor Summary | |
---|---|
ChangeMarker()
|
Method Summary | |
---|---|
int |
compareTo(ChangeMarker o)
It compares the start offset of the current change marker with the start offset of the other one. |
boolean |
containsOffset(int offset)
Returns true if the given offset is located between the start and end offsets of the current change marker. |
String |
getAuthor()
|
String |
getAuthorComment()
|
int |
getChangeType()
|
String |
getDescription()
Get the change marker description. |
abstract int |
getEndOffset()
|
String |
getModificationTime()
|
abstract int |
getStartOffset()
|
void |
setAuthor(String author)
Sets the author of the change. |
void |
setAuthorComment(String authorComment)
|
void |
setModTime(String modTime)
Sets the time stamp of the change. |
void |
setType(int type)
Sets the change type. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ChangeMarker()
Method Detail |
---|
public void setType(int type)
type
- The change type to set.
For example ChangeConstants.INSERT_CHANGE
.public final String getAuthor()
public void setAuthor(String author)
author
- The author of the change to set.public void setModTime(String modTime)
modTime
- The modification time to set.public final String getModificationTime()
public int getChangeType()
ChangeConstants.INSERT_CHANGE
or ChangeConstants.DELETE_CHANGE
.public int compareTo(ChangeMarker o)
compareTo
in interface Comparable<ChangeMarker>
Comparable.compareTo(java.lang.Object)
public boolean containsOffset(int offset)
offset
- The offset to be verified.
public abstract int getStartOffset()
public abstract int getEndOffset()
public String getDescription()
"Inserted by name_of_author
modification_time"
public String toString()
toString
in class Object
Object.toString()
public void setAuthorComment(String authorComment)
authorComment
- The author comment.public String getAuthorComment()
|
Oxygen XML Editor 11.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |