Interface Annotation
public interface Annotation
Represents a document annotation. Provides methods to retrieve field values, references, placemarks, and type names
for any annotation type.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionReturns the placemark of the annotation, such as the text it appears on, the page it appears on, or the coordinates it appears on.Returns the references associated with this annotation.Returns the name of the annotation type of this annotation.<T> T
getValue
(String fieldName, AnnotationValueType<T> valueType) Returns the value of the field with the given name and type.
-
Method Details
-
getPlacemark
AnnotationPlacemark getPlacemark()Returns the placemark of the annotation, such as the text it appears on, the page it appears on, or the coordinates it appears on.- Returns:
- the placemark of the annotation
-
getReferences
List<AnnotationReference> getReferences()Returns the references associated with this annotation. Not all annotation types support references.- Returns:
- the references associated with this annotation
-
getTypeName
String getTypeName()Returns the name of the annotation type of this annotation.- Returns:
- the name of the annotation type of this annotation
-
getValue
Returns the value of the field with the given name and type.- Type Parameters:
T
- the Java class that backs the value type- Parameters:
fieldName
- the name of the annotation fieldvalueType
- the value type of the field- Returns:
- the value of the field
-