|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xces.graf.uima.DefaultAnnotationLabelMaker
public class DefaultAnnotationLabelMaker
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.
| 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 |
|---|
protected org.slf4j.Logger logger
protected String type
protected String namespace
| Constructor Detail |
|---|
public DefaultAnnotationLabelMaker()
public DefaultAnnotationLabelMaker(String namespace)
| Method Detail |
|---|
public void setType(String type)
public void setMap(org.xces.graf.util.NameMap map)
public String makeLabel(org.xces.graf.api.IAnnotation a)
public org.xces.graf.util.NameMap getNameMap()
public void setNameMap(org.xces.graf.util.NameMap map)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||