public class XBRLCoreProcessor extends java.lang.Object implements XBRLPlugInProcessor
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROCESSORNAME
The Constant PROCESSORNAME.
|
static int |
VALIDATE_CYCLES
Constants to fire specific validation parts.
|
static int |
VALIDATE_DOCUMENT
The Constant VALIDATE_DOCUMENT.
|
static int |
VALIDATE_ESSENCE_ALIAS
The Constant VALIDATE_ESSENCE_ALIAS.
|
static int |
VALIDATE_REPORT_ITEMS_AND_TUPLES
The Constant VALIDATE_REPORT_ITEMS_AND_TUPLES.
|
static int |
VALIDATE_REQUIRES_ELEMENT
The Constant VALIDATE_REQUIRES_ELEMENT.
|
static int |
VALIDATE_SUMMATION_ITEM
The Constant VALIDATE_SUMMATION_ITEM.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Resets the content of the validation report.
|
void |
configure(java.util.Properties properties)
Configures the processor according with the properties passed in in the
properties parameter.
|
static XBRLCoreProcessor |
create(DTSContainer dts)
Creates the.
|
DTSContainer |
getContainer()
Access to the DTSContainer that is under validation.
|
java.lang.String |
getDescription()
Returns the processor description so it can be written in validation reports.
|
static java.lang.String |
getDescriptionStatic()
Gets the description static.
|
java.lang.String |
getName()
Returns the processor name so it can be written in validation reports.
|
boolean |
isHidden()
A hidden processor will not pop-up in the GUI tabs.
|
void |
setArcrolesToCheckCycles(java.util.Collection<? extends XBRLArcroleType> xbrlArcroleTypes)
Sets the arcroles to check cycles.
|
void |
setWhatToValidate(int newValue)
Adjust the work performed by this XBRLCoreProcessor.
|
XBRLValidationReport |
validate()
Validates the content of the DTS according to the rules indicated in
this plug-in processor.
|
XBRLValidationReport |
validate(XBRLDocument doc)
Validates an instance document against all arcroles defined in the XBRL 2.1 specification
|
void |
validateCyclesOnBaseSet(DTSBase base,
XBRLArcroleType arcRole,
int cyclesAllowed)
This is the internal method used by the API to validate cycles on a base set.
|
public static final java.lang.String PROCESSORNAME
public static final int VALIDATE_CYCLES
public static final int VALIDATE_ESSENCE_ALIAS
public static final int VALIDATE_REQUIRES_ELEMENT
public static final int VALIDATE_SUMMATION_ITEM
public static final int VALIDATE_DOCUMENT
public static final int VALIDATE_REPORT_ITEMS_AND_TUPLES
public static XBRLCoreProcessor create(DTSContainer dts) throws com.rs.lic.LicenseVerificationException
dts - the dtscom.rs.lic.LicenseVerificationException - the license verification exceptionpublic void clear()
clear in interface XBRLPlugInProcessorpublic void configure(java.util.Properties properties)
XBRLPlugInProcessorconfigure in interface XBRLPlugInProcessorproperties - the propertiespublic void setWhatToValidate(int newValue)
Use a combination of VALIDATE_ constants in order to set or unset specific validation steps.
newValue - integer, bitmappublic DTSContainer getContainer()
public XBRLValidationReport validate()
XBRLPlugInProcessorThis is the method that is called by the DTSContainer on each XBRLPlugInProcessor when the validation() method is called on the DTSContainer instance.
validate in interface XBRLPlugInProcessorXBRLValidationReportpublic XBRLValidationReport validate(XBRLDocument doc)
validate in interface XBRLPlugInProcessordoc - the docpublic void validateCyclesOnBaseSet(DTSBase base, XBRLArcroleType arcRole, int cyclesAllowed) throws XBRLValidationException
base - the DTS base from which the Base Set will be obtained. The DTS container already handles a database of bases and base sets.arcRole - the arcrole that identifies the Base Set.cyclesAllowed - the value here is a constant integer defined in the XBRLArcroleType type.XBRLValidationException - the XBRL validation exceptionpublic java.lang.String getDescription()
XBRLPlugInProcessorgetDescription in interface XBRLPlugInProcessorpublic static java.lang.String getDescriptionStatic()
public java.lang.String getName()
XBRLPlugInProcessorgetName in interface XBRLPlugInProcessorpublic void setArcrolesToCheckCycles(java.util.Collection<? extends XBRLArcroleType> xbrlArcroleTypes)
xbrlArcroleTypes - the new arcroles to check cyclespublic boolean isHidden()
XBRLPlugInProcessorisHidden in interface XBRLPlugInProcessor