at.gv.egiz.pdfas.impl.api.analyze
Class AnalyzeResultImpl

java.lang.Object
  extended by at.gv.egiz.pdfas.impl.api.analyze.AnalyzeResultImpl
All Implemented Interfaces:
AnalyzeResult

public class AnalyzeResultImpl
extends Object
implements AnalyzeResult

Holds the result of an analyzation.

Author:
wprinz

Field Summary
protected  boolean hasBeenCorrected
           
protected  List noSignatures
          The found non-signature update blocks.
protected  List signatures
          The found signatures.
 
Constructor Summary
AnalyzeResultImpl(List signatures)
          Constructor.
AnalyzeResultImpl(List signatures, List noSignatures, boolean hasBeenCorrected)
          Constructor.
 
Method Summary
 List getNoSignatures()
           
 List getSignatures()
          Returns the list of found signatures.
 boolean hasBeenCorrected()
          Tells if the document has been corrected before verification.
 void setHasBeenCorrected(boolean hasBeenCorrected)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

signatures

protected List signatures
The found signatures.


noSignatures

protected List noSignatures
The found non-signature update blocks.


hasBeenCorrected

protected boolean hasBeenCorrected
Constructor Detail

AnalyzeResultImpl

public AnalyzeResultImpl(List signatures,
                         List noSignatures,
                         boolean hasBeenCorrected)
Constructor.

Parameters:
signatures - The found signatures.
noSignatures - The found non-signature update blocks.

AnalyzeResultImpl

public AnalyzeResultImpl(List signatures)
Constructor.

Parameters:
signatures - The found signatures.
Method Detail

getSignatures

public List getSignatures()
                   throws PdfAsException
Description copied from interface: AnalyzeResult
Returns the list of found signatures.

Specified by:
getSignatures in interface AnalyzeResult
Returns:
Returns a list of SignatureInformation objects representing all found signatures.
Throws:
PdfAsException - Thrown on error.
See Also:
AnalyzeResult.getSignatures()

getNoSignatures

public List getNoSignatures()
Specified by:
getNoSignatures in interface AnalyzeResult

hasBeenCorrected

public boolean hasBeenCorrected()
Tells if the document has been corrected before verification. The correction maybe done after a first failing parse to repair a document (if enabled in the configuration correct_document_on_verify_if_necessary). The correction can only work for textual signatures. Binary signatures are lost anyhow.

Specified by:
hasBeenCorrected in interface AnalyzeResult
Returns:

setHasBeenCorrected

public void setHasBeenCorrected(boolean hasBeenCorrected)


Copyright © 2006-2011. All Rights Reserved.