Class MetadataCommentRelation


  • public class MetadataCommentRelation
    extends Object
    Adds a textual comment to the selected annotation.
    • Constructor Detail

      • MetadataCommentRelation

        public MetadataCommentRelation()
    • Method Detail

      • getComment

        @Nullable
        public @Nullable String getComment()
        The textual comment to add.
        Returns:
        comment
      • setComment

        public void setComment​(String comment)
      • getObjectID

        @Nullable
        public @Nullable String getObjectID()
        The object ID of the annotation. **Info:** A PDF object ID consists of two numbers, where the first number selects the object's number and the second the \"generation\" of the object. The object ID shall always be unique within the context of the document and can be used to select a specific object.
        Returns:
        objectID
      • setObjectID

        public void setObjectID​(String objectID)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object