public class XBRLAspectCoverFilter extends XBRLFormulaFilterBase
| Modifier and Type | Class and Description |
|---|---|
static class |
XBRLAspectCoverFilter.Aspect
The Enum Aspect.
|
XBRLValidation.Direction| Modifier and Type | Field and Description |
|---|---|
static javax.xml.namespace.QName |
aspect
The Constant aspect.
|
static javax.xml.namespace.QName |
dimension
The Constant dimension.
|
static javax.xml.namespace.QName |
excludeDimension
The Constant excludeDimension.
|
static javax.xml.namespace.QName |
qname
The Constant qname.
|
static javax.xml.namespace.QName |
qnameExpression
The Constant qnameExpression.
|
static javax.xml.namespace.QName |
resourceName
The Constant resourceName.
|
lognullResourceactuate, 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, XPOINTER| Constructor and Description |
|---|
XBRLAspectCoverFilter(XBRLFormulaProcessor proc,
XBRLResource other)
Instantiates a new XBRL aspect cover filter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addExcludeDimensions(java.util.HashSet<javax.xml.namespace.QName> dimensionsToExclude)
Adds the exclude dimensions.
|
void |
addIncludeDimensions(java.util.HashSet<javax.xml.namespace.QName> dimensionsToInclude)
Adds the include dimensions.
|
static java.lang.String |
aspectToString(XBRLAspectCoverFilter.Aspect aspect)
Aspect to string.
|
void |
collectVariables(java.util.Collection<javax.xml.namespace.QName> col,
java.util.Collection<net.sf.saxon.s9api.QName> resolved)
This method is called after the filter has been compiled.
|
boolean |
compileFilter(java.util.Collection<net.sf.saxon.s9api.QName> preDefinedVariables)
Collect as much static information as possible about this filter.
|
int |
getFilterWeight()
Returns a number assigned statically to every filter type in order
to facilitate evaluate the right order in which filters should be
concatenated in an XPath expression or Boolean Filter.
|
int |
getRelatedAspect(boolean bIsCover)
Returns a constant value indicating the aspect covered by this filter
Constants are defined in the CommonAspectRule class.
|
java.lang.String |
getXPathTerm(java.util.Collection<net.sf.saxon.s9api.QName> preDefinedVariables)
Access to the XPath expression for this filter according to the
formula specification.
|
boolean |
isCoveringDimension(javax.xml.namespace.QName dimName,
boolean bIsCover)
Checks if is covering dimension.
|
static XBRLAspectCoverFilter.Aspect |
parseAspect(java.lang.String value)
Converts from string representation to the aspect value in the enumeration.
|
int |
processFilters(java.util.Vector<XBRLFilterUse> vFilters,
boolean bIsCover)
'override' the cover state of aspects resulting from the application of the other filters.
|
compileFilter, isCompiled, toStringgetProcessoraddChild, 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, valueEquals, xEqualgetLabeladdFromRelationship, addToRelationship, getFromRelationships, getToRelationships, removeFromRelationship, removeToRelationshippublic static final javax.xml.namespace.QName resourceName
public static final javax.xml.namespace.QName aspect
public static final javax.xml.namespace.QName dimension
public static final javax.xml.namespace.QName excludeDimension
public static final javax.xml.namespace.QName qname
public static final javax.xml.namespace.QName qnameExpression
public XBRLAspectCoverFilter(XBRLFormulaProcessor proc, XBRLResource other)
proc - the procother - the otherpublic static XBRLAspectCoverFilter.Aspect parseAspect(java.lang.String value)
value - the valuepublic static java.lang.String aspectToString(XBRLAspectCoverFilter.Aspect aspect)
aspect - the aspectpublic boolean compileFilter(java.util.Collection<net.sf.saxon.s9api.QName> preDefinedVariables)
preDefinedVariables - the pre defined variablespublic java.lang.String getXPathTerm(java.util.Collection<net.sf.saxon.s9api.QName> preDefinedVariables)
throws XFValidationException
XBRLFormulaFilterpreDefinedVariables - set of pre defined variables in the variable setXFValidationException - if the variable filter XPath expression cannot be compiled for any reasonpublic int getRelatedAspect(boolean bIsCover)
XBRLFormulaFilterbIsCover - boolean value indicating the value of the cover attribute on the arc
connecting the variable with the filterpublic void collectVariables(java.util.Collection<javax.xml.namespace.QName> col,
java.util.Collection<net.sf.saxon.s9api.QName> resolved)
XBRLFormulaFiltercol - the collection where variables will be appendedresolved - the resolvedpublic int getFilterWeight()
XBRLFormulaFilterA typical implementation should just do:
XBRLFilterOrderTool.getFilterWeight(getClass());and make sure the class is defined in the XBRLFilterOrderTool
public int processFilters(java.util.Vector<XBRLFilterUse> vFilters, boolean bIsCover) throws XFValidationException
vFilters - Vector of all filters to be considered together for the computation of the final result. One of the filters is this filterbIsCover - this is the value of the cover="true" or cover="false" attribute on the relationship linking this filterUse with the variable setXFValidationException - the XF validation exceptionpublic boolean isCoveringDimension(javax.xml.namespace.QName dimName,
boolean bIsCover)
dimName - the dim namebIsCover - the b is coverpublic void addIncludeDimensions(java.util.HashSet<javax.xml.namespace.QName> dimensionsToInclude)
dimensionsToInclude - the dimensions to includepublic void addExcludeDimensions(java.util.HashSet<javax.xml.namespace.QName> dimensionsToExclude)
dimensionsToExclude - the dimensions to exclude