public class XBRLFactTuple extends XBRLFact implements XBRLFactsList
XBRLValidation.DirectionCONCEPT_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 |
|---|
XBRLFactTuple(XBRLFactsList parent,
XBRLTuple tupleDecl)
Creates a new tuple.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
XBRLFact fact)
Resets the nillable status to false automatically.
|
boolean |
add(XBRLFact fact)
Resets the nillable status to false automatically.
|
void |
addOrForwardItem(XBRLFactItem item)
Called internally to register new facts in the instance document.
|
void |
clear()
Eliminates all this fact content.
|
XBRLFactTuple |
clone() |
XBRLFactTuple |
clone(DTSContainer newDTS)
Clone current fact but in a new DTSContainer.
|
boolean |
equals(java.lang.Object obj)
Sets a new XPathFunctionResolver for this object.
|
void |
forwardItem(XBRLFactItem item)
Forward item.
|
org.jdom.Element |
generateNode(boolean relativize,
java.net.URI base)
Generates the XBRLFact jdom node.
|
XBRLFact |
get(int index)
Returns the element at the selected index position.
|
XBRLTuple |
getElementDefinition()
Access to the element definition behind this fact.
|
java.lang.String |
getFriendlyName()
Returns a string description that represents the element content in a form
that users can understand.
|
java.lang.String |
getFriendlyName(int modifiers,
LabelsProvider lp)
Gets the friendly name.
|
java.util.Iterator<java.util.Vector<XBRLFactItem>> |
getItems()
Iterator over the items on this facts container.
|
java.util.Iterator<XBRLFactItem> |
getItems(XBRLItem itemFrom)
Iterator over fact items that are instances of the XBRLItem received as a parameter.
|
java.util.Iterator<XBRLFactItem> |
getItemsSg(XBRLItem itemFrom)
Iterator over fact items that are instances of the XBRLItem received as a parameter of in the substitution group of that item.
|
int |
getNumberOfTuples()
Calculates and returns the number of tuples children of this facts container .
|
java.util.Iterator<java.util.Vector<XBRLFactTuple>> |
getTuples()
Iterator over the tuples on this facts container.
|
java.util.Iterator<XBRLFactTuple> |
getTuples(XBRLTuple tupleFrom)
Iterator over fact tuples that are instances of the XBRLTuple received as a parameter.
|
java.util.Iterator<XBRLFactTuple> |
getTuplesSg(XBRLTuple tupleFrom)
Iterator over fact tuples that are instances of the XBRLTuple received as a parameter of in the substitution group of that tuple.
|
net.sf.saxon.s9api.XdmValue |
getValue()
Returns the value of this node.
|
int |
hashCode()
This is from the Object interface and must be implemented by sub classes
in order to be able to provide hashCodes.
|
int |
indexOf(XBRLFact fact)
Returns the index position of a fact within this list.
|
int |
indexOf(XBRLFact fact,
int index)
Returns the index position of a fact within this list starting
at the position indicated by the index parameter.
|
boolean |
isDuplicate(XBRLFact otherFact)
Check if two items are duplicates as defined in the XBRL 2.1 specification
|
boolean |
isNil()
Return true if the fact is nil
it MUST contain a @xsi:nil attribute with value = true.
|
java.util.Iterator<XBRLFact> |
iterator()
Iterator.
|
boolean |
remove(XBRLFact fact)
Removes a fact from the facts container.
|
boolean |
s_equal2(java.lang.Object other)
Resolves s_equal2 comparison of this node against the other node.
|
void |
setNil(boolean newValue)
This method clears the tuple content if the value
if set from false to true.
|
void |
setParent(XBRLFactsList parent)
Sets the parent of this XBRLFact to be the XBRLFactsList object used as a parameter.
|
int |
size()
For complex type resources this returns the number of children elements that all are XML fragments
This method may be overwriten by other classes in the hierarchy.
|
addEvent, addEvent, addEvent, createItemOrTupleInstance, createItemOrTupleInstance, generateLocatorToNode, getElements, getHistory, getHistoryAsString, getInstance, getParent, getTaxonomy, getValidationReport, getXPathToRoot, invalidate, invalidate, isOnValidation, pEqual, setId, setValue, setValue, validateaddAttribute, addChild, addFromRelationship, addNamespace, addNamespace, addToRelationship, addXMLChild, changeBase, checkBase, delAttribute, delAttribute, equalXdmValues, evaluateBoolean, evaluateList, evaluateNode, evaluateNumber, evaluateString, generateId, generateNodeNamespacesAndAttributes, generateNodeValue, generatePrefix, getAllAttributes, getAttribute, getAttributeBooleanValue, getAttributeQNameValue, getAttributes, getAttributes, getAttributeStringValue, getAttributeValue, getBase, getBase, getBaseURI, getBooleanValue, getChild, getContainer, getContainerDocumentURI, getDeclaredNamespaces, getDocument, 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, getXPathExecutable, getXPathNamespaceContext, getXPathToNode, 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, setAttributes, setBase, setDocument, setDocumentAndReload, setElements, setLang, setNamespaceContext, setNamespaces, setNode, setNodeName, setParent, setRegenerateNodeIfnotFound, setVariablesDefined, thin, toString, valueEquals, xEqualevaluateList, getContainer, getDocument, getInstance, getParent, getXPathToRoot, isXdmDocumentAttachedaddXMLChild, getBase, removeXMLChild, setParentpublic XBRLFactTuple(XBRLFactsList parent, XBRLTuple tupleDecl)
parent - the parenttupleDecl - the tuple declpublic XBRLTuple getElementDefinition()
XBRLFactgetElementDefinition in class XBRLFactpublic XBRLFactTuple clone()
public XBRLFactTuple clone(DTSContainer newDTS)
XBRLFactpublic boolean isNil()
XBRLFactpublic void setNil(boolean newValue)
public void forwardItem(XBRLFactItem item)
item - the itempublic net.sf.saxon.s9api.XdmValue getValue()
XMLFragmentgetValue in class XMLFragmentpublic org.jdom.Element generateNode(boolean relativize,
java.net.URI base)
throws XBRLSerializationException
XBRLFactgenerateNode in class XBRLFactrelativize - the relativizebase - the baseXBRLSerializationException - the XBRL serialization exceptionpublic boolean add(XBRLFact fact)
add in interface XBRLFactsListfact - the factpublic void add(int index,
XBRLFact fact)
add in interface XBRLFactsListindex - the indexfact - the factpublic java.util.Iterator<java.util.Vector<XBRLFactItem>> getItems()
XBRLFactsListgetItems in interface XBRLFactsListpublic java.util.Iterator<XBRLFactItem> getItems(XBRLItem itemFrom)
XBRLFactsListgetItems in interface XBRLFactsListitemFrom - XBRLItempublic java.util.Iterator<java.util.Vector<XBRLFactTuple>> getTuples()
XBRLFactsListgetTuples in interface XBRLFactsListpublic java.util.Iterator<XBRLFactTuple> getTuples(XBRLTuple tupleFrom)
XBRLFactsListgetTuples in interface XBRLFactsListtupleFrom - XBRLTuplepublic java.util.Iterator<XBRLFactItem> getItemsSg(XBRLItem itemFrom)
XBRLFactsListgetItemsSg in interface XBRLFactsListitemFrom - XBRLItempublic java.util.Iterator<XBRLFactTuple> getTuplesSg(XBRLTuple tupleFrom)
XBRLFactsListgetTuplesSg in interface XBRLFactsListtupleFrom - the tuple frompublic int getNumberOfTuples()
XBRLFactsListgetNumberOfTuples in interface XBRLFactsListpublic java.util.Iterator<XBRLFact> iterator()
XBRLFactsListiterator in interface XBRLFactsListpublic boolean remove(XBRLFact fact)
XBRLFactsListremove in interface XBRLFactsListfact - the factpublic void setParent(XBRLFactsList parent)
XBRLFactSetting the parent does not adds the fact as child of the parent element. This function do the following steps:
setParent in interface XBRLFactsListsetParent in class XBRLFactparent - the new parentpublic void addOrForwardItem(XBRLFactItem item)
XBRLFactsListaddOrForwardItem in interface XBRLFactsListitem - the itempublic int size()
XMLFragmentsize in interface XBRLFactsListsize in class XMLFragmentpublic java.lang.String getFriendlyName()
XMLFragmentRemarks, this method may return very long names not suitable for user interface
getFriendlyName in class XBRLFactpublic java.lang.String getFriendlyName(int modifiers,
LabelsProvider lp)
XBRLFactgetFriendlyName in class XBRLFactmodifiers - the modifierslp - the lppublic XBRLFact get(int index)
XBRLFactsListget in interface XBRLFactsListindex - integerpublic int indexOf(XBRLFact fact)
XBRLFactsListindexOf in interface XBRLFactsListfact - XBRLFactpublic int indexOf(XBRLFact fact, int index)
XBRLFactsListindexOf in interface XBRLFactsListfact - XBRLFactindex - integerpublic void clear()
XBRLFactclear in interface XBRLFactsListclear in class XBRLFactpublic int hashCode()
XBRLFactsListhashCode in interface XBRLFactsListhashCode in class XBRLFactpublic boolean equals(java.lang.Object obj)
XMLFragmentequals in interface XBRLFactsListequals in class XBRLFactobj - the otherpublic boolean s_equal2(java.lang.Object other)
XMLFragments_equal2 in class XMLFragmentother - The other node (preferably an XMLFragment) that contains a non null NodeInfo document.public boolean isDuplicate(XBRLFact otherFact)
XBRLFactisDuplicate in class XBRLFactotherFact - the other XBRLFactItem