| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final String | |
| private final FileAnnotationType | |
| private final String | |
| private final String | |
| private static final String | |
| private static final String | |
| private final Optional | |
| private static final Logger | |
| private final int | |
| private final LocalDateTime |
| Access | Constructor and Description |
|---|---|
| public | FileAnnotation(final String
The authors of the annotation author, final LocalDateTime The last time this annotation was modified timeModified, final int The page of the pdf where the annotation occurs pageNumber, final String the actual content of the annotation content, final FileAnnotationType the type of the annotation annotationType, final Optional<FileAnnotation> linkedFileAnnotation)A flexible constructor, mainly used as dummy if there is actually no annotation. |
| public | FileAnnotation(final org.
The actual annotation that holds the information annotation,The page of the pdf where the annotation occurs pageNumber)Creating a normal FileAnnotation from a PDAnnotation. |
| public | FileAnnotation(final org.
The actual annotation that holds the information annotation,The page of the pdf where the annotation occurs pageNumber, FileAnnotation The corresponding note of a marked text area. linkedFileAnnotation)For creating a FileAnnotation that has a connection to another FileAnnotation. |
| Modifier and Type | Method and Description |
|---|---|
| private String | Returns: the abbreviated nameannotation to be shortened annotationName)Abbreviate annotation names when they are longer than |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. Indicates whether some other object is "equal to" this one. |
| public static LocalDateTime | Returns: a LocalDateTime parsed from the dateTimeStringIn this case of format yyyyMMddHHmmss. dateTimeString)Parses a String into a LocalDateTime. |
| public FileAnnotationType | |
| public String | |
| public String | |
| public FileAnnotation | Returns: the note attached to the annotationBefore this getter is called the presence of the linked annotation must be checked via hasLinkedAnnotation()! |
| public int | |
| public LocalDateTime | |
| public int | |
| public boolean | |
| private String | |
| public String |
| ABBREVIATED_ANNOTATION_NAME_LENGTH | back to summary |
|---|---|
| private static final int ABBREVIATED_ANNOTATION_NAME_LENGTH | |
| ANNOTATION_DATE_FORMAT | back to summary |
|---|---|
| private static final String ANNOTATION_DATE_FORMAT | |
| annotationType | back to summary |
|---|---|
| private final FileAnnotationType annotationType | |
| author | back to summary |
|---|---|
| private final String author | |
| content | back to summary |
|---|---|
| private final String content | |
| DATE_TIME_STRING | back to summary |
|---|---|
| private static final String DATE_TIME_STRING | |
| DATE_TIME_STRING_WITH_TIME_ZONE | back to summary |
|---|---|
| private static final String DATE_TIME_STRING_WITH_TIME_ZONE | |
| linkedFileAnnotation | back to summary |
|---|---|
| private final Optional<FileAnnotation> linkedFileAnnotation | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| page | back to summary |
|---|---|
| private final int page | |
| timeModified | back to summary |
|---|---|
| private final LocalDateTime timeModified | |
| FileAnnotation | back to summary |
|---|---|
| public FileAnnotation(final String author, final LocalDateTime timeModified, final int pageNumber, final String content, final FileAnnotationType annotationType, final Optional<FileAnnotation> linkedFileAnnotation) A flexible constructor, mainly used as dummy if there is actually no annotation.
| |
| FileAnnotation | back to summary |
|---|---|
| public FileAnnotation(final org. Creating a normal FileAnnotation from a PDAnnotation.
| |
| FileAnnotation | back to summary |
|---|---|
| public FileAnnotation(final org. For creating a FileAnnotation that has a connection to another FileAnnotation. Needed when creating a text highlighted or underlined annotation with a sticky note.
| |
| abbreviateAnnotationName | back to summary |
|---|---|
| private String abbreviateAnnotationName(final String annotationName) Abbreviate annotation names when they are longer than | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| extractModifiedTime | back to summary |
|---|---|
| public static LocalDateTime extractModifiedTime(String dateTimeString) Parses a String into a LocalDateTime.
| |
| getAnnotationType | back to summary |
|---|---|
| public FileAnnotationType getAnnotationType() | |
| getAuthor | back to summary |
|---|---|
| public String getAuthor() | |
| getContent | back to summary |
|---|---|
| public String getContent() | |
| getLinkedFileAnnotation | back to summary |
|---|---|
| public FileAnnotation getLinkedFileAnnotation() Before this getter is called the presence of the linked annotation must be checked via hasLinkedAnnotation()!
| |
| getPage | back to summary |
|---|---|
| public int getPage() | |
| getTimeModified | back to summary |
|---|---|
| public LocalDateTime getTimeModified() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| hasLinkedAnnotation | back to summary |
|---|---|
| public boolean hasLinkedAnnotation() | |
| parseContent | back to summary |
|---|---|
| private String parseContent(final String content) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |