at.knowcenter.wag.egov.egiz.pdf
Class TextualSignatureHolder

java.lang.Object
  extended byat.knowcenter.wag.egov.egiz.pdf.TextualSignatureHolder
All Implemented Interfaces:
Serializable, SignatureHolder

public class TextualSignatureHolder
extends Object
implements Serializable, SignatureHolder

Data structure that holds the information of one signature block, which is the signed/signable text and the corresponding SignatureObject.

Author:
wprinz
See Also:
Serialized Form

Constructor Summary
TextualSignatureHolder(String text, SignatureObject so)
           
TextualSignatureHolder(TextDataSource text, SignatureObject so)
           
 
Method Summary
 void exchangeDataSource(TextDataSource tds)
          This is used to replace the DataSource.
 DataSource getDataSource()
          Returns the DataSource providing the data.
 SignatureObject getSignatureObject()
           
 String getSignedText()
          This is just a shortcut to getDataSource().getText()
 int getUiBlockEndPos()
           
static void mulitSetUiBlockEndPos(List signatureHolders, int uiBlockEndPos)
           
 void setUiBlockEndPos(int uiBlockEndPos)
           
static void trySetUiBlockEndPos(SignatureHolder sh, int uiBlockEndPos)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextualSignatureHolder

public TextualSignatureHolder(String text,
                              SignatureObject so)

TextualSignatureHolder

public TextualSignatureHolder(TextDataSource text,
                              SignatureObject so)
Method Detail

getSignatureObject

public SignatureObject getSignatureObject()
Specified by:
getSignatureObject in interface SignatureHolder
Returns:
Returns the SignatureObject containing the issuer, serial number, etc.
See Also:
SignatureHolder.getSignatureObject()

getDataSource

public DataSource getDataSource()
Description copied from interface: SignatureHolder
Returns the DataSource providing the data.

Specified by:
getDataSource in interface SignatureHolder
Returns:
See Also:
SignatureHolder.getDataSource()

exchangeDataSource

public void exchangeDataSource(TextDataSource tds)
This is used to replace the DataSource.

After processing the text, data sources containing large texts are usually replaced by a FileBased ones to save memory.

Parameters:
tds -

getSignedText

public String getSignedText()
This is just a shortcut to getDataSource().getText()

Returns:
Returns the text of this data source.

getUiBlockEndPos

public int getUiBlockEndPos()

setUiBlockEndPos

public void setUiBlockEndPos(int uiBlockEndPos)

mulitSetUiBlockEndPos

public static void mulitSetUiBlockEndPos(List signatureHolders,
                                         int uiBlockEndPos)

trySetUiBlockEndPos

public static void trySetUiBlockEndPos(SignatureHolder sh,
                                       int uiBlockEndPos)


Copyright © 2006-2010. All Rights Reserved.