Package edu.kit.ipd.are.archdoclink.nlp
Class Annotation
- java.lang.Object
-
- edu.kit.ipd.are.archdoclink.nlp.Annotation
-
public class Annotation extends Object
This class represents an annotation. TheAnnotation.AnnotationBuildershould preferably be used to build an annotation. An annotation always needs a name and an annotationObject. Optionally, an annotation can also have a specific name for the value and the arc, that should be used to connect the annotation- Author:
- Jan Keim
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAnnotation.AnnotationBuilderBuilder that can be used to createAnnotations
-
Constructor Summary
Constructors Constructor Description Annotation(String name, Object annotationObject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetAnnotationObject()StringgetArcName()StringgetName()StringgetValueName()voidsetArcName(String arcName)voidsetValueName(String valueName)StringtoString()
-
-
-
Method Detail
-
getName
public String getName()
- Returns:
- the name
-
getValueName
public String getValueName()
- Returns:
- the valueName
-
getAnnotationObject
public Object getAnnotationObject()
- Returns:
- the annotationObject
-
getArcName
public String getArcName()
- Returns:
- the valueName
-
setValueName
public void setValueName(String valueName)
- Parameters:
valueName- the valueName to set
-
setArcName
public void setArcName(String arcName)
- Parameters:
arcName- the arcName to set
-
-