Class PdfAnnotation

java.lang.Object
eu.europa.esig.dss.pdf.PdfAnnotation

public class PdfAnnotation
extends Object
Contains relative information about a PDF annotation
  • Constructor Details

    • PdfAnnotation

      public PdfAnnotation​(AnnotationBox annotationBox)
      Default constructor
      Parameters:
      annotationBox - AnnotationBox
  • Method Details

    • getAnnotationBox

      public AnnotationBox getAnnotationBox()
      Returns the AnnotationBox
      Returns:
      AnnotationBox
    • getName

      public String getName()
      Returns a name of the annotation
      Returns:
      String name
    • setName

      public void setName​(String name)
      Sets a name of the annotation
      Parameters:
      name - String annotation name
    • isSigned

      public boolean isSigned()
      Checks if the signature field is signed
      Returns:
      TRUE if the associated signature field has been signed, FALSE otherwise
    • setSigned

      public void setSigned​(boolean signed)
      Sets if the signature field is signed
      Parameters:
      signed - or not
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals​(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object