com.ihr.xbrl.om
Class XBRLValidationReport

java.lang.Object
  extended by com.ihr.xbrl.om.XBRLValidationReport

public class XBRLValidationReport
extends java.lang.Object

This objects holds the result of the XBRL validation

Author:
Ignacio

Constructor Summary
XBRLValidationReport(DTSContainer dts)
          Creates a new empty validation report
 
Method Summary
 void addException(XBRLValidationException e)
          Adds a new error to this report.
 void addInconsistency(XBRLInconsistency e)
          Adds an inconsistency to thie report.
 void clear()
          Clear all exceptions and inconsistencies in this report
 DTSContainer getContainer()
          Access to the DTSContainer object for which this XBRLValidationReport has been created
 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 XBRLVersioningReport.
 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 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

merge

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

Parameters:
other - XBRLVersioningReport 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


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