com.ihr.xbrl.om
Class XBRLValidationReport

java.lang.Object
  extended by com.ihr.xbrl.om.XBRLValidationReport
All Implemented Interfaces:
java.io.Serializable

public class XBRLValidationReport
extends java.lang.Object
implements java.io.Serializable

This objects holds the result of the XBRL validation

Author:
Ignacio
See Also:
Serialized Form

Constructor Summary
XBRLValidationReport(DTSContainer dts)
          Creates a new empty validation report
 
Method Summary
 void addAssertionTest(XBRLAssertionResult xbrlAssertionResult)
           
 void addException(XBRLValidationException e)
          Adds a new error to this report.
 void addInconsistency(XBRLInconsistency e)
          Adds an inconsistency to thie report.
 boolean assertionResultsAvailable()
          If the validation process includes the formula processor.
 void clear()
          Clear all exceptions and inconsistencies in this report
 XBRLAssertionResult[] getAssertionResult(java.lang.String assertionId)
          returns an array of assertion results for a specific assertionId
 java.util.Collection<java.lang.String> getAssertionResultIDs()
           
 DTSContainer getContainer()
          Access to the DTSContainer object for which this XBRLValidationReport has been created
 int getCountAssertionsNotSatisfied(java.lang.String id)
           
 int getCountAssertionsSatisfied(java.lang.String id)
           
 java.util.Iterator<XBRLValidationException> getExceptions()
          Access to the exceptions in this report
 int getExceptionsCount()
          Returns the number of exceptions in the report
 XBRLInstance getFormulaProcessorGeneratedInstance()
          If the DTS contains formula linkbases this method returns the output instance generated using formulas
 java.util.Iterator<XBRLInconsistency> getInconsistencies()
          Access to the inconsistencies in this report
 int getInconsistenciesCount()
          Returns the number of inconsistencies in the report
 void inconsistenciesAsExceptions()
          Considers the inconsistencias as XBRLValidationExceptions Useful to be consistent with old versions of the library
 void merge(XBRLValidationReport other)
          Adds to this report the content of another XBRLValidationReport.
 void removeExceptions(int code)
          Remove from current report all exceptions that matches the code indicated in the parameter
 void serialize(XBRLValidationReportSerializer serializer)
          Sends the current report to the report serializer.
 void setContainer(DTSContainer dts)
           
 void setFormulaInstance(XBRLInstance instance)
          Used by the processor internally to set the generated instance
 void throwExceptions()
          If the report contains XBRL Errors this method takes one of them and throws it.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XBRLValidationReport

public XBRLValidationReport(DTSContainer dts)
Creates a new empty validation report

Method Detail

setContainer

public void setContainer(DTSContainer dts)
Parameters:
dts2 -

merge

public void merge(XBRLValidationReport other)
Adds to this report the content of another XBRLValidationReport.

Parameters:
other - XBRLValidationReport whose content will be added to this report

inconsistenciesAsExceptions

public void inconsistenciesAsExceptions()
                                 throws XBRLValidationException
Considers the inconsistencias as XBRLValidationExceptions Useful to be consistent with old versions of the library

Throws:
XBRLValidationException

addException

public void addException(XBRLValidationException e)
Adds a new error to this report. Errors are XBRLValidationExceptions

Parameters:
e -

addInconsistency

public void addInconsistency(XBRLInconsistency e)
Adds an inconsistency to thie report. Inconsistencies are XBRLInconsistency objects

Parameters:
e -

throwExceptions

public void throwExceptions()
                     throws XBRLValidationException
If the report contains XBRL Errors this method takes one of them and throws it. If there are no XBRL Errors this method does noting.

Throws:
XBRLValidationException

getExceptions

public java.util.Iterator<XBRLValidationException> getExceptions()
Access to the exceptions in this report

Returns:
Iterator<XBRLValidationException>

getInconsistencies

public java.util.Iterator<XBRLInconsistency> getInconsistencies()
Access to the inconsistencies in this report

Returns:
Iterator<XBRLInconsistency>

clear

public void clear()
Clear all exceptions and inconsistencies in this report


removeExceptions

public void removeExceptions(int code)
Remove from current report all exceptions that matches the code indicated in the parameter

Parameters:
code - a constact defined in the XBRLValidationException class

getFormulaProcessorGeneratedInstance

public XBRLInstance getFormulaProcessorGeneratedInstance()
If the DTS contains formula linkbases this method returns the output instance generated using formulas

Returns:
XBRLInstance
Since:
2.7.0

setFormulaInstance

public void setFormulaInstance(XBRLInstance instance)
Used by the processor internally to set the generated instance

Parameters:
instance -

getContainer

public DTSContainer getContainer()
Access to the DTSContainer object for which this XBRLValidationReport has been created

Returns:
DTSContainer

serialize

public void serialize(XBRLValidationReportSerializer serializer)
Sends the current report to the report serializer. This method will convert the errors and inconsistencies in something human readable.

Parameters:
serializer -

getExceptionsCount

public int getExceptionsCount()
Returns the number of exceptions in the report

Returns:
integer

getInconsistenciesCount

public int getInconsistenciesCount()
Returns the number of inconsistencies in the report

Returns:
integer

addAssertionTest

public void addAssertionTest(XBRLAssertionResult xbrlAssertionResult)
Parameters:
xbrlAssertionResult -

getCountAssertionsSatisfied

public int getCountAssertionsSatisfied(java.lang.String id)

getCountAssertionsNotSatisfied

public int getCountAssertionsNotSatisfied(java.lang.String id)

getAssertionResultIDs

public java.util.Collection<java.lang.String> getAssertionResultIDs()

assertionResultsAvailable

public boolean assertionResultsAvailable()
If the validation process includes the formula processor. And the validation process has evaluated assertions, this method returns true.

Returns:
boolean value

getAssertionResult

public XBRLAssertionResult[] getAssertionResult(java.lang.String assertionId)
returns an array of assertion results for a specific assertionId

Parameters:
assertionId - String
Returns:
XBRLAssertionResult[]


Copyright 2006-2009 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa