Package com.altova.raptorxml
Interface XBRL
public interface XBRL
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumstatic enumstatic enumstatic enumstatic class -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAssertionForProcessing(String assertion) Limits formula execution to the given assertion only (call multiple times to specify more than one)voidaddAssertionSetForProcessing(String assertionSet) Limits formula execution to the given assertion set only (call multiple times to specify more than one)voidaddCSVTable(String value) Specifies an optional CSV table that should be generated in xBRL-CSV output.voidaddExternalDTS(String path) Preloads the given DTS entry point and uses it for validation of instance files (call the method multiple times to specify more than one entry point).voidaddFormulaArrayParameter(String type, String name, Object[] values) Add an array-parameter used in the formula evaluationvoidaddFormulaForProcessing(String formula) Limits formula execution to the given formula only (call multiple times to specify more than one)voidaddFormulaParameter(String type, String name, String value) Add a parameter used in the formula evaluationvoidaddFormulaParameter(String type, String name, String value, String namespace) Add a parameter used in the formula evaluationvoidaddFormulaParameterNamespace(String prefix, String URI) Define a namespace used in the QNames of the parameter names, types or valuesvoidLimit the available Inline XBRL Transformation Registries to the specified versionvoidaddProcessXuleRule(String ruleName) Limits XULE execution to the given rule only (add option multiple times to specify more than one rule)voidaddPythonScriptFile(String file) Add another Python script to be executed after a successful validation.voidaddTableForProcessing(String table) Limits table generation to the given table only (call multiple times to specify more than one)voidaddTaxonomyPackage(String path) Specifies the path to an additional taxonomy package (all the method multiple times to specify more than one taxonomy package).voidaddTaxonomyToIgnore(String value) Specifies a taxonomy that should not be referenced by a schema reference in the generated xBRL-XML report.voidaddXuleFile(String filePath) Executes the rules in the specified XULE file.voidAll CSV tables will be written.voidClears the list of paths used for preloading DTS entry points.voidClear the list of parameters.voidRemoves the limiting of the available Inline XBRL Transformation Registries to specific versions (similar to #all option on the CLI)voidClears the list of process XULE rules.voidClear the list of Python scripts to be executed after a successful validation.voidClear taxonomies that should not be referenced by a schema reference in the generated xBRL-XML report.voidClears the additional taxonomy package path list.voidClears the list of XULE files.voidenableIXBRLValidateTarget(boolean enable) Enables XBRL validation of generated Target Document XBRL output.voidenableXuleInstanceNamespaceBindings(boolean enable) Makes namespace bindings from the XBRL root element available in the XULE processor.voidenableXuleReportRuleEvaluations(boolean enable) Report XULE rule evaluations as errors, warnings or infos depending on the assigned rule severity.booleanEvaluates XBRL formulas in an instance file.booleanEvaluates XBRL Tables in an instance file.Get the last error message from the engine.booleanisValid()booleanValidates the input XBRL data.Read the assertions from the last executionRead the output data of the last formula executionvoidDeprecated.voidsetConceptLabelLinkrole(String labelLinkrole) Specifies the preferred extended link role to use when rendering concept labels.voidsetConceptLabelRole(String labelRole) Specifies the preferred label role to use when rendering concept labels.voidsetCSVOutputFileName(String value) Writes the XBRL data in OIM xBRL-CSV format to file.voidsetDimensionExtensionEnabled(boolean bEnable) Enable dimension extensions for validationvoidsetEvaluateReferencedParametersOnly(boolean bEnable) If false, forces evaluation of all parameters even if they are not referenced by any formulas/assertions/tables.voidsetExtensibleEnumerationsEnabled(boolean enable) Enables the XBRL Extensible Enumerations 1.0 extension.voidsetFormulaAssertionsAsXML(boolean bEnable) Enable the XML formatting of the assertion filevoidsetFormulaAssertionsOutput(String outputFile) Set the location for the formula assertion outputvoidsetFormulaExtensionEnabled(boolean bEnable) Enable formula extensions for validationvoidsetFormulaOutput(String outputFile) Set the location for the output of the formula evaluationvoidsetFormulaPreloadSchemas(boolean bPreload) Enable the schema preloadingvoidsetGenericLabelLinkrole(String labelLinkrole) Specifies the preferred extended link role to use when rendering generic labels.voidsetGenericLabelRole(String labelRole) Specifies the preferred label role to use when rendering generic labels.voidsetInconsistenciesAsErrors(boolean enable) Treat XBRL inconsistencies as errors [default: false]voidsetInconsistenciesLimit(int value) Specifies the XBRL inconsistencies limit in the range 1-65535.voidsetInputFileCollection(Collection<String> fileCollection) Set a collection of files as input data.voidsetInputFileName(String filePath) Set the input file name.voidsetInputFromText(String inputText) Set the text value for the input datavoidsetInputTextCollection(Collection<String> stringCollection) Set a collection of strings as inputvoidsetIXBRLOutput(String outputFile) If specified, the generated Target Document XBRL output will be written to this path.voidsetIXBRLTreatAsDocumentSet(boolean enable) Treat all inputs as a single Inline XBRL Document Set.voidSpecifies how Inline XBRL URIs should be transformed in generated Target Documents.voidsetIXBRLVersion(XBRL.ENUMIXBRLVersion version) Specifies the Inline XBRL (iXBRL) version to use.voidsetJSONOutputFileName(String value) Writes the XBRL data in OIM xBRL-JSON format to file.voidsetLabelLang(String labelLang) Specifies the preferred label language to use when rendering labels.voidsetOIMValidate(boolean value) Specifies whether to perform an XBRL validation of the data model.voidsetOIMXBRLNamespace(String value) Namespace to use instead of the default namespace https://xbrl.org/2021.voidsetParallelAssessment(boolean support) Enable/disable parallel schema validity assessment.voidsetPreloadSchemas(boolean preload) Enable/disable schema preloading.voidsetPreloadSchemasEnabled(boolean enable) Preloads XBRL 2.1 specification schemas.voidsetPythonScriptFile(String file) Python script to be executed after a successful validation.voidConfigure the usage of the xsi:schemaLocation hintsvoidConfigure the usage of the xsi:schemaLocation hintsvoidConfigure the usage of the xsi:schemaLocation hintsvoidsetTableEliminateEmptyRows(boolean bEnable) Enable elimination of empty table rows/columns (applies to html output only).voidsetTableExtensionEnabled(boolean bEnable) Enable/Disable the XBRL Table 1.0 extensionvoidsetTableLinkbaseNamespace(String namespace) Enables loading of table linkbases written with a previous draft specification.voidsetTableOutput(String outputFile) Set the location for the output of the table evaluationvoidSets the format of the table output filevoidsetTablePreloadSchemas(boolean bEnable) Enable/Disable preloading of XBRL Table 1.0 specification schemasvoidSpecifies the path to the TaxonomyPackagesConfig.json file (used by Altova XMLSpy, MapForce and StyleVision).voidsetTreatCustomRoleErrorsAsWarnings(boolean value) \ Report non-critical XBRL errors related to custom role/arcrole types (for example, missing roleRefs) as warnings.voidsetTreatInvalidUseOfStandardRoleAsWarning(boolean value) \ Specifies whether the invalid use of standard roles should be reported only as a warning.voidsetTreatXBRLInconsistenciesAsErrors(boolean treat) Report XBRL instances as invalid in case of data inconsistencies http://xbrl.org/Specification/XBRL-2.1/REC-2003-12-31/XBRL-2.1-REC-2003-12-31+corrected-errata-2013-02-20.html#_3.4voidsetUTREnabled(boolean enable) Enables the XBRL Unit Registry 1.0 extension.voidsetValidateDTSOnly(boolean enable) Validates only the DTS referenced from the given XBRL instance.voidsetXincludeSupport(boolean support) Enable/disable xinclude supportvoidsetXMLOutputFileName(String value) Writes the XBRL data in OIM xBRL-XML format to file.voidsetXuleOutput(String outputFile) Serializes XULE output to outputFile.voidsetXuleStackSize(int value) Specifies the XULE processor stack size.voiduseExistingCSVMetadata(boolean value) Specifies whether to use the existing CSV metadata file.
-
Method Details
-
isValid
Validates the input XBRL data.- Returns:
- true on success, false on failure. In case of an error, use function
getLastErrorMessage()to get additional information. - Throws:
RaptorXMLException
-
isValid
- Throws:
RaptorXMLException
-
evaluateFormula
Evaluates XBRL formulas in an instance file.- Returns:
- true on success, false on failure. In case of an error, use function
getLastErrorMessage()to get additional information. - Throws:
RaptorXMLException
-
generateTables
Evaluates XBRL Tables in an instance file.- Returns:
- true on success, false on failure. In case of an error, use function
getLastErrorMessage()to get additional information. - Throws:
RaptorXMLException
-
setInputFileName
Set the input file name. Please note that you have to use absolute URLs.- Parameters:
filePath- an absolute URL giving the base location of the file.
-
setInputFileCollection
Set a collection of files as input data. Please note that you have to use absolute URLs.- Parameters:
fileCollection- Collection of strings containing absolute URLs
-
setInputFromText
Set the text value for the input data- Parameters:
inputText- a string containing XBRL data
-
setInputTextCollection
Set a collection of strings as input- Parameters:
stringCollection- collection of strings containing input documents
-
setDimensionExtensionEnabled
void setDimensionExtensionEnabled(boolean bEnable) Enable dimension extensions for validation -
setExtensibleEnumerationsEnabled
void setExtensibleEnumerationsEnabled(boolean enable) Enables the XBRL Extensible Enumerations 1.0 extension. [default: true] -
setUTREnabled
void setUTREnabled(boolean enable) Enables the XBRL Unit Registry 1.0 extension. [default: false] -
setPreloadSchemasEnabled
void setPreloadSchemasEnabled(boolean enable) Preloads XBRL 2.1 specification schemas. [default: true] -
addExternalDTS
Preloads the given DTS entry point and uses it for validation of instance files (call the method multiple times to specify more than one entry point). Entry points in instance files will be ignored. -
clearExternalDTS
void clearExternalDTS()Clears the list of paths used for preloading DTS entry points. -
addTaxonomyPackage
Specifies the path to an additional taxonomy package (all the method multiple times to specify more than one taxonomy package). -
clearTaxonomyPackage
void clearTaxonomyPackage()Clears the additional taxonomy package path list. -
setTaxonomyPackagesConfigFile
Specifies the path to the TaxonomyPackagesConfig.json file (used by Altova XMLSpy, MapForce and StyleVision). -
setValidateDTSOnly
void setValidateDTSOnly(boolean enable) Validates only the DTS referenced from the given XBRL instance. Any other instance specific validation will be skipped. [default: false] -
setInconsistenciesLimit
void setInconsistenciesLimit(int value) Specifies the XBRL inconsistencies limit in the range 1-65535. Processing continues if this limit is reached, but further XBRL inconsistencies are not reported. [default: 100] -
setInconsistenciesAsErrors
void setInconsistenciesAsErrors(boolean enable) Treat XBRL inconsistencies as errors [default: false] -
setFormulaExtensionEnabled
void setFormulaExtensionEnabled(boolean bEnable) Enable formula extensions for validation -
setFormulaOutput
Set the location for the output of the formula evaluation- Parameters:
outputFile- Full path of the output file
-
setFormulaAssertionsOutput
Set the location for the formula assertion output- Parameters:
outputFile- Full path of the output file
-
setFormulaAssertionsAsXML
void setFormulaAssertionsAsXML(boolean bEnable) Enable the XML formatting of the assertion file- Parameters:
bEnable- true for XML output, false for JSON output
-
addFormulaParameter
Add a parameter used in the formula evaluation- Parameters:
type- Parameter data typename- Parameter namevalue- Parameter value (given as string)namespace- Parameter namespace
-
addFormulaParameter
Add a parameter used in the formula evaluation- Parameters:
type- Parameter data typename- Parameter namevalue- Parameter value (given as string)
-
addFormulaArrayParameter
Add an array-parameter used in the formula evaluation- Parameters:
type- Default type (to be used for the non-pair values inside arValue; default is "xs:string"name- Namevalues- Array of values and datatype-value pairs
-
addFormulaParameterNamespace
Define a namespace used in the QNames of the parameter names, types or values- Parameters:
prefix- The namespace prefix, as used in the values passed toinvalid reference
#addFormulaArrayParameter()URI- The namespace URI
-
clearFormulaParameterList
void clearFormulaParameterList()Clear the list of parameters. -
getLastErrorMessage
String getLastErrorMessage()Get the last error message from the engine.- Returns:
- last error message
-
readFormulaOutput
String readFormulaOutput()Read the output data of the last formula execution- Returns:
- output of formula execution (if any)
-
readFormulaAssertions
String readFormulaAssertions()Read the assertions from the last execution- Returns:
- assertions from last run (if any)
-
setFormulaPreloadSchemas
void setFormulaPreloadSchemas(boolean bPreload) Enable the schema preloading -
setXincludeSupport
void setXincludeSupport(boolean support) Enable/disable xinclude support -
setSchemalocationHints
Configure the usage of the xsi:schemaLocation hints -
setSchemaImports
Configure the usage of the xsi:schemaLocation hints -
seSchemaImports
Deprecated.Configure the usage of the xsi:schemaLocation hints -
setSchemaMapping
Configure the usage of the xsi:schemaLocation hints -
setPythonScriptFile
Python script to be executed after a successful validation.- Parameters:
file- path of the script file.
-
addPythonScriptFile
Add another Python script to be executed after a successful validation.- Parameters:
file- path of the script file.
-
clearPythonScriptFiles
void clearPythonScriptFiles()Clear the list of Python scripts to be executed after a successful validation. -
setPreloadSchemas
void setPreloadSchemas(boolean preload) Enable/disable schema preloading. -
setTreatXBRLInconsistenciesAsErrors
void setTreatXBRLInconsistenciesAsErrors(boolean treat) Report XBRL instances as invalid in case of data inconsistencies http://xbrl.org/Specification/XBRL-2.1/REC-2003-12-31/XBRL-2.1-REC-2003-12-31+corrected-errata-2013-02-20.html#_3.4 -
setParallelAssessment
void setParallelAssessment(boolean support) Enable/disable parallel schema validity assessment. -
setTableExtensionEnabled
void setTableExtensionEnabled(boolean bEnable) Enable/Disable the XBRL Table 1.0 extension -
setTablePreloadSchemas
void setTablePreloadSchemas(boolean bEnable) Enable/Disable preloading of XBRL Table 1.0 specification schemas -
setTableOutput
Set the location for the output of the table evaluation- Parameters:
outputFile- Full path of the output file
-
setTableOutputFormat
Sets the format of the table output file- Parameters:
format- XML or HTML
-
setTableEliminateEmptyRows
void setTableEliminateEmptyRows(boolean bEnable) Enable elimination of empty table rows/columns (applies to html output only). -
setGenericLabelLinkrole
Specifies the preferred extended link role to use when rendering generic labels. -
setConceptLabelLinkrole
Specifies the preferred extended link role to use when rendering concept labels. -
setGenericLabelRole
Specifies the preferred label role to use when rendering generic labels. [default: http://www.xbrl.org/2008/role/label] -
setConceptLabelRole
Specifies the preferred label role to use when rendering concept labels. [default: http://www.xbrl.org/2003/role/label] -
setLabelLang
Specifies the preferred label language to use when rendering labels. [default: en] -
addFormulaForProcessing
Limits formula execution to the given formula only (call multiple times to specify more than one)- Parameters:
bstrFormula- Name of the formula; use \"##none\" for nothing and \"##all\" for processing all
-
addAssertionForProcessing
Limits formula execution to the given assertion only (call multiple times to specify more than one)- Parameters:
bstrAssertion- Name of the assertion; use \"##none\" for nothing and \"##all\" for processing all
-
addAssertionSetForProcessing
Limits formula execution to the given assertion set only (call multiple times to specify more than one)- Parameters:
bstrAssertionSet- Name of the assertion set; use \"##none\" for nothing and \"##all\" for processing all
-
addTableForProcessing
Limits table generation to the given table only (call multiple times to specify more than one)- Parameters:
bstrTable- Name of the table; use \"##none\" for nothing and \"##all\" for processing all
-
setTableLinkbaseNamespace
Enables loading of table linkbases written with a previous draft specification. Table linkbase validation, resolution and layout is still performed according to the Table Linkbase 1.0 Recommendation 18 March 2014.- Parameters:
namespace- Namespace; use ##detect to enable auto-detection.
-
setEvaluateReferencedParametersOnly
void setEvaluateReferencedParametersOnly(boolean bEnable) If false, forces evaluation of all parameters even if they are not referenced by any formulas/assertions/tables. [default: true] -
setIXBRLTreatAsDocumentSet
void setIXBRLTreatAsDocumentSet(boolean enable) Treat all inputs as a single Inline XBRL Document Set. [default: false] -
setIXBRLVersion
Specifies the Inline XBRL (iXBRL) version to use. [default: detect] -
addIXBRLTransformationRegistryLimit
Limit the available Inline XBRL Transformation Registries to the specified version -
clearIXBRLTransformationRegistryLimit
void clearIXBRLTransformationRegistryLimit()Removes the limiting of the available Inline XBRL Transformation Registries to specific versions (similar to #all option on the CLI) -
setIXBRLUriTransformationStrategy
Specifies how Inline XBRL URIs should be transformed in generated Target Documents. [default: keep-relative] -
enableIXBRLValidateTarget
void enableIXBRLValidateTarget(boolean enable) Enables XBRL validation of generated Target Document XBRL output. [default: true] -
setIXBRLOutput
If specified, the generated Target Document XBRL output will be written to this path. -
addXuleFile
Executes the rules in the specified XULE file. If a directory or zip archive is specified, all *.xule files in that directory or zip archive will be executed. (add option multiple times to specify more than one XULE file)- Parameters:
filePath- an absolute URL giving the base location of the file.
-
clearXuleFileList
void clearXuleFileList()Clears the list of XULE files. -
addProcessXuleRule
Limits XULE execution to the given rule only (add option multiple times to specify more than one rule) -
clearProcessXuleRuleList
void clearProcessXuleRuleList()Clears the list of process XULE rules. -
enableXuleInstanceNamespaceBindings
void enableXuleInstanceNamespaceBindings(boolean enable) Makes namespace bindings from the XBRL root element available in the XULE processor. [default: false] -
setXuleOutput
Serializes XULE output to outputFile. -
enableXuleReportRuleEvaluations
void enableXuleReportRuleEvaluations(boolean enable) Report XULE rule evaluations as errors, warnings or infos depending on the assigned rule severity. [default: true] -
setXuleStackSize
void setXuleStackSize(int value) Specifies the XULE processor stack size. [default: 1000] -
setTreatInvalidUseOfStandardRoleAsWarning
void setTreatInvalidUseOfStandardRoleAsWarning(boolean value) \ Specifies whether the invalid use of standard roles should be reported only as a warning. Default value is false.\- Parameters:
bTreat- New value\
-
setTreatCustomRoleErrorsAsWarnings
void setTreatCustomRoleErrorsAsWarnings(boolean value) \ Report non-critical XBRL errors related to custom role/arcrole types (for example, missing roleRefs) as warnings. Default value is false.\- Parameters:
bTreat- New value\
-
useExistingCSVMetadata
void useExistingCSVMetadata(boolean value) Specifies whether to use the existing CSV metadata file. The default value is false. -
addTaxonomyToIgnore
Specifies a taxonomy that should not be referenced by a schema reference in the generated xBRL-XML report. -
clearTaxonomiesToIgnoreList
void clearTaxonomiesToIgnoreList()Clear taxonomies that should not be referenced by a schema reference in the generated xBRL-XML report. -
addCSVTable
Specifies an optional CSV table that should be generated in xBRL-CSV output. If nothing is specified, then all tables will be written. -
clearCSVTableList
void clearCSVTableList()All CSV tables will be written. -
setXMLOutputFileName
Writes the XBRL data in OIM xBRL-XML format to file. The File value must be a path to a .xml file. -
setJSONOutputFileName
Writes the XBRL data in OIM xBRL-JSON format to file. The File value must be a path to a .xml file. -
setCSVOutputFileName
Writes the XBRL data in OIM xBRL-CSV format to file. The File value must be a path to a .xml file. -
setOIMXBRLNamespace
Namespace to use instead of the default namespace https://xbrl.org/2021. -
setOIMValidate
void setOIMValidate(boolean value) Specifies whether to perform an XBRL validation of the data model. The default value is false.
-
setSchemaImports(com.altova.raptorxml.XMLValidator.ENUMSchemaImports)instead.