public class XBRLValidationReport
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
XBRLValidationReport.ReportParts
This enumeration can be used by report serializers.
|
Constructor and Description |
---|
XBRLValidationReport(DTSContainer dts)
Creates a new empty validation report.
|
Modifier and Type | Method and Description |
---|---|
void |
addAssertionTest(XBRLAssertionResult xbrlAssertionResult)
Adds the assertion test.
|
void |
addException(XBRLValidationException e)
Adds a new error to this report.
|
void |
addInconsistency(XBRLInconsistency e)
Adds an inconsistency to the report.
|
boolean |
assertionResultsAvailable()
If the validation process includes the formula processor.
|
static XBRLValidationReport |
assumeIfEmpty(XBRLValidationReport other)
This method checks if the incoming XBRLValidation report is empty (contains no errors or inconsistencies) and
if so, returns another empty XBRLValidationReport that has been stored as a thread local variable.
|
void |
clear()
Clear all exceptions and inconsistencies in this report.
|
boolean |
equals(java.lang.Object obj)
Equals.
|
XBRLAssertionResult[] |
getAssertionResult(java.lang.String assertionId)
returns an array of assertion results for a specific assertionId.
|
java.util.Collection<java.lang.String> |
getAssertionResultIDs()
Gets the assertion result i ds.
|
DTSContainer |
getContainer()
Access to the DTSContainer object for which this XBRLValidationReport has been created.
|
int |
getCountAssertionsNotSatisfied(java.lang.String id)
Gets the count assertions not satisfied.
|
int |
getCountAssertionsSatisfied(java.lang.String id)
Gets the count assertions satisfied.
|
static XBRLValidationReport |
getEmptyValidationReport(DTSContainer dts)
Returns an empty validation report.
|
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.
|
int |
hashCode()
Hash code.
|
void |
inconsistenciesAsExceptions()
Considers the inconsistencies as XBRLValidationExceptions
Useful to be consistent with old versions of the library.
|
boolean |
isEmpty()
Checks if is empty.
|
XBRLValidationReport |
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)
Sets the container.
|
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.
|
java.lang.String |
toString()
To string.
|
public XBRLValidationReport(DTSContainer dts)
dts
- the dtspublic static XBRLValidationReport getEmptyValidationReport(DTSContainer dts)
dts
- the dtspublic void setContainer(DTSContainer dts)
dts
- the new containerpublic XBRLValidationReport merge(XBRLValidationReport other)
other
- XBRLValidationReport whose content will be added to this reportpublic void inconsistenciesAsExceptions() throws XBRLValidationException
XBRLValidationException
- the XBRL validation exceptionpublic void addException(XBRLValidationException e)
e
- the epublic void addInconsistency(XBRLInconsistency e)
e
- the epublic void throwExceptions() throws XBRLValidationException
XBRLValidationException
- the XBRL validation exceptionpublic java.util.Iterator<XBRLValidationException> getExceptions()
public java.util.Iterator<XBRLInconsistency> getInconsistencies()
public void clear()
public void removeExceptions(int code)
code
- a constact defined in the XBRLValidationException classpublic XBRLInstance getFormulaProcessorGeneratedInstance()
public void setFormulaInstance(XBRLInstance instance)
instance
- the new formula instancepublic DTSContainer getContainer()
public void serialize(XBRLValidationReportSerializer serializer)
serializer
- the serializerpublic int getExceptionsCount()
public int getInconsistenciesCount()
public void addAssertionTest(XBRLAssertionResult xbrlAssertionResult)
xbrlAssertionResult
- the xbrl assertion resultpublic int getCountAssertionsSatisfied(java.lang.String id)
id
- the idpublic int getCountAssertionsNotSatisfied(java.lang.String id)
id
- the idpublic java.util.Collection<java.lang.String> getAssertionResultIDs()
public static XBRLValidationReport assumeIfEmpty(XBRLValidationReport other)
other
- the otherpublic boolean isEmpty()
public boolean assertionResultsAvailable()
public XBRLAssertionResult[] getAssertionResult(java.lang.String assertionId)
assertionId
- Stringpublic java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the objCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa