gate.jape.functest
Class BaseJapeTests.BaseAnnotationCreator

java.lang.Object
  extended by gate.jape.functest.BaseJapeTests.BaseAnnotationCreator
All Implemented Interfaces:
BaseJapeTests.AnnotationCreator
Enclosing class:
BaseJapeTests

public abstract static class BaseJapeTests.BaseAnnotationCreator
extends Object
implements BaseJapeTests.AnnotationCreator


Field Summary
protected  AnnotationSet as
           
protected  int curOffset
           
protected  int dfltAnnotLen
           
protected static FeatureMap emptyFeat
           
 
Constructor Summary
BaseJapeTests.BaseAnnotationCreator()
           
 
Method Summary
protected  BaseJapeTests.AnnotationCreator add(int start, int end, String type)
          Add an annotation of the given type over the given range.
protected  BaseJapeTests.AnnotationCreator add(int start, int end, String type, FeatureMap fm)
          Add an annotation of the given type over the given range.
protected  BaseJapeTests.AnnotationCreator add(String type)
          Add annot at the current offset
protected  BaseJapeTests.AnnotationCreator addInc(String type)
          Add an annotation of the given type at the current offset and increment the placement counter.
 void annotate(Document doc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gate.jape.functest.BaseJapeTests.AnnotationCreator
createAnnots
 

Field Detail

as

protected AnnotationSet as

curOffset

protected int curOffset

dfltAnnotLen

protected int dfltAnnotLen

emptyFeat

protected static FeatureMap emptyFeat
Constructor Detail

BaseJapeTests.BaseAnnotationCreator

public BaseJapeTests.BaseAnnotationCreator()
Method Detail

annotate

public final void annotate(Document doc)
                    throws InvalidOffsetException
Specified by:
annotate in interface BaseJapeTests.AnnotationCreator
Throws:
InvalidOffsetException

add

protected BaseJapeTests.AnnotationCreator add(int start,
                                              int end,
                                              String type)
                                       throws InvalidOffsetException
Add an annotation of the given type over the given range. Does not increment curOffset.

Throws:
InvalidOffsetException

add

protected BaseJapeTests.AnnotationCreator add(int start,
                                              int end,
                                              String type,
                                              FeatureMap fm)
                                       throws InvalidOffsetException
Add an annotation of the given type over the given range. Does not increment curOffset.

Throws:
InvalidOffsetException

addInc

protected BaseJapeTests.AnnotationCreator addInc(String type)
                                          throws InvalidOffsetException
Add an annotation of the given type at the current offset and increment the placement counter.

Throws:
InvalidOffsetException

add

protected BaseJapeTests.AnnotationCreator add(String type)
                                       throws InvalidOffsetException
Add annot at the current offset

Throws:
InvalidOffsetException