|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gate.annotation.NodeImpl
Provides an implementation for the interface gate.Node.
Field Summary | |
private static boolean |
DEBUG
Debug flag |
(package private) Integer |
id
The id of this node (used for persistency) |
(package private) Long |
offset
The offset of this node |
(package private) static long |
serialVersionUID
Freeze the serialization UID. |
Constructor Summary | |
NodeImpl(Integer id)
Construction from id. |
|
NodeImpl(Integer id,
Long offset)
Construction from id and offset. |
Method Summary | |
int |
compareTo(Object o)
Ordering |
Integer |
getId()
Returns the Id of the Node. |
Long |
getOffset()
Offset (will be null when the node is not anchored) |
(package private) void |
setOffset(Long offset)
To allow AnnotationSet to revise offsets during editing |
String |
toString()
String representation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final boolean DEBUG
static final long serialVersionUID
Integer id
Long offset
Constructor Detail |
public NodeImpl(Integer id)
public NodeImpl(Integer id, Long offset)
id
- the Id of the new nodeoffset
- the (temporal) offset of the Node; Should be null
for non-anchored nodes.Method Detail |
public Integer getId()
getId
in interface IdBearer
public Long getOffset()
getOffset
in interface Node
public String toString()
toString
in class Object
public int compareTo(Object o) throws ClassCastException
compareTo
in interface Comparable
ClassCastException
void setOffset(Long offset)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |