public class XDTProcessor extends java.lang.Object implements XBRLPlugInProcessor
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
all_arcrole_URI
http://xbrl.org/int/dim/arcrole/all
|
static javax.xml.namespace.QName |
closedQName
xbrldt:closed.
|
static javax.xml.namespace.QName |
contextElement
xbrldt:contextElement.
|
static java.lang.String |
dimension_default_arcrole_URI
http://xbrl.org/int/dim/arcrole/dimension-default
|
static java.lang.String |
dimension_domain_arcrole_URI
http://xbrl.org/int/dim/arcrole/dimension-domain
|
static javax.xml.namespace.QName |
dimensionItemQName
xbrldt:dimensionItem.
|
static javax.xml.namespace.QName |
dimensionQName
"dimension" as a QName in the no namespace.
|
static java.lang.String |
domain_member_arcrole_URI
http://xbrl.org/int/dim/arcrole/domain-member
|
static javax.xml.namespace.QName |
explicitMemberContainerQName
xbrldi:explicitMember.
|
static java.lang.String |
hypercube_dimension_arcrole_URI
http://xbrl.org/int/dim/arcrole/hypercube-dimension
|
static javax.xml.namespace.QName |
hypercubeItemQName
xbrldt:hypercubeItem.
|
java.util.logging.Logger |
logger
The logger.
|
static java.lang.String |
notAll_arcrole_URI
http://xbrl.org/int/dim/arcrole/notAll
|
static java.lang.String |
PROCESSORNAME
The Constant PROCESSORNAME.
|
static javax.xml.namespace.QName |
targetRole
xbrldt:targetrole.
|
static javax.xml.namespace.QName |
typedDomainRefQName
xbtldt:typedDomainRef.
|
static javax.xml.namespace.QName |
typedMemberContainerQName
xbrldi:typedMember.
|
static javax.xml.namespace.QName |
usableQName
"usable" as a QName in the no namespace.
|
static int |
XDT_07_09_2009
Constant indicating that the processor is running under rules written in the specification written as of September 7th 2009.
|
static int |
XDT_18_09_2006
Constant indicating that the processor is running under rules written in the specification written as of September 18th 2006.
|
static int |
XDT_25_01_2012
Constant indicating that the processor is running under rules written in the
specification written as of January 1st 2012.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Called when the DTSContainer's clear method is called.
|
void |
configure(java.util.Properties properties)
Configures the processor according with the properties passed in in the
properties parameter.
|
static XDTProcessor |
create(DTSContainer dts)
Creates the XDTProcessor instance and stores the instance in the DTSContaniner
If an XDTProcessor is already registered for this DTSContainer the already
created instance is returned.
|
XBRLArcroleType |
getArcroleTypeAll()
Gets the arcrole type all.
|
XBRLArcroleType |
getArcroleTypeDimensionDefault()
Gets the arcrole type dimension default.
|
XBRLArcroleType |
getArcroleTypeDimensionDomain()
Gets the arcrole type dimension domain.
|
XBRLArcroleType |
getArcroleTypeDomainMember()
Gets the arcrole type domain member.
|
XBRLArcroleType |
getArcroleTypeHypercubeDimension()
Gets the arcrole type hypercube dimension.
|
XBRLArcroleType |
getArcroleTypeNotAll()
Gets the arcrole type not all.
|
DTSContainer |
getContainer()
Gets the container.
|
int |
getContainerForPrimaryItemAndDimension(javax.xml.namespace.QName dimension,
javax.xml.namespace.QName primaryItem)
Helper function to find the context container associated to a dimension under the light
of a primary item.
|
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.util.Hashtable<javax.xml.namespace.QName,XMLFragment> |
getDimData(XBRLDimensionsContainer dimData,
boolean throwValidationExceptions)
Process a fact item and one of the dimensions container (segment or scenario) and collects
all dimensional information in there.
|
java.util.Hashtable<javax.xml.namespace.QName,XMLFragment> |
getDimData(XBRLFactItem fact,
int contextElement,
boolean bThrowValidationExceptions)
Process a fact item in an XBRL report and collects data from the
context according to dimensions defined in the
hypercubes.
|
XDTDimension |
getDimension(javax.xml.namespace.QName dimension)
Access to an XDTDimension from its dimension name or null if the QName does
not refer to a dimension in the loaded DTS.
|
java.util.Iterator<XDTDimension> |
getDimensions()
Access to the list of all dimensions defined in the DTS.
|
static XMLFragment |
getExplicitDimFragment(DTSContainer dts,
javax.xml.namespace.QName dimension,
javax.xml.namespace.QName member)
Helper method to create the XMLFragment container for an explicit dimension.
|
java.lang.String |
getName()
Returns the processor name so it can be written in validation reports.
|
java.lang.Integer |
getPreferredContainer(javax.xml.namespace.QName elementQName,
javax.xml.namespace.QName qDim,
int container)
Gets the preferred container.
|
XDTPrimaryItem |
getPrimaryItem(javax.xml.namespace.QName q)
Returns the XDTPrimatyItem object for the given QName or null if the item does not
have dimensions (associated hypercubes or dimensional information).
|
java.util.Iterator<javax.xml.namespace.QName> |
getPrimaryItems()
Returns an iterator over QNames that are primary items in this dimensional DTS.
|
static XBRLRoleType |
getTargetRole(XBRLRelationship rel)
Returns the XBRLRoleType pointed to by the xbrldt:targetRole attribute on the relationship rel.
|
static XMLFragment |
getTypedDimFragment(DTSContainer dts,
javax.xml.namespace.QName dimension,
net.sf.saxon.s9api.XdmValue value)
Helper method to create the XMLFragment container for a typed dimension.
|
static XMLFragment |
getTypedDimFragment(DTSContainer dts,
javax.xml.namespace.QName dimension,
XMLFragment value)
Helper method to create the XMLFragment container for a typed dimension.
|
static java.lang.Boolean |
getUsable(XBRLRelationship rel)
Gets the usable.
|
int |
getXDTVersion()
This functions returns an integer constant that is cached in the XDTProcessor
and indicates the version of the XDTSpecification to be used.
|
static boolean |
isClosed(XBRLRelationship rel)
Returns the value or default value of the xbrldt:closed attribute on the relationship
indicated in the rel parameter.
|
boolean |
isHidden()
A hidden processor will not pop-up in the GUI tabs.
|
void |
removeDomainMember(XMLFragment fragment)
Removes the domain member.
|
XBRLValidationReport |
validate()
Validates the content of the DTS according to the rules indicated in
this plug-in processor.
|
XBRLValidationReport |
validate(XBRLDocument doc)
Validates all facts in the instance document.
|
public static final java.lang.String PROCESSORNAME
public static final javax.xml.namespace.QName hypercubeItemQName
public static final javax.xml.namespace.QName dimensionItemQName
public static final javax.xml.namespace.QName explicitMemberContainerQName
public static final javax.xml.namespace.QName typedMemberContainerQName
public static final javax.xml.namespace.QName typedDomainRefQName
public static final javax.xml.namespace.QName dimensionQName
public static final javax.xml.namespace.QName usableQName
public static final javax.xml.namespace.QName targetRole
public static final javax.xml.namespace.QName closedQName
public static final javax.xml.namespace.QName contextElement
public static final java.lang.String all_arcrole_URI
public static final java.lang.String notAll_arcrole_URI
public static final java.lang.String hypercube_dimension_arcrole_URI
public static final java.lang.String domain_member_arcrole_URI
public static final java.lang.String dimension_domain_arcrole_URI
public static final java.lang.String dimension_default_arcrole_URI
public java.util.logging.Logger logger
public static final int XDT_07_09_2009
public static final int XDT_18_09_2006
public static final int XDT_25_01_2012
public static XDTProcessor create(DTSContainer dts) throws com.rs.lic.LicenseVerificationException, XBRLValidationException
dts - the dtscom.rs.lic.LicenseVerificationException - the license verification exceptionXBRLValidationException - the XBRL validation exceptionpublic void configure(java.util.Properties properties)
XBRLPlugInProcessorconfigure in interface XBRLPlugInProcessorproperties - the propertiespublic XDTPrimaryItem getPrimaryItem(javax.xml.namespace.QName q)
q - QName the concept QNamepublic java.util.Iterator<javax.xml.namespace.QName> getPrimaryItems()
public java.util.Iterator<XDTDimension> getDimensions()
public void removeDomainMember(XMLFragment fragment)
fragment - the fragmentpublic static XBRLRoleType getTargetRole(XBRLRelationship rel)
If the relationship does not contains a xbrldt:targetRole attribute, the returned value is null.
rel - XBRLRelationshippublic DTSContainer getContainer()
public XBRLArcroleType getArcroleTypeAll()
public XBRLArcroleType getArcroleTypeDomainMember()
public XBRLArcroleType getArcroleTypeHypercubeDimension()
public XBRLArcroleType getArcroleTypeNotAll()
public XBRLArcroleType getArcroleTypeDimensionDomain()
public XBRLArcroleType getArcroleTypeDimensionDefault()
public int getXDTVersion()
DTSContainer.USE_XDT_1_0_AS_OF_7_SEP_2009 and
DTSContainer.USE_XDT_1_0_AS_OF_18_SEP_2006 and
DTSContainer.USE_XDT_1_0_AS_OF_25_JAN_2012
The value -1 is returned in case the property XDT_VERSION is defined for the DTSContainer but the property value is not any of the registered property values
public java.util.Hashtable<javax.xml.namespace.QName,XMLFragment> getDimData(XBRLFactItem fact, int contextElement, boolean bThrowValidationExceptions)
fact - the factcontextElement - the context element, either XDTHypercubeUse.SCENARIO or XDTHypercubeUse.SEGMENTbThrowValidationExceptions - the b throw validation exceptionspublic java.util.Hashtable<javax.xml.namespace.QName,XMLFragment> getDimData(XBRLDimensionsContainer dimData, boolean throwValidationExceptions)
dimData - the XBRLDimensionsContainerthrowValidationExceptions - the throw validation exceptionspublic XBRLValidationReport validate(XBRLDocument doc)
validate in interface XBRLPlugInProcessordoc - the docpublic 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 XDTDimension getDimension(javax.xml.namespace.QName dimension)
dimension - the dimensionpublic static java.lang.Boolean getUsable(XBRLRelationship rel)
rel - the relpublic static boolean isClosed(XBRLRelationship rel)
rel - relationshippublic java.lang.String getDescription()
XBRLPlugInProcessorgetDescription in interface XBRLPlugInProcessorpublic java.lang.String getName()
XBRLPlugInProcessorgetName in interface XBRLPlugInProcessorpublic static java.lang.String getDescriptionStatic()
public static XMLFragment getExplicitDimFragment(DTSContainer dts, javax.xml.namespace.QName dimension, javax.xml.namespace.QName member)
dts - The DTSContainer the new fragment will belong todimension - the QName of the dimension container. Note it is not validated the dimension exist on the DTSmember - the QName value for the dimension. Note it is not validated the qname is a dimension member.public static XMLFragment getTypedDimFragment(DTSContainer dts, javax.xml.namespace.QName dimension, XMLFragment value)
dts - The DTSContainer the new fragment will belong todimension - the QName of the dimension container. Note it is not validated the dimension exist on the DTSvalue - the typed dimension child elementpublic static XMLFragment getTypedDimFragment(DTSContainer dts, javax.xml.namespace.QName dimension, net.sf.saxon.s9api.XdmValue value)
dts - The DTSContainer the new fragment will belong todimension - the QName of the dimension container. Note it is not validated the dimension exist on the DTSvalue - the typed dimension child elementpublic int getContainerForPrimaryItemAndDimension(javax.xml.namespace.QName dimension,
javax.xml.namespace.QName primaryItem)
dimension - the dimensionprimaryItem - the primary itemXDTHypercubeUse.SCENARIO, XDTHypercubeUse.SEGMENT or XDTHypercubeUse.UNDEFINED in case the primary item
is open and does not contain a explicit container for the dimension or any other reasonpublic java.lang.Integer getPreferredContainer(javax.xml.namespace.QName elementQName,
javax.xml.namespace.QName qDim,
int container)
elementQName - the element q nameqDim - the q dimcontainer - the containerpublic boolean isHidden()
XBRLPlugInProcessorisHidden in interface XBRLPlugInProcessorpublic void clear()
XBRLPlugInProcessorclear in interface XBRLPlugInProcessor