TextSignature

Inheritance: java.lang.Object, com.groupdocs.signature.domain.signatures.BaseSignature

public class TextSignature extends BaseSignature

Contains Text signature properties.

Constructors

Constructor Description
TextSignature(String signatureId) Initialize TextSignature object with signature identifier that was obtained after search process.
TextSignature()

Methods

Method Description
getText() Specifies text in signature.
setText(String value) Specifies text in signature.
getSignatureImplementation() Specifies text signature implementation.
getNative() Specifies the native attribute.
setNative(boolean value) Specifies the native attribute.
equals(Object signature) Overwrites Equals method to compare signature properties
hashCode() Overrides GetHashCode method
deepClone() Clone Text Signature instance.

TextSignature(String signatureId)

public TextSignature(String signatureId)

Initialize TextSignature object with signature identifier that was obtained after search process. This unique identifier is used to find additional properties for this signature from document signature information layer.

Parameters:

Parameter Type Description
signatureId java.lang.String Unique signature identifier obtained by sign or search method.

TextSignature()

public TextSignature()

getText()

public final String getText()

Specifies text in signature.

Returns: java.lang.String

setText(String value)

public final void setText(String value)

Specifies text in signature.

Parameters:

Parameter Type Description
value java.lang.String

getSignatureImplementation()

public final int getSignatureImplementation()

Specifies text signature implementation.

Returns: int

getNative()

public final boolean getNative()

Specifies the native attribute. It is true if signature is document-specific.

Returns: boolean

setNative(boolean value)

public final void setNative(boolean value)

Specifies the native attribute. It is true if signature is document-specific.

Parameters:

Parameter Type Description
value boolean

equals(Object signature)

public boolean equals(Object signature)

Overwrites Equals method to compare signature properties

Parameters:

Parameter Type Description
signature java.lang.Object Signature object to compare with.

Returns: boolean - Returns true if passed signature object has same type and all its properties are equal to this instance properties.

hashCode()

public int hashCode()

Overrides GetHashCode method

Returns: int - Signature hash code

deepClone()

public Object deepClone()

Clone Text Signature instance.

Returns: java.lang.Object - Returns cloned Text Signature instance.