org.xces.graf.uima
Class DefaultAnnotationLabelMaker

java.lang.Object
  extended by org.xces.graf.uima.DefaultAnnotationLabelMaker
Direct Known Subclasses:
CASFactoryLabelMaker

public class DefaultAnnotationLabelMaker
extends Object

Default label maker used to generate UIMA type names for annotations. The type name generated will take the form namespace.type.label

The namespace can be set in the constructor, and the type is set by the default annotation set label maker.

Version:
1.0
Author:
Keith Suderman

Field Summary
protected  org.slf4j.Logger logger
           
protected  String namespace
          The namespace to use when generating type names.
protected  String type
          Type information from the annotation set.
 
Constructor Summary
DefaultAnnotationLabelMaker()
          The default constructor uses the UIMAUtils.DEFAULT_GRAF_NAMESPACE as the default namespace for type names;
DefaultAnnotationLabelMaker(String namespace)
          The given namespace will be used when generation type names.
 
Method Summary
 org.xces.graf.util.NameMap getNameMap()
           
 String makeLabel(org.xces.graf.api.IAnnotation a)
          Create a type name from this annotation.
 void setMap(org.xces.graf.util.NameMap map)
           
 void setNameMap(org.xces.graf.util.NameMap map)
           
 void setType(String type)
          Called by the annotation set label maker when it determines the type name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected org.slf4j.Logger logger

type

protected String type
Type information from the annotation set.


namespace

protected String namespace
The namespace to use when generating type names.

Constructor Detail

DefaultAnnotationLabelMaker

public DefaultAnnotationLabelMaker()
The default constructor uses the UIMAUtils.DEFAULT_GRAF_NAMESPACE as the default namespace for type names;


DefaultAnnotationLabelMaker

public DefaultAnnotationLabelMaker(String namespace)
The given namespace will be used when generation type names.

Method Detail

setType

public void setType(String type)
Called by the annotation set label maker when it determines the type name.


setMap

public void setMap(org.xces.graf.util.NameMap map)

makeLabel

public String makeLabel(org.xces.graf.api.IAnnotation a)
Create a type name from this annotation.


getNameMap

public org.xces.graf.util.NameMap getNameMap()

setNameMap

public void setNameMap(org.xces.graf.util.NameMap map)


Copyright © 2012 American National Corpus. All Rights Reserved.