public class XBRLInstanceRootNode extends XBRLDocumentRootNode implements XBRLFactsList
Modifier and Type | Class and Description |
---|---|
static interface |
XBRLInstanceRootNode.ForEachContext
Class with method to be called for each context in the instance.
|
static interface |
XBRLInstanceRootNode.ForEachFact
Class with method to be called for each fact in the instance.
|
static interface |
XBRLInstanceRootNode.ForEachUnit
Class with method to be called for each unit in the instance.
|
XMLFragment.NodeNameIterator<T extends XMLFragment>, XMLFragment.NodeTypeIterator<T extends XMLFragment>
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
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
XBRLFact fact)
Adds the.
|
boolean |
add(XBRLFact fact)
Adds the.
|
void |
addArcroleRef(XBRLArcroleRef newArcroleRef)
Adds the arcrole ref.
|
void |
addChild(XMLFragment newChild)
Adds the child.
|
boolean |
addContext(XBRLContext ctx)
Adds a new context to the instance document.
|
void |
addFootnoteLinkbase(FootnoteLinkbase newFootnoteLinkbase)
Adds a footnote linkbase.
|
void |
addLinkbaseRef(XBRLLinkbaseRef newLinkbaseRef)
Adds the linkbase ref.
|
void |
addRoleRef(XBRLRoleRef newRoleRef)
Adds the roleRef.
|
void |
addSchemaRef(XBRLSchemaRef newSchemaRef)
Adds the schema ref.
|
boolean |
addUnit(XBRLUnit unit)
Adds a unit to the XBRL report.
|
void |
addXBRLDocument(XBRLDocument doc,
XBRLRoleAndArcroleTypes roleOrArcrole)
Attach a new XBRLDocument directly in the instance regardless it is
already somewhere under the wood of the DTS.
|
void |
addXBRLDocumentIfNotInDTS(XBRLDocument doc,
XBRLRoleAndArcroleTypes roleOrArcrole)
Attach a new XBRLDocument to the instance document using
a linkbaseRef or schemaRef only if the document
is not already in the set of documents that can be discovered from
this instance document existing DTS entries.
|
void |
clear()
Clear.
|
void |
clearDTSReferences()
Removes all schemas, linkbases, roleRefs, arcroleRefs etc in the DTS of this instance document.
|
XBRLInstanceRootNode |
clone()
Clone.
|
XBRLInstanceRootNode |
clone(DTSContainer dts)
Clone.
|
void |
copyHistory(XBRLInstanceRootNode instanceRootNode)
Copy history.
|
void |
forEachContext(XBRLInstanceRootNode.ForEachContext lambda)
Locks the instance document and executes the
lambda function
on each one of the XBRLContexts in the instance |
void |
forEachContextUnsafe(XBRLInstanceRootNode.ForEachContext lambda)
Executes the
lambda function
on each one of the XBRLContexts in the instance but does
not lock the instance document for modifications. |
void |
forEachFact(XBRLInstanceRootNode.ForEachFact lambda)
Locks the instance document and executes the
lambda function
on each one of the XBRLFacts in the instance |
void |
forEachFactUnsafe(XBRLInstanceRootNode.ForEachFact lambda)
Executes the
lambda function
on each one of the XBRLFacts in the instance (at root
level. |
void |
forEachUnit(XBRLInstanceRootNode.ForEachUnit lambda)
Locks the instance document and executes the
lambda function
on each one of the XBRLUnits in the instance |
void |
forEachUnitUnsafe(XBRLInstanceRootNode.ForEachUnit lambda)
Executes the
lambda function
on each one of the XBRLUnit in the instance but does
not lock the instance document for modifications. |
XBRLInstanceRootNode |
generateRootNode()
Generate root node.
|
XBRLFact |
get(int index)
Gets the.
|
java.util.Iterator<XBRLArcroleRef> |
getArcroleRefs()
Obtains an iterator over link:arcroleRef on this instance .
|
XBRLContext |
getContextById(java.lang.String id)
Obtains a context from the context limbo using the context id.
|
XBRLContext |
getContextCompatible(XBRLContext otherContext)
Returns an existing context that is c-equal to the context passed in as the parameter.
|
java.util.Iterator<XBRLContext> |
getContexts()
Access to all contexts in the XBRL Instance including contexts in the limbo (not in the instance but)
in the scope of the instance.
|
java.util.Iterator<java.net.URI> |
getDTSs()
Obtains an iterator over the URIs of files that are in the DTS of this instance document.
|
XBRLFact |
getFact(net.sf.saxon.s9api.XdmNode factNode)
Deprecated.
|
java.util.Iterator<XBRLFact> |
getFacts()
This method is the same as
iterator() . |
net.sf.saxon.tree.linked.NodeImpl |
getFirstChild() |
XBRLInstance |
getInstance()
Gets the single instance of XBRLInstanceRootNode.
|
java.util.Iterator<XBRLFactItem> |
getItems()
Gets the items.
|
java.util.Iterator<XBRLFactItem> |
getItems(XBRLItem itemFrom)
Gets the items.
|
java.util.Iterator<XBRLFactItem> |
getItemsSg(XBRLItem itemFrom)
Gets the items sg.
|
net.sf.saxon.tree.linked.NodeImpl |
getLastChild() |
java.util.Iterator<XBRLLinkbaseRef> |
getLinkbaseRefs()
Obtains an iterator over link:linkbaseRef on this instance .
|
int |
getNumberOfChildren() |
int |
getNumberOfContexts()
Returns the number of contexts in this instance document.
|
int |
getNumberOfItems()
Gets the number of items.
|
int |
getNumberOfTuples()
Gets the number of tuples.
|
int |
getNumberOfUnits()
Returns the number of units in this instance document.
|
XMLFragment |
getParentXBRL()
Gets the parent XBRL.
|
java.util.Iterator<XBRLRoleRef> |
getRoleRefs()
Obtains an iterator over link:roleRef on this instance .
|
java.util.Iterator<XBRLSchemaRef> |
getSchemaRefs()
Obtains an iterator over link:schemaRef on this instance .
|
java.util.Iterator<XBRLFactTuple> |
getTuples()
Gets the tuples.
|
java.util.Iterator<XBRLFactTuple> |
getTuples(XBRLTuple tupleFrom)
Gets the tuples.
|
java.util.Iterator<XBRLFactTuple> |
getTuplesSg(XBRLTuple tupleFrom)
Gets the tuples sg.
|
XBRLUnit |
getUnitById(java.lang.String id)
Obtains an unit from the units limbo using the unit id.
|
XBRLUnit |
getUnitCompatible(XBRLUnit otherUnit)
Returns an existing unit that is u-equal to the unit passed in as the parameter.
|
java.util.Iterator<XBRLUnit> |
getUnits()
Access to all units in the XBRL Instance.
|
java.util.Iterator<java.net.URI> |
getXBRLDocuments(XBRLDocument.XBRLDocumentType type)
Returns an iterator over documents included in the DTS by this instance that are of the specified type.
|
boolean |
hasChildNodes() |
int |
hashCode()
Hash code.
|
int |
indexOf(XBRLFact fact)
Index of.
|
int |
indexOf(XBRLFact fact,
int index)
Index of.
|
java.util.Iterator<XBRLFact> |
iterator()
Iterator.
|
java.util.Iterator<XBRLFact> |
iterator2()
Iterator 2.
|
static XBRLInstanceRootNode |
make(DTSContainer container)
Make.
|
boolean |
remove(java.util.Set<XBRLFact> facts)
Removes the.
|
boolean |
remove(XBRLFact fact)
Removes the.
|
void |
removeArcroleRef(XBRLArcroleRef arcroleRef)
Remove roleRef.
|
void |
removeChild(XMLFragment child)
Removes the child.
|
boolean |
removeContext(XBRLContext ctx)
Removes a context from the instance document.
|
boolean |
removeFact(XBRLFact fact)
Removes the fact from the node tree.
|
boolean |
removeFacts(java.util.Set<XBRLFact> facts)
Removes the set of facts from the node tree.
|
void |
removeFootnoteLinkbase(FootnoteLinkbase linkbase)
Removes the footnote linkbase.
|
void |
removeLinkbaseRef(XBRLLinkbaseRef linkbaseRef)
Remove linkbase ref.
|
void |
removeRoleRef(XBRLRoleRef roleRef)
Remove roleRef.
|
void |
removeSchemaRef(XBRLSchemaRef schemaRef)
Remove schema ref.
|
boolean |
removeUnit(XBRLUnit unit)
Removes an unit from the instance document.
|
void |
removeXBRLDocument(XBRLDocument doc)
Detach an XBRLDocument from the set of XBRLDocuments to include in this
instance's DTS.
|
void |
setInstance(XBRLInstance instance)
Sets the instance.
|
void |
setOptimizations(boolean optimizations)
This flag sets how the process of generating the XML nodes will work
either removing unused contexts or keeping all generated contexts there
during a call to generateDocNode.
|
void |
setParent(XBRLFactsList parent)
Sets the parent.
|
int |
size()
Size.
|
addExtendedLink, changeExtendedLink, checkRoleType, generateNode, getContainerDocumentURI, getExtendedLinks, getExtendedLinks, getRootDocument, removeExtendedLink, removeExtendedLinks, setExtendedLinks, setRootDocument
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, equals, equalXdmValues, findFirstNodeOfClass, findPosition, firePropertyChangeEvent, generateId, generateLocatorToNode, generatePrefix, getAllAttributes, getAttribute, getAttributeAtomicValue, getAttributeBooleanValue, getAttributeGroundedValue, getAttributeQNameValue, getAttributes, getAttributeValue, getBase, getBase, getBooleanValue, getChildren, getChildStringValue, getConfiguration, getContainer, getDocument, getElement, getElement, getElements, getFirstChildNoComment, getFragment, getFriendlyName, getFriendlyName, getFriendlyName, 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, isHashDependsOnAtribute, isNamespaceDefined, isNil, moveNamespacesUp, objEquals, objHashCode, reindex, 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, setId, setLang, setModified, setNamespaceDeclarations, setNamespaces, setNil, setNodeName, setRawParentXBRL, setValue, 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
equals, getContainer, getDocument, getXPath, getXPathToRoot
public static XBRLInstanceRootNode make(DTSContainer container)
container
- the containerpublic int hashCode()
hashCode
in interface XBRLFactsList
hashCode
in interface net.sf.saxon.om.NodeInfo
hashCode
in class XMLFragment
public void add(int index, XBRLFact fact)
add
in interface XBRLFactsList
index
- the indexfact
- the factpublic boolean add(XBRLFact fact)
add
in interface XBRLFactsList
fact
- the factpublic void addChild(XMLFragment newChild)
addChild
in class XMLFragment
newChild
- the new childpublic void addArcroleRef(XBRLArcroleRef newArcroleRef)
newArcroleRef
- the new arcroleRefpublic void addRoleRef(XBRLRoleRef newRoleRef)
newRoleRef
- the new roleRefpublic void removeArcroleRef(XBRLArcroleRef arcroleRef)
arcroleRef
- the arcrole refpublic void removeLinkbaseRef(XBRLLinkbaseRef linkbaseRef)
linkbaseRef
- the linkbase refpublic void removeFootnoteLinkbase(FootnoteLinkbase linkbase)
linkbase
- the linkbasepublic void removeRoleRef(XBRLRoleRef roleRef)
roleRef
- the roleRefpublic void removeSchemaRef(XBRLSchemaRef schemaRef)
schemaRef
- the schema refpublic void addLinkbaseRef(XBRLLinkbaseRef newLinkbaseRef)
newLinkbaseRef
- the new linkbaseRefpublic void addFootnoteLinkbase(FootnoteLinkbase newFootnoteLinkbase)
newFootnoteLinkbase
- the new fotnote linkbasepublic void addSchemaRef(XBRLSchemaRef newSchemaRef)
newSchemaRef
- the new schemaRefpublic boolean addContext(XBRLContext ctx) throws XBRLInconsistentDTSException
ctx
- the ctxXBRLInconsistentDTSException
- the XBRL inconsistent dts exceptionpublic java.util.Iterator<XBRLRoleRef> getRoleRefs()
public java.util.Iterator<XBRLSchemaRef> getSchemaRefs()
public java.util.Iterator<XBRLLinkbaseRef> getLinkbaseRefs()
public java.util.Iterator<XBRLArcroleRef> getArcroleRefs()
public boolean addUnit(XBRLUnit unit) throws XBRLInconsistentDTSException
unit
- the XBRLunit to be addedXBRLInconsistentDTSException
- the XBRL inconsistent dts exceptionpublic void addXBRLDocument(XBRLDocument doc, XBRLRoleAndArcroleTypes roleOrArcrole)
doc
- the new XBRLTaxonomy or XBRLLinkbase to attachroleOrArcrole
- XBRLRoleAndArcroleTypes can be null and is null for taxonomy and linkbase documentsaddXBRLDocumentIfNotInDTS(XBRLDocument, XBRLRoleAndArcroleTypes)
public void addXBRLDocumentIfNotInDTS(XBRLDocument doc, XBRLRoleAndArcroleTypes roleOrArcrole)
The document to attach MUST have a URI. The roleOrArcrole parameter may be null and is null in if the doc parameter is a taxonomy schema.
doc
- the new XBRLTaxonomy or XBRLLinkbase to attachroleOrArcrole
- XBRLRoleAndArcroleTypes, optionaladdXBRLDocument(XBRLDocument, XBRLRoleAndArcroleTypes)
public void clear() throws java.lang.Throwable
clear
in interface XBRLFactsList
clear
in class XBRLDocumentRootNode
java.lang.Throwable
- the throwablepublic void clearDTSReferences()
public XBRLInstanceRootNode clone()
clone
in class XMLFragment
public XBRLInstanceRootNode clone(DTSContainer dts)
clone
in class XMLFragment
dts
- the dtspublic boolean removeContext(XBRLContext ctx)
The context should not have fact items in this instance document before it is removed.
All facts in the instance document using this context will be removed from the instance
ctx
- the ctxpublic boolean removeUnit(XBRLUnit unit)
unit
- the unitpublic void removeXBRLDocument(XBRLDocument doc)
doc
- the XBRLTaxonomy or XBRLLinkbase to detachpublic XBRLInstanceRootNode generateRootNode() throws XBRLSerializationException
XBRLSerializationException
- the XBRL serialization exceptionpublic XBRLFact get(int index)
get
in interface XBRLFactsList
index
- the index@Deprecated public XBRLFact getFact(net.sf.saxon.s9api.XdmNode factNode)
factNode
- as key to obtain the XBRLFactpublic XBRLContext getContextCompatible(XBRLContext otherContext)
otherContext
- the other contextpublic java.util.Iterator<XBRLContext> getContexts()
Note that the serialization process will eliminate duplicate contexts automatically if they exists.
public void forEachContext(XBRLInstanceRootNode.ForEachContext lambda)
lambda
function
on each one of the XBRLContexts in the instancelambda
- instance of ForEachContext interfacepublic void forEachFact(XBRLInstanceRootNode.ForEachFact lambda)
lambda
function
on each one of the XBRLFacts in the instancelambda
- instance of ForEachFact interfacepublic void forEachUnit(XBRLInstanceRootNode.ForEachUnit lambda)
lambda
function
on each one of the XBRLUnits in the instancelambda
- instance of ForEachUnit interfacepublic void forEachContextUnsafe(XBRLInstanceRootNode.ForEachContext lambda)
lambda
function
on each one of the XBRLContexts in the instance but does
not lock the instance document for modifications.
This code can be used during the validation process when in multi-thread validation another thread has already locked the instance document
lambda
- instance of ForEachContext interfacepublic void forEachFactUnsafe(XBRLInstanceRootNode.ForEachFact lambda)
lambda
function
on each one of the XBRLFacts in the instance (at root
level. This method does not enter recursively into tuple content)
but does not lock the instance document for modifications.
This code can be used during the validation process when in multi-thread validation another thread has already locked the instance document
lambda
- instance of ForEachFact interfacepublic void forEachUnitUnsafe(XBRLInstanceRootNode.ForEachUnit lambda)
lambda
function
on each one of the XBRLUnit in the instance but does
not lock the instance document for modifications.
This code can be used during the validation process when in multi-thread validation another thread has already locked the instance document
lambda
- instance of ForEachUnit interfacepublic java.util.Iterator<java.net.URI> getDTSs() throws XBRLValidationException
XBRLValidationException
- the XBRL validation exceptionpublic XBRLInstance getInstance()
getInstance
in interface XBRLFactsList
public java.util.Iterator<XBRLFact> getFacts()
iterator()
.iterator()
public java.util.Iterator<XBRLFactItem> getItems()
getItems
in interface XBRLFactsList
public java.util.Iterator<XBRLFactItem> getItems(XBRLItem itemFrom)
getItems
in interface XBRLFactsList
itemFrom
- the item frompublic java.util.Iterator<XBRLFactItem> getItemsSg(XBRLItem itemFrom)
getItemsSg
in interface XBRLFactsList
itemFrom
- the item frompublic int getNumberOfContexts()
public int getNumberOfItems()
getNumberOfItems
in interface XBRLFactsList
public int getNumberOfTuples()
getNumberOfTuples
in interface XBRLFactsList
public int getNumberOfUnits()
public XMLFragment getParentXBRL()
getParentXBRL
in interface XBRLFactsList
getParentXBRL
in class XMLFragment
public java.util.Iterator<XBRLFactTuple> getTuples()
getTuples
in interface XBRLFactsList
public java.util.Iterator<XBRLFactTuple> getTuples(XBRLTuple tupleFrom)
getTuples
in interface XBRLFactsList
tupleFrom
- the tuple frompublic java.util.Iterator<XBRLFactTuple> getTuplesSg(XBRLTuple tupleFrom)
getTuplesSg
in interface XBRLFactsList
tupleFrom
- the tuple frompublic XBRLUnit getUnitCompatible(XBRLUnit otherUnit)
otherUnit
- the other unitpublic java.util.Iterator<XBRLUnit> getUnits()
Note that the serialization process will eliminate duplicate units automatically if they exists.
public java.util.Iterator<java.net.URI> getXBRLDocuments(XBRLDocument.XBRLDocumentType type)
type
- can be XBRLDocument.TAXONOMY or XBRLDocument.LINKBASEpublic int indexOf(XBRLFact fact)
indexOf
in interface XBRLFactsList
fact
- the factpublic int indexOf(XBRLFact fact, int index)
indexOf
in interface XBRLFactsList
fact
- the factindex
- the indexpublic java.util.Iterator<XBRLFact> iterator()
iterator
in interface XBRLFactsList
public boolean remove(XBRLFact fact)
remove
in interface XBRLFactsList
fact
- the factpublic boolean remove(java.util.Set<XBRLFact> facts)
remove
in interface XBRLFactsList
facts
- the factspublic void removeChild(XMLFragment child)
removeChild
in class XMLFragment
child
- the childpublic boolean removeFact(XBRLFact fact)
remove(XBRLFact)
method insteadremoveFact
in interface XBRLFactsList
fact
- the factpublic boolean removeFacts(java.util.Set<XBRLFact> facts)
#remove(Set)
method insteadremoveFacts
in interface XBRLFactsList
facts
- the set of factspublic void setInstance(XBRLInstance instance)
instance
- the new instancepublic void setOptimizations(boolean optimizations)
optimizations
- the new optimizationspublic void setParent(XBRLFactsList parent)
setParent
in interface XBRLFactsList
parent
- the new parentpublic int size()
size
in interface XBRLFactsList
public java.util.Iterator<XBRLFact> iterator2()
iterator2
in interface XBRLFactsList
public XBRLContext getContextById(java.lang.String id)
id
- the idpublic XBRLUnit getUnitById(java.lang.String id)
id
- the idpublic void copyHistory(XBRLInstanceRootNode instanceRootNode)
instanceRootNode
- the instance root nodepublic 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