T
- the generic typepublic interface QualityCheck<T extends XBRLPlugInProcessor>
At static startup of an FRTAProcessor all classes implementing this tag interface are collected and made available to the FRTAProcessor to perform validation
Every class must contain documentation to allow the user to understand what the class will be checking
Validation will add subclasses of XBRLInconsistency
not errors
Every validation will incorporate the rule code that generated the inconsistency
Instances of QualityCheck interface shall be state-less and perform validation during the call to validate method. This is not mandatory as QualityCkeckIx extension of this interface is state-full until validate is called
Modifier and Type | Method and Description |
---|---|
QualityCheckProviderLibrary<T> |
getLibrary()
Obtains the library the rule belongs to.
|
T |
getProcessor()
Obtains the instance of the QualityProcessor where this QualityCheck will be running.
|
java.lang.String |
getRuleCode()
Every rule must have a code such as 2.3.6
Rule codes are static information
|
java.lang.String |
getRuleDescription()
Every rule must have a rule description that
explains what the rule is doing.
|
java.lang.String |
getRuleName()
Every rule must have a short rule name to be
used in rule enumerations in the GUI.
|
boolean |
isDefaultEnabled()
This method is used when the user has not enabled or disabled a rule
The default values are static.
|
boolean |
isEnabled()
This method returns true if the rule is enabled or false if the rule is
disabled.
|
void |
setLibrary(QualityCheckProviderLibrary<T> library)
Sets the library the rule belongs to.
|
void |
setProcessor(T processor)
Assigns the QualityProcessor instance.
|
XBRLValidationReport |
validate(T processor)
Performs validation for the rule and returns an XBRLValidationReport
with the rule results.
|
java.lang.String getRuleCode()
Rule codes are static information
java.lang.String getRuleName()
java.lang.String getRuleDescription()
The rule Description must be html
XBRLValidationReport validate(T processor)
processor
- instance of the FRTAProcessor to be usedboolean isEnabled()
boolean isDefaultEnabled()
QualityCheckProviderLibrary<T> getLibrary()
void setLibrary(QualityCheckProviderLibrary<T> library)
getLibrary()
library
- the new libraryT getProcessor()
void setProcessor(T processor)
processor
- the new processorCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa