public class XBRLAssertionResult extends java.lang.Object implements LinkableErrorMessage, java.lang.Comparable<XBRLAssertionResult>, XBRLValidationErrorReport
Modifier and Type | Class and Description |
---|---|
static class |
XBRLAssertionResult.Severity
The 3 available severities in the specification.
|
XBRLValidationErrorReport.ErrorSeverity, XBRLValidationErrorReport.ErrorValueKey
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
assertionUnsatisfiedSeverityArcroleURI
http://xbrl.org/arcrole/2016/assertion-unsatisfied-severity as defined in the specification
|
static javax.xml.namespace.QName |
SeverityError
The Constant SeverityError.
|
static javax.xml.namespace.QName |
SeverityOK
The Constant SeverityOK.
|
static javax.xml.namespace.QName |
SeverityWarning
The Constant SeverityWarning.
|
Constructor and Description |
---|
XBRLAssertionResult(XBRLFormulaResource assertion,
boolean result,
int cycle,
XBRLInstance inputInstance,
XBRLInstance afterFormulaInstance)
This method can be used to create an XBRLAssertionResult while looking if the
XBRLAssertion contains a specific user defined message.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(XBRLAssertionResult o)
Compare to.
|
boolean |
equals(java.lang.Object obj)
Equals.
|
XBRLInstance |
getAfterFormulaInstance()
Access to the XBRL Report that was created after the evaluation of the variable set
Returns null if the DTS Property FORMULA_PROCESSOR_RETAIN_AFTER_FORMULA_INTANCE_ON_ASSERTION_RESULTS is false.
|
java.lang.String |
getAssertionID()
Gets the assertion id.
|
java.lang.String |
getCustomCode()
Access to the custom error code assigned to the assertion using
Reporting Standard S.L. extension to assign custom error codes
in the taxonomy for each assertion
|
XBRLFormulaResource |
getEvaluatedResources()
Access to the instance of the XBRLFormulaResource used during the assertion evaluation.
|
java.lang.String |
getExpression()
Gets the XPath expression that has been evaluated.
|
XBRLInstance |
getInputInstance()
Acess to the XBRL Input instance document on this assertion.
|
java.lang.String |
getLinkableMessage(KeysForFactsProvider kp,
LabelsProvider lp)
Gets the linkable message.
|
java.lang.String |
getMessage()
Gets the message.
|
XBRLAssertionResult.Severity |
getSeverity()
Gets the severity.
|
TraceVariablesBind |
getTraceVariables()
If the API has stored information about variable binding for the evaluation of this assertion, this
method returns that information at this time.
|
java.util.EnumMap<XBRLValidationErrorReport.ErrorValueKey,java.lang.Object> |
getValidationReportData() |
int |
hashCode()
Hash code.
|
boolean |
isNotOk()
Checks if is not ok.
|
boolean |
isOK()
Checks if is ok.
|
void |
setExpression(java.lang.String expression)
Sets the XPath expression that has been evaluated.
|
void |
setTraceVariablesInformation(TraceVariablesBind info)
The API uses this method to set the information about the variables that bind during the execution
of thie assetion.
|
java.lang.String |
toString()
To string.
|
public static final javax.xml.namespace.QName SeverityOK
public static final javax.xml.namespace.QName SeverityWarning
public static final javax.xml.namespace.QName SeverityError
public static final java.lang.String assertionUnsatisfiedSeverityArcroleURI
public XBRLAssertionResult(XBRLFormulaResource assertion, boolean result, int cycle, XBRLInstance inputInstance, XBRLInstance afterFormulaInstance) throws XFValidationException
assertion
- the assertionresult
- the resultcycle
- the cycleinputInstance
- the input instanceafterFormulaInstance
- the after formula instanceXFValidationException
- the XF validation exceptionpublic XBRLAssertionResult.Severity getSeverity()
XBRLAssertionResult.Severity
enumeration.
The severity value is set from the evaluation result. If the evaluation result has no assertionUnsatisfied arc to a resource, the severity is set to OK when the evaluation was true() and WARNING when the evaluation was false(). Otherwise the severity is set from the value of the resource associated
public XBRLFormulaResource getEvaluatedResources()
public java.lang.String getAssertionID()
public boolean isOK()
public boolean isNotOk()
public java.lang.String getMessage()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getCustomCode()
public XBRLInstance getInputInstance()
Returns null if the DTS Property FORMULA_PROCESSOR_RETAIN_INPUT_INTANCE_ON_ASSERTION_RESULTS is false
public void setTraceVariablesInformation(TraceVariablesBind info)
info
- the new trace variables informationpublic void setExpression(java.lang.String expression)
expression
- the new expressionpublic java.lang.String getExpression()
public TraceVariablesBind getTraceVariables()
This method returns null if no information exists
public XBRLInstance getAfterFormulaInstance()
Returns null if the DTS Property FORMULA_PROCESSOR_RETAIN_AFTER_FORMULA_INTANCE_ON_ASSERTION_RESULTS is false.
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the objpublic java.lang.String getLinkableMessage(KeysForFactsProvider kp, LabelsProvider lp)
getLinkableMessage
in interface LinkableErrorMessage
kp
- the kplp
- the lppublic int compareTo(XBRLAssertionResult o)
compareTo
in interface java.lang.Comparable<XBRLAssertionResult>
o
- the opublic java.util.EnumMap<XBRLValidationErrorReport.ErrorValueKey,java.lang.Object> getValidationReportData()
getValidationReportData
in interface XBRLValidationErrorReport
Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa