Package eu.europa.esig.dss.pdf
Class PdfAnnotation
java.lang.Object
eu.europa.esig.dss.pdf.PdfAnnotation
public class PdfAnnotation extends Object
Contains relative information about a PDF annotation
-
Constructor Summary
Constructors Constructor Description PdfAnnotation(AnnotationBox annotationBox)Default constructor -
Method Summary
Modifier and Type Method Description booleanequals(Object obj)AnnotationBoxgetAnnotationBox()Returns theAnnotationBoxStringgetName()Returns a name of the annotationinthashCode()booleanisSigned()Checks if the signature field is signedvoidsetName(String name)Sets a name of the annotationvoidsetSigned(boolean signed)Sets if the signature field is signedStringtoString()
-
Constructor Details
-
PdfAnnotation
Default constructor- Parameters:
annotationBox-AnnotationBox
-
-
Method Details
-
getAnnotationBox
Returns theAnnotationBox- Returns:
AnnotationBox
-
getName
Returns a name of the annotation- Returns:
Stringname
-
setName
Sets a name of the annotation- Parameters:
name-Stringannotation 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() -
equals
-
toString
-