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 boolean
equals(Object obj)
AnnotationBox
getAnnotationBox()
Returns theAnnotationBox
String
getName()
Returns a name of the annotationint
hashCode()
boolean
isSigned()
Checks if the signature field is signedvoid
setName(String name)
Sets a name of the annotationvoid
setSigned(boolean signed)
Sets if the signature field is signedString
toString()
-
Constructor Details
-
PdfAnnotation
Default constructor- Parameters:
annotationBox
-AnnotationBox
-
-
Method Details
-
getAnnotationBox
Returns theAnnotationBox
- Returns:
AnnotationBox
-
getName
Returns a name of the annotation- Returns:
String
name
-
setName
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() -
equals
-
toString
-