pt.uminho.anote2.datastructures.annotation
Class Annotation
java.lang.Object
pt.uminho.anote2.datastructures.annotation.Annotation
- All Implemented Interfaces:
- java.lang.Cloneable, IAnnotation
- Direct Known Subclasses:
- EntityAnnotation, EventAnnotation
public class Annotation
- extends java.lang.Object
- implements IAnnotation
- Author:
- Hugo Costa
|
Constructor Summary |
Annotation(int id,
long start,
long end)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Annotation
public Annotation(int id,
long start,
long end)
getStartOffset
public long getStartOffset()
- Specified by:
getStartOffset in interface IAnnotation
setStartOffset
public void setStartOffset(long startOffset)
getEndOffset
public long getEndOffset()
- Specified by:
getEndOffset in interface IAnnotation
setEndOffset
public void setEndOffset(long endOffset)
getType
public java.lang.String getType()
- Description copied from interface:
IAnnotation
- NER - compound, gene, ...
RE -
...
Doc Relevance - relevant, irrelevant...
- Specified by:
getType in interface IAnnotation
setType
public void setType(java.lang.String type)
getID
public int getID()
- Specified by:
getID in interface IAnnotation
clone
public IAnnotation clone()
- Specified by:
clone in interface IAnnotation- Overrides:
clone in class java.lang.Object