public class XBRLConsistencyAssertion extends XBRLFormulaResource implements EvaluableAssertion, StaticCheck, AssertionEvaluationLocal, XBRLVariablesHolder, HasAssertionId, XBRLMessageContext, HasUncoveredAspectValueResolver
| Modifier and Type | Class and Description |
|---|---|
static class |
XBRLConsistencyAssertion.ConsistencyAssertionType
Indicates the type of the Consistency Assertion.
|
static class |
XBRLConsistencyAssertion.XFConsistencyAssertionInvalidFact
The Class XFConsistencyAssertionInvalidFact.
|
XBRLValidation.Direction| Modifier and Type | Field and Description |
|---|---|
static javax.xml.namespace.QName |
absoluteAcceptanceRadiusQName
The Constant absoluteAcceptanceRadiusQName.
|
static javax.xml.namespace.QName |
ca_absolute_acceptance_radius_expression
Used for the creation of messages.
|
static javax.xml.namespace.QName |
ca_acceptance_radius
Used for the creation of messages.
|
static javax.xml.namespace.QName |
ca_aspect_matched_facts
Used for the creation of messages.
|
static javax.xml.namespace.QName |
ca_proportional_acceptance_radius_expression
Used for the creation of messages.
|
static javax.xml.namespace.QName |
proportionalAcceptanceRadiusQName
The Constant proportionalAcceptanceRadiusQName.
|
static javax.xml.namespace.QName |
resourceName
The Constant resourceName.
|
static javax.xml.namespace.QName |
strict
The Constant strict.
|
nullResourceactuate, ACTUATE, ARC, arcrole, ARCROLE, ETITLE, EXTENDED, from, FROM, href, HREF, label, LABEL, LOCATOR, RESOURCE, role, ROLE, show, SHOW, SIMPLE, title, TITLE, to, TO, TYPECONCEPT_LABEL, CONCEPT_QNAME, EASY_TO_READ, ELEMENT_LABEL, EMPTYRELATIONSHIPSITERATORINSTANCE, EMPTYXMLFRAGMENTITERATORINSTANCE, FACT_CONCEPT_DATATYPE, FACT_CONCEPT_LABEL, FACT_QNAME, HIDE_COMMON_ACCURACY, idQName, NO_POSITION, OrderComparator, OrderComparator2, PERIOD_TYPE, PERIOD_VALUE, SHORT_TEXT, SOURCE_DOCUMENT, XPATH, XPOINTERMODEL_DIMENSIONAL, MODEL_NON_DIMENSIONAL| Constructor and Description |
|---|
XBRLConsistencyAssertion(XBRLFormulaProcessor proc,
XBRLExtendedLink parent,
net.sf.saxon.s9api.XdmNode resNode)
Instantiates a new XBRL consistency assertion.
|
XBRLConsistencyAssertion(XBRLFormulaProcessor proc,
XBRLResource other)
Instantiates a new XBRL consistency assertion.
|
| Modifier and Type | Method and Description |
|---|---|
void |
collectAssertionVariablenames(java.util.HashSet<javax.xml.namespace.QName> allVars)
Collect assertion variablenames.
|
XBRLAssertionResult[] |
evaluateAssertion(XBRLInstance doc)
Required for evaluating the assertion.
|
XBRLAssertionResult[] |
evaluateAssertionType(XBRLInstance instance)
Evaluate assertion type.
|
java.lang.String |
getAbsoluteAcceptanceRadius()
Gets the absolute acceptance radius.
|
int |
getAspectModel()
Returns either XBRLVariablesHolder.MODEL_DIMENSIONAL or XBRLVariablesHolder.MODEL_NON_DIMENSIONAL
|
net.sf.saxon.s9api.XdmItem |
getAssertionContextItem()
Gets the assertion context item.
|
java.lang.String |
getAssertionID()
Returns a text identifying the assertion from the linkbase syntax. this is
either the value of the id attribute or the value of the xlink:label on the
resource
|
java.util.Collection<? extends XBRLVariableResourceUse> |
getAssertionMessageVariables()
Gets the assertion message variables.
|
java.util.Collection<net.sf.saxon.s9api.QName> |
getBindableVariableNames()
Access to a collection of QNames (Saxon s9api QNames) of all variables
that are defined in this XBRLVariablesHolder
|
XBRLConsistencyAssertion.ConsistencyAssertionType |
getConsistencyAssertionType()
Gets the consistency assertion type.
|
java.lang.String |
getErrorIdentification()
Returns an string that identifies the assertion when an error is produced.
|
java.lang.String |
getExpression()
Access to the xpath expression for this consistency assertion.
|
java.util.Collection<XBRLFilterUse> |
getFilters()
Returns a collection of XBRLFilterUse instance representing the use of filters associated to
this XBRLVariablesHolder.
|
java.lang.String |
getProportionalAcceptanceRadius()
Gets the proportional acceptance radius.
|
XBRLResource |
getResource()
Returns the XBRLResource that contains the definition of the assertion.
|
net.sf.saxon.s9api.XdmValue |
getUncoveredAspectValue(int aspect,
javax.xml.namespace.QName dimName)
Used only for the implementation of the xff.uncovered-aspect(aspect, dimName) XPath function
|
XBRLVariableFormulaEvaluable |
getVariableResource(javax.xml.namespace.QName variableName)
Access to the variable resource by its variable name.
|
XBRLVariableResourceUse |
getVariableUse(javax.xml.namespace.QName variableName)
Obtains the instance of the XBRLVariableResourceUse on this variable set using the
variable name.
|
net.sf.saxon.s9api.XdmValue |
getVariableValue(javax.xml.namespace.QName variableName)
Access to the variable value using the variable name.
|
XFIImplicitFilterOptimizer |
getXFIImplicitFilterOptimizer()
Returns or creates the instance of the fact variable optimizer when the
fact variable is used with implicit filtering in a set with more than 2
variables.
|
boolean |
isImplicitFilter()
Returns true if the variable set shall require implicit filtering.
|
boolean |
isStrict()
Checks if is strict.
|
void |
setAbsoluteAcceptanceRadius(java.lang.String expression)
Sets the absolute acceptance radius.
|
void |
setProportionalAcceptanceRadius(java.lang.String expression)
Sets the proportional acceptance radius.
|
void |
staticCheck()
Resources that has static checking implements this interface.
|
getProcessoraddChild, clear, equals, generateLocatorToNode, generateNode, getAttributes, getDTSBase, getFriendlyName, getFriendlyName, getParent, getResourceIdentifier, getRoleType, getType, getValidationReport, getValueKey, hashCode, invalidate, invalidate, isComplexType, isOnValidation, isSimpleType, setComplexType, setDTSBase, setId, setParent, setRole, setRoleType, setSimpleType, setValue, validategetActuate, getArcrole, getFromTxt, getHRef, getLabel, getRole, getShow, getStaticLabel, getSType, getTitle, getToTxt, isRequiredAttribute, isValidAttribute, setActuate, setArcrole, setFrom, setHRef, setLabel, setShow, setSType, setTitle, setToaddAttribute, addFromRelationship, addNamespace, addNamespace, addToRelationship, addXMLChild, changeBase, checkBase, clone, clone, delAttribute, delAttribute, equalXdmValues, evaluateBoolean, evaluateList, evaluateNode, evaluateNumber, evaluateString, generateId, generateNodeNamespacesAndAttributes, generateNodeValue, generatePrefix, getAllAttributes, getAttribute, getAttributeBooleanValue, getAttributeQNameValue, getAttributes, getAttributeStringValue, getAttributeValue, getBase, getBase, getBaseURI, getBooleanValue, getChild, getContainer, getContainerDocumentURI, getDeclaredNamespaces, getDocument, getElements, getElementsHashCode, getFragment, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getGenericLabelText, getId, getLang, getNamespaceURI, getNodeName, getNumberOfAttributes, getNumberOfElements, getNumberOfFromRelationships, getNumberOfToRelationships, getOrGenerateId, getPrefix, getPrefixes, getQNameValue, getRelationshipsBases, getRelationshipsChain, getRelationshipTypes, getStaticContext, getStaticNamespace, getStringValue, getToolTipText, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getValue, getXPathExecutable, getXPathNamespaceContext, getXPathToNode, getXPathToRoot, getXPointerElementScheme, getXPointerElementScheme, getXPointerShorthandScheme, getXPointerToNode, isDead, isNamespaceDefined, isXdmDocumentAttached, objEquals, objHashCode, qNameToString, removeAttribute, removeChild, removeChild, removeFromRelationship, removeToRelationship, removeXMLChild, resetElements, resetHash, resolve_equal2, resolveHRef, resolveHRef, s_equal2, s_equal2, s_equal2, setAttributes, setBase, setDocument, setDocumentAndReload, setElements, setLang, setNamespaceContext, setNamespaces, setNode, setNodeName, setParent, setRegenerateNodeIfnotFound, setValue, setVariablesDefined, size, thin, toString, valueEquals, xEqualgetLabelgetProcessoraddFromRelationship, addToRelationship, getFromRelationships, getToRelationships, removeFromRelationship, removeToRelationshippublic static final javax.xml.namespace.QName resourceName
public static final javax.xml.namespace.QName proportionalAcceptanceRadiusQName
public static final javax.xml.namespace.QName absoluteAcceptanceRadiusQName
public static final javax.xml.namespace.QName strict
public static final javax.xml.namespace.QName ca_aspect_matched_facts
public static final javax.xml.namespace.QName ca_acceptance_radius
public static final javax.xml.namespace.QName ca_absolute_acceptance_radius_expression
public static final javax.xml.namespace.QName ca_proportional_acceptance_radius_expression
public XBRLConsistencyAssertion(XBRLFormulaProcessor proc, XBRLExtendedLink parent, net.sf.saxon.s9api.XdmNode resNode) throws XFValidationException
proc - the procparent - the parentresNode - the res nodeXFValidationException - the XF validation exceptionpublic XBRLConsistencyAssertion(XBRLFormulaProcessor proc, XBRLResource other) throws XFValidationException
proc - the procother - the otherXFValidationException - the XF validation exceptionpublic void setProportionalAcceptanceRadius(java.lang.String expression)
expression - the new proportional acceptance radiuspublic java.lang.String getProportionalAcceptanceRadius()
setProportionalAcceptanceRadius(String) methodpublic java.lang.String getAbsoluteAcceptanceRadius()
setAbsoluteAcceptanceRadius(String) methodpublic void setAbsoluteAcceptanceRadius(java.lang.String expression)
expression - the new absolute acceptance radiuspublic XBRLConsistencyAssertion.ConsistencyAssertionType getConsistencyAssertionType()
public XBRLAssertionResult[] evaluateAssertionType(XBRLInstance instance) throws XFValidationException
AssertionEvaluationLocalevaluateAssertionType in interface AssertionEvaluationLocalinstance - the instanceXFValidationException - the XF validation exceptionpublic java.lang.String getAssertionID()
getAssertionID in interface HasAssertionIdpublic void staticCheck()
throws XFValidationException
StaticCheckIn case of errors, the staticCheck method raises XFValidationException
staticCheck in interface StaticCheckXFValidationException - if static errors occurspublic boolean isStrict()
public int getAspectModel()
XBRLVariablesHoldergetAspectModel in interface XBRLVariablesHolderpublic java.util.Collection<net.sf.saxon.s9api.QName> getBindableVariableNames()
XBRLVariablesHoldergetBindableVariableNames in interface XBRLVariablesHolderpublic java.util.Collection<XBRLFilterUse> getFilters()
XBRLVariablesHoldergetFilters in interface XBRLVariablesHolderpublic XBRLVariableResourceUse getVariableUse(javax.xml.namespace.QName variableName)
The constructor of the XBRLVariableSetResource already calls readVariables so it is almost impossible this method raises XFRuntimeException
variableName - the variable namepublic XBRLVariableFormulaEvaluable getVariableResource(javax.xml.namespace.QName variableName)
XBRLVariablesHoldergetVariableResource in interface XBRLVariablesHoldervariableName - the q varpublic net.sf.saxon.s9api.XdmValue getVariableValue(javax.xml.namespace.QName variableName)
throws XFValidationException
XBRLVariablesHoldergetVariableValue in interface XBRLVariablesHoldervariableName - javax.xml.namespace.QNameXFValidationException - the XF validation exceptionpublic java.util.Collection<? extends XBRLVariableResourceUse> getAssertionMessageVariables()
XBRLMessageContextgetAssertionMessageVariables in interface XBRLMessageContextpublic void collectAssertionVariablenames(java.util.HashSet<javax.xml.namespace.QName> allVars)
XBRLMessageContextcollectAssertionVariablenames in interface XBRLMessageContextallVars - the all varspublic net.sf.saxon.s9api.XdmItem getAssertionContextItem()
XBRLMessageContextgetAssertionContextItem in interface XBRLMessageContextpublic net.sf.saxon.s9api.XdmValue getUncoveredAspectValue(int aspect,
javax.xml.namespace.QName dimName)
throws XFValidationException
HasUncoveredAspectValueResolvergetUncoveredAspectValue in interface HasUncoveredAspectValueResolveraspect - the aspectdimName - the dim nameXFValidationException - the XF validation exceptionpublic boolean isImplicitFilter()
XBRLVariablesHolderisImplicitFilter in interface HasUncoveredAspectValueResolverisImplicitFilter in interface XBRLVariablesHolderpublic XBRLAssertionResult[] evaluateAssertion(XBRLInstance doc) throws XFValidationException
EvaluableAssertionevaluateAssertion in interface EvaluableAssertiondoc - the docXFValidationException - the XF validation exceptionpublic java.lang.String getExpression()
public java.lang.String getErrorIdentification()
EvaluableAssertiongetErrorIdentification in interface EvaluableAssertionpublic XBRLResource getResource()
EvaluableAssertiongetResource in interface EvaluableAssertionpublic XFIImplicitFilterOptimizer getXFIImplicitFilterOptimizer()
XBRLVariablesHoldergetXFIImplicitFilterOptimizer in interface XBRLVariablesHolder