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.
|
XMLFragment.NodeNameIterator<T extends XMLFragment>, XMLFragment.NodeTypeIterator<T extends XMLFragment>
XBRLVariablesHolder.ModelType
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.
|
nullResource
actuate, ARC, arcrole, ETITLE, EXTENDED, from, href, label, LOCATOR, RESOURCE, role, show, SIMPLE, title, to, X_ACTUATE, X_ARCROLE, X_FROM, X_HREF, X_LABEL, X_ROLE, X_SHOW, X_TITLE, X_TO, X_TYPE, XLINKPREFIX
ADD_NAMESPACE_INHERIT, baseQName, CONCEPT_LABEL, CONCEPT_QNAME, EASY_TO_READ, ELEMENT_LABEL, EMPTYRELATIONSHIPSITERATORINSTANCE, EMPTYXMLFRAGMENTITERATORINSTANCE, FACT_CONCEPT_DATATYPE, FACT_CONCEPT_LABEL, FACT_QNAME, FACT_VALUE, HIDE_COMMON_ACCURACY, idQName, langQName, nil, NO_POSITION, OrderComparator, OrderComparator2, OrderComparatorReverse, PERIOD_BOP, PERIOD_TYPE, PERIOD_VALUE, RELATIONSHIP_TYPE, RESOURCE_TYPE, SHORT_TEXT, SOURCE_DOCUMENT, XPATH, XPOINTER
Constructor and Description |
---|
XBRLConsistencyAssertion(XBRLFormulaProcessor proc,
XBRLResource other)
Instantiates a new XBRL consistency assertion.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear.
|
void |
collectAssertionVariablenames(java.util.HashSet<javax.xml.namespace.QName> allVars)
Collect assertion variablenames.
|
XBRLAssertionResult[] |
evaluateAssertion(XBRLInstance doc,
XBRLEvaluationContext evalContext)
Evaluate assertion.
|
XBRLAssertionResult[] |
evaluateAssertionType(XBRLInstance instance,
XBRLEvaluationContext evalContext)
Evaluate assertion type.
|
java.lang.String |
getAbsoluteAcceptanceRadius()
Gets the absolute acceptance radius.
|
XBRLVariablesHolder.ModelType |
getAspectModel()
Gets the aspect model.
|
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()
Gets the bindable variable names.
|
XBRLConsistencyAssertion.ConsistencyAssertionType |
getConsistencyAssertionType()
Gets the consistency assertion type.
|
java.lang.String |
getErrorIdentification()
Gets the error identification.
|
java.lang.String |
getExpression()
Access to the xpath expression for this consistency assertion.
|
java.util.Collection<XBRLFilterUse> |
getFilters()
Gets the filters.
|
net.sf.saxon.tree.linked.NodeImpl |
getFirstChild() |
net.sf.saxon.tree.linked.NodeImpl |
getLastChild() |
int |
getNumberOfChildren() |
java.lang.String |
getProportionalAcceptanceRadius()
Gets the proportional acceptance radius.
|
XBRLResource |
getResource()
Gets the resource.
|
net.sf.saxon.s9api.XdmValue |
getUncoveredAspectValue(Aspect aspect,
Aspect aspectDim)
Gets the uncovered aspect value.
|
java.util.Collection<net.sf.saxon.value.QNameValue> |
getUncoveredDimensionalAspects()
Gets the uncovered dimensional aspects.
|
java.util.Collection<net.sf.saxon.value.StringValue> |
getUncoveredNonDimensionalAspects()
Gets the uncovered non dimensional aspects.
|
XBRLVariableFormulaEvaluable |
getVariableResource(javax.xml.namespace.QName variableName)
Gets the variable resource.
|
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)
Gets the variable value.
|
XFIImplicitFilterOptimizer |
getXFIImplicitFilterOptimizer()
Gets the XFI implicit filter optimizer.
|
boolean |
hasChildNodes() |
boolean |
isImplicitFilter()
Checks if is implicit filter.
|
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()
Static check.
|
addRequiredVariable, clearVariableSetDicoveredDuringExpressionCompilation, getProcessor, getRequiredVariableSetDiscoveredDuringExpressionCompilation
addChild, clone, clone, equals, generateNode, getAttributes, getCode, getDTSBase, getFriendlyName, getFriendlyName, getFriendlyName, getParentXBRL, getResourceIdentifier, getRoleType, getType, getValidationReport, getValueKey, hashCode, invalidate, invalidate, isComplexType, isHashDependsOnAtribute, isOnValidation, isSimpleType, setCode, setComplexType, setDTSBase, setId, setRawParentXBRL, setRole, setRoleType, setSimpleType, setValue, validate
getActuate, getArcrole, getFromTxt, getHRef, getHRefDocument, getHRefDocumentResolved, getHRefResolved, getLabel, getRawHRef, getReference, getRole, getShow, getStaticLabel, getSType, getTitle, getToTxt, isRequiredAttribute, isValidAttribute, setActuate, setArcrole, setFrom, setHRef, setLabel, setShow, setSType, setTitle, setTo, validateXPointer
addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addChildArray, addChildAt, addChildNode, addChildNodeArray, addChildNodeAt, addChildNodeInBatch, addComment, addFromRelationship, addNamespace, addNamespace, addPropertyChangeListener, addToRelationship, changeBase, checkBase, childExists, commitBatch, copy, createComment, delAttribute, delAttribute, delete, equalXdmValues, findFirstNodeOfClass, findPosition, firePropertyChangeEvent, generateId, generateLocatorToNode, generatePrefix, getAllAttributes, getAttribute, getAttributeAtomicValue, getAttributeBooleanValue, getAttributeGroundedValue, getAttributeQNameValue, getAttributeValue, getBase, getBase, getBooleanValue, getChildren, getChildStringValue, getConfiguration, getContainer, getContainerDocumentURI, getDocument, getElement, getElement, getElements, getFirstChildNoComment, getFragment, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getId, getInScopeNamespaces, getLang, getLastChildNoComment, getNamePool, getNamespaceBinding, getNamespaceURI, getNextSiblingNoComment, getNodeName, getNthElement, getNumberOfElements, getNumberOfFromRelationships, getNumberOfToRelationships, getOrGenerateId, getParentDocument, getPrefix, getPrefixes, getPropertyChangeListeners, getQNameValue, getRelationshipsBases, getRelationshipsChain, getRelationshipTypes, getStaticNamespace, getStringValue, getToolTipText, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getValue, getXPath, getXPathFromXPointer, getXPathNamespaceContext, getXPathToRoot, getXPointerElementScheme, getXPointerElementScheme, getXPointerShorthandScheme, getXPointerXPath2Scheme, initialise, internalToString, isAttribute, isChangeHashEnabled, isDead, isEmpty, isNamespaceDefined, isNil, moveNamespacesUp, objEquals, objHashCode, reindex, removeChild, removeChildNode, removeFromRelationship, removeNamespace, removePropertyChangeListener, removeToRelationship, replace, replaceChild, replaceStringValue, resetElements, resolveHRef, s_equal2_xp2, s_equal2_xp2, s_equal2, s_equal2, s_equal2, s_equal2, setAttributeList, setAttributes, setBase, setChildrenClone, setDirty, setElements, setLang, setModified, setNamespaceDeclarations, setNamespaces, setNil, setNodeName, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, valueEquals, xEqual
addAttribute, addNamespace, generateId, getAttributeList, getAttributeValue, getAttributeValue, getBaseURI, getColumnNumber, getDeclaredNamespaces, getDocumentRoot, getLineNumber, getNameCode, getNamespaceList, getNodeKind, getRoot, getSchemaType, getSystemId, getTypeAnnotation, getURIForPrefix, gsetAttributeCollection, isId, isInScopeNamespace, isNilled, iteratePrefixes, removeAttribute, removeTypeAnnotation, rename, setLocation, setNameCode, setNamespaceList, setSystemId, setTypeAnnotation
atomize, compareOrder, comparePosition, getDisplayName, getDocumentNumber, getFingerprint, getLocalPart, getNextInDocument, getNextSibling, getParent, getPhysicalRoot, getPrefix, getPreviousInDocument, getPreviousSibling, getPublicId, getSiblingPosition, getSuccessorElement, getURI, head, insertSiblings, isDeleted, isIdref, isSameNodeInfo, iterate, iterateAxis, iterateAxis, newBuilder, replace
getLabel
getProcessor
public 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, 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, XBRLEvaluationContext evalContext) throws XFValidationException
evaluateAssertionType
in interface AssertionEvaluationLocal
instance
- the instanceevalContext
- the eval contextXFValidationException
- the XF validation exceptionpublic java.lang.String getAssertionID()
getAssertionID
in interface HasAssertionId
public void staticCheck() throws XFValidationException
staticCheck
in interface StaticCheck
XFValidationException
- the XF validation exceptionpublic boolean isStrict()
public XBRLVariablesHolder.ModelType getAspectModel()
getAspectModel
in interface XBRLVariablesHolder
public java.util.Collection<net.sf.saxon.s9api.QName> getBindableVariableNames()
getBindableVariableNames
in interface XBRLVariablesHolder
public java.util.Collection<XBRLFilterUse> getFilters()
getFilters
in interface XBRLVariablesHolder
public XBRLVariableResourceUse getVariableUse(javax.xml.namespace.QName variableName)
The constructor of the XBRLVariableSetResource already calls readVariables so it is almost impossible this method raises XFRuntimeException
getVariableUse
in interface XBRLMessageContext
variableName
- the variable namepublic XBRLVariableFormulaEvaluable getVariableResource(javax.xml.namespace.QName variableName)
getVariableResource
in interface XBRLVariablesHolder
variableName
- the variable namepublic net.sf.saxon.s9api.XdmValue getVariableValue(javax.xml.namespace.QName variableName) throws XFValidationException
getVariableValue
in interface XBRLVariablesHolder
variableName
- the variable nameXFValidationException
- the XF validation exceptionpublic java.util.Collection<? extends XBRLVariableResourceUse> getAssertionMessageVariables()
getAssertionMessageVariables
in interface XBRLMessageContext
public void collectAssertionVariablenames(java.util.HashSet<javax.xml.namespace.QName> allVars)
collectAssertionVariablenames
in interface XBRLMessageContext
allVars
- the all varspublic net.sf.saxon.s9api.XdmItem getAssertionContextItem()
getAssertionContextItem
in interface XBRLMessageContext
public net.sf.saxon.s9api.XdmValue getUncoveredAspectValue(Aspect aspect, Aspect aspectDim) throws XFValidationException
getUncoveredAspectValue
in interface XBRLMessageContext
getUncoveredAspectValue
in interface HasUncoveredAspectValueResolver
aspect
- the aspectaspectDim
- the aspect dimXFValidationException
- the XF validation exceptionpublic boolean isImplicitFilter()
isImplicitFilter
in interface XBRLMessageContext
isImplicitFilter
in interface HasUncoveredAspectValueResolver
isImplicitFilter
in interface XBRLVariablesHolder
public java.util.Collection<net.sf.saxon.value.QNameValue> getUncoveredDimensionalAspects()
getUncoveredDimensionalAspects
in interface XBRLMessageContext
public java.util.Collection<net.sf.saxon.value.StringValue> getUncoveredNonDimensionalAspects()
getUncoveredNonDimensionalAspects
in interface XBRLMessageContext
public XBRLAssertionResult[] evaluateAssertion(XBRLInstance doc, XBRLEvaluationContext evalContext) throws XFValidationException
evaluateAssertion
in interface EvaluableAssertion
doc
- the docevalContext
- the eval contextXFValidationException
- the XF validation exceptionpublic java.lang.String getExpression()
public java.lang.String getErrorIdentification()
getErrorIdentification
in interface EvaluableAssertion
public XBRLResource getResource()
getResource
in interface EvaluableAssertion
getResource
in interface XBRLVariablesHolder
getResource
in class XBRLFormulaResource
public XFIImplicitFilterOptimizer getXFIImplicitFilterOptimizer()
getXFIImplicitFilterOptimizer
in interface XBRLVariablesHolder
public void clear() throws java.lang.Throwable
clear
in class XBRLFormulaResource
java.lang.Throwable
- the throwablepublic final boolean hasChildNodes()
hasChildNodes
in interface net.sf.saxon.om.NodeInfo
hasChildNodes
in class net.sf.saxon.tree.linked.NodeImpl
public final int getNumberOfChildren()
public final net.sf.saxon.tree.linked.NodeImpl getFirstChild()
getFirstChild
in interface net.sf.saxon.tree.util.SteppingNode<net.sf.saxon.tree.linked.NodeImpl>
getFirstChild
in class net.sf.saxon.tree.linked.NodeImpl
public final net.sf.saxon.tree.linked.NodeImpl getLastChild()
getLastChild
in class net.sf.saxon.tree.linked.NodeImpl
Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa