com.ihr.xbrl.om
Class XBRLCoreProcessor

java.lang.Object
  extended by com.ihr.xbrl.om.XBRLCoreProcessor
All Implemented Interfaces:
XBRLPlugInProcessor

public class XBRLCoreProcessor
extends java.lang.Object
implements XBRLPlugInProcessor

This class is a XBRLPlugInProcessor for doing XBRL 2.1 validation of the DTS.

Author:
Ignacio

Field Summary
static java.lang.String PROCESSORNAME
           
static int VALIDATE_CYCLES
          Constants to fire specific validation parts.
static int VALIDATE_DOCUMENT
           
static int VALIDATE_ESSENCE_ALIAS
           
static int VALIDATE_REPORT_ITEMS_AND_TUPLES
           
static int VALIDATE_REQUIRES_ELEMENT
           
static int VALIDATE_SUMMATION_ITEM
           
 
Method Summary
 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)
           
 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()
           
 java.lang.String getName()
          Returns the processor name so it can be written in validation reports
 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROCESSORNAME

public static final java.lang.String PROCESSORNAME
See Also:
Constant Field Values

VALIDATE_CYCLES

public static final int VALIDATE_CYCLES
Constants to fire specific validation parts. They are bitmap constants so they can be 'or'ed together in the same integer value.

See Also:
Constant Field Values

VALIDATE_ESSENCE_ALIAS

public static final int VALIDATE_ESSENCE_ALIAS
See Also:
Constant Field Values

VALIDATE_REQUIRES_ELEMENT

public static final int VALIDATE_REQUIRES_ELEMENT
See Also:
Constant Field Values

VALIDATE_SUMMATION_ITEM

public static final int VALIDATE_SUMMATION_ITEM
See Also:
Constant Field Values

VALIDATE_DOCUMENT

public static final int VALIDATE_DOCUMENT
See Also:
Constant Field Values

VALIDATE_REPORT_ITEMS_AND_TUPLES

public static final int VALIDATE_REPORT_ITEMS_AND_TUPLES
See Also:
Constant Field Values
Method Detail

create

public static XBRLCoreProcessor create(DTSContainer dts)
                                throws com.rs.lic.LicenseVerificationException
Throws:
com.rs.lic.LicenseVerificationException

clear

public void clear()
Resets the content of the validation report


configure

public void configure(java.util.Properties properties)
Description copied from interface: XBRLPlugInProcessor
Configures the processor according with the properties passed in in the properties parameter

Specified by:
configure in interface XBRLPlugInProcessor

setWhatToValidate

public void setWhatToValidate(int newValue)
Adjust the work performed by this XBRLCoreProcessor. By default the processor will check for cycles, essence-alias, requires-element summation-item and document validation.

Use a combination of VALIDATE_ constants in order to set or unset specific validation steps.

Parameters:
newValue - integer, bitmap

getContainer

public DTSContainer getContainer()
Access to the DTSContainer that is under validation

Returns:
DTSContainer

validate

public XBRLValidationReport validate()
Description copied from interface: XBRLPlugInProcessor
Validates the content of the DTS according to the rules indicated in this plug-in processor.

Specified by:
validate in interface XBRLPlugInProcessor
Returns:
an XBRLValidationReport object XBRLValidationReport

validate

public XBRLValidationReport validate(XBRLDocument doc)
Validates an instance document against all arcroles defined in the XBRL 2.1 specification

Parameters:
doc -
Throws:
DTSDiscoveryException
XBRLValidationException

getDescription

public java.lang.String getDescription()
Description copied from interface: XBRLPlugInProcessor
Returns the processor description so it can be written in validation reports

Specified by:
getDescription in interface XBRLPlugInProcessor

getDescriptionStatic

public static java.lang.String getDescriptionStatic()

getName

public java.lang.String getName()
Description copied from interface: XBRLPlugInProcessor
Returns the processor name so it can be written in validation reports

Specified by:
getName in interface XBRLPlugInProcessor


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