Package com.altova.raptorxml
Interface XBRL
public interface XBRL
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
static enum
static enum
static enum
static class
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAssertionForProcessing
(String assertion) Limits formula execution to the given assertion only (call multiple times to specify more than one)void
addAssertionSetForProcessing
(String assertionSet) Limits formula execution to the given assertion set only (call multiple times to specify more than one)void
addCSVTable
(String value) Specifies an optional CSV table that should be generated in xBRL-CSV output.void
addExternalDTS
(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).void
addFormulaArrayParameter
(String type, String name, Object[] values) Add an array-parameter used in the formula evaluationvoid
addFormulaForProcessing
(String formula) Limits formula execution to the given formula only (call multiple times to specify more than one)void
addFormulaParameter
(String type, String name, String value) Add a parameter used in the formula evaluationvoid
addFormulaParameter
(String type, String name, String value, String namespace) Add a parameter used in the formula evaluationvoid
addFormulaParameterNamespace
(String prefix, String URI) Define a namespace used in the QNames of the parameter names, types or valuesvoid
Limit the available Inline XBRL Transformation Registries to the specified versionvoid
addProcessXuleRule
(String ruleName) Limits XULE execution to the given rule only (add option multiple times to specify more than one rule)void
addPythonScriptFile
(String file) Add another Python script to be executed after a successful validation.void
addTableForProcessing
(String table) Limits table generation to the given table only (call multiple times to specify more than one)void
addTaxonomyPackage
(String path) Specifies the path to an additional taxonomy package (all the method multiple times to specify more than one taxonomy package).void
addTaxonomyToIgnore
(String value) Specifies a taxonomy that should not be referenced by a schema reference in the generated xBRL-XML report.void
addXuleFile
(String filePath) Executes the rules in the specified XULE file.void
All CSV tables will be written.void
Clears the list of paths used for preloading DTS entry points.void
Clear the list of parameters.void
Removes the limiting of the available Inline XBRL Transformation Registries to specific versions (similar to #all option on the CLI)void
Clears the list of process XULE rules.void
Clear the list of Python scripts to be executed after a successful validation.void
Clear taxonomies that should not be referenced by a schema reference in the generated xBRL-XML report.void
Clears the additional taxonomy package path list.void
Clears the list of XULE files.void
enableIXBRLValidateTarget
(boolean enable) Enables XBRL validation of generated Target Document XBRL output.void
enableXuleInstanceNamespaceBindings
(boolean enable) Makes namespace bindings from the XBRL root element available in the XULE processor.void
enableXuleReportRuleEvaluations
(boolean enable) Report XULE rule evaluations as errors, warnings or infos depending on the assigned rule severity.boolean
Evaluates XBRL formulas in an instance file.boolean
Evaluates XBRL Tables in an instance file.Get the last error message from the engine.boolean
isValid()
boolean
Validates the input XBRL data.Read the assertions from the last executionRead the output data of the last formula executionvoid
Deprecated.void
setConceptLabelLinkrole
(String labelLinkrole) Specifies the preferred extended link role to use when rendering concept labels.void
setConceptLabelRole
(String labelRole) Specifies the preferred label role to use when rendering concept labels.void
setCSVOutputFileName
(String value) Writes the XBRL data in OIM xBRL-CSV format to file.void
setDimensionExtensionEnabled
(boolean bEnable) Enable dimension extensions for validationvoid
setEvaluateReferencedParametersOnly
(boolean bEnable) If false, forces evaluation of all parameters even if they are not referenced by any formulas/assertions/tables.void
setExtensibleEnumerationsEnabled
(boolean enable) Enables the XBRL Extensible Enumerations 1.0 extension.void
setFormulaAssertionsAsXML
(boolean bEnable) Enable the XML formatting of the assertion filevoid
setFormulaAssertionsOutput
(String outputFile) Set the location for the formula assertion outputvoid
setFormulaExtensionEnabled
(boolean bEnable) Enable formula extensions for validationvoid
setFormulaOutput
(String outputFile) Set the location for the output of the formula evaluationvoid
setFormulaPreloadSchemas
(boolean bPreload) Enable the schema preloadingvoid
setGenericLabelLinkrole
(String labelLinkrole) Specifies the preferred extended link role to use when rendering generic labels.void
setGenericLabelRole
(String labelRole) Specifies the preferred label role to use when rendering generic labels.void
setInconsistenciesAsErrors
(boolean enable) Treat XBRL inconsistencies as errors [default: false]void
setInconsistenciesLimit
(int value) Specifies the XBRL inconsistencies limit in the range 1-65535.void
setInputFileCollection
(Collection<String> fileCollection) Set a collection of files as input data.void
setInputFileName
(String filePath) Set the input file name.void
setInputFromText
(String inputText) Set the text value for the input datavoid
setInputTextCollection
(Collection<String> stringCollection) Set a collection of strings as inputvoid
setIXBRLOutput
(String outputFile) If specified, the generated Target Document XBRL output will be written to this path.void
setIXBRLTreatAsDocumentSet
(boolean enable) Treat all inputs as a single Inline XBRL Document Set.void
Specifies how Inline XBRL URIs should be transformed in generated Target Documents.void
setIXBRLVersion
(XBRL.ENUMIXBRLVersion version) Specifies the Inline XBRL (iXBRL) version to use.void
setJSONOutputFileName
(String value) Writes the XBRL data in OIM xBRL-JSON format to file.void
setLabelLang
(String labelLang) Specifies the preferred label language to use when rendering labels.void
setOIMValidate
(boolean value) Specifies whether to perform an XBRL validation of the data model.void
setOIMXBRLNamespace
(String value) Namespace to use instead of the default namespace https://xbrl.org/2021.void
setParallelAssessment
(boolean support) Enable/disable parallel schema validity assessment.void
setPreloadSchemas
(boolean preload) Enable/disable schema preloading.void
setPreloadSchemasEnabled
(boolean enable) Preloads XBRL 2.1 specification schemas.void
setPythonScriptFile
(String file) Python script to be executed after a successful validation.void
Configure the usage of the xsi:schemaLocation hintsvoid
Configure the usage of the xsi:schemaLocation hintsvoid
Configure the usage of the xsi:schemaLocation hintsvoid
setTableEliminateEmptyRows
(boolean bEnable) Enable elimination of empty table rows/columns (applies to html output only).void
setTableExtensionEnabled
(boolean bEnable) Enable/Disable the XBRL Table 1.0 extensionvoid
setTableLinkbaseNamespace
(String namespace) Enables loading of table linkbases written with a previous draft specification.void
setTableOutput
(String outputFile) Set the location for the output of the table evaluationvoid
Sets the format of the table output filevoid
setTablePreloadSchemas
(boolean bEnable) Enable/Disable preloading of XBRL Table 1.0 specification schemasvoid
Specifies the path to the TaxonomyPackagesConfig.json file (used by Altova XMLSpy, MapForce and StyleVision).void
setTreatCustomRoleErrorsAsWarnings
(boolean value) \ Report non-critical XBRL errors related to custom role/arcrole types (for example, missing roleRefs) as warnings.void
setTreatInvalidUseOfStandardRoleAsWarning
(boolean value) \ Specifies whether the invalid use of standard roles should be reported only as a warning.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.4void
setUTREnabled
(boolean enable) Enables the XBRL Unit Registry 1.0 extension.void
setValidateDTSOnly
(boolean enable) Validates only the DTS referenced from the given XBRL instance.void
setXincludeSupport
(boolean support) Enable/disable xinclude supportvoid
setXMLOutputFileName
(String value) Writes the XBRL data in OIM xBRL-XML format to file.void
setXuleOutput
(String outputFile) Serializes XULE output to outputFile.void
setXuleStackSize
(int value) Specifies the XULE processor stack size.void
useExistingCSVMetadata
(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.