public class XBRLFactsListImpl extends java.lang.Object implements XBRLFactsList
| Constructor and Description |
|---|
XBRLFactsListImpl(DTSContainer dts,
XBRLFactsList parent)
Instantiates a new XBRL facts list impl.
|
| 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 |
addXMLChild(XMLHasParent child)
Adds the xml child.
|
void |
clear()
Removes all children elements in this XBRLFactList.
|
XBRLFactsListImpl |
clone() |
XBRLFactsListImpl |
clone(DTSContainer newDTS,
XBRLFactsList parent)
Clone.
|
boolean |
equals(java.lang.Object obj)
This function should be implemented by sub classes in order to properly
implement.
|
net.sf.saxon.s9api.XdmValue |
evaluateList(java.lang.String string)
Access to the surrounding method in the XMLFragment.
|
void |
forwardItem(XBRLFactItem item)
Forward item.
|
XBRLFact |
get(int index)
Returns the element at the selected index position.
|
java.net.URI |
getBase()
Gets the base.
|
DTSContainer |
getContainer()
Access to the surrounding container object.
|
net.sf.saxon.s9api.XdmNode |
getDocument()
Access to the surrounding XdmDocument from the XMLFragment.
|
XBRLInstance |
getInstance()
Access to the instance document on the top of this facts container hierarchy.
|
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 .
|
XBRLFactsList |
getParent()
Access to the parent document, Instance or tuple.
|
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.
|
java.lang.String |
getXPathToRoot()
Access to the surrounding method from the XMLFragment.
|
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 |
isXdmDocumentAttached()
Checks if is xdm document attached.
|
java.util.Iterator<XBRLFact> |
iterator()
Iterator.
|
boolean |
remove(XBRLFact fact)
Removes a fact from the facts container.
|
void |
removeXMLChild(XMLHasParent child)
Removes the xml child.
|
void |
setParent(XBRLFactsList parent)
Sets the parent of this facts container to a new parent.
|
void |
setParent(XMLHasParent parent)
Sets the parent.
|
int |
size()
Access to the number of elements in the XBRLFactList.
|
public XBRLFactsListImpl(DTSContainer dts, XBRLFactsList parent)
dts - the dtsparent - the parent. If the parent is set to null, facts can be added but not removed from previous parentpublic XBRLFactsListImpl clone()
clone in class java.lang.Objectpublic XBRLFactsListImpl clone(DTSContainer newDTS, XBRLFactsList parent)
newDTS - the new dtsparent - the parentpublic void forwardItem(XBRLFactItem item)
item - the itempublic 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)
XBRLFactsListsetParent in interface XBRLFactsListparent - the new parentpublic void addOrForwardItem(XBRLFactItem item)
XBRLFactsListaddOrForwardItem in interface XBRLFactsListitem - the itempublic int size()
XBRLFactsListsize in interface XBRLFactsListpublic 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()
XBRLFactsListclear in interface XBRLFactsListpublic int hashCode()
XBRLFactsListhashCode in interface XBRLFactsListhashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
XBRLFactsListequals in interface XBRLFactsListequals in class java.lang.Objectobj - Object to compare topublic void setParent(XMLHasParent parent) throws XBRLInconsistentDTSException
XMLHasParentsetParent in interface XMLHasParentparent - the new parentXBRLInconsistentDTSException - the XBRL inconsistent dts exceptionpublic void addXMLChild(XMLHasParent child) throws XBRLInconsistentDTSException
XMLHasParentaddXMLChild in interface XMLHasParentchild - the childXBRLInconsistentDTSException - the XBRL inconsistent dts exceptionpublic void removeXMLChild(XMLHasParent child)
XMLHasParentremoveXMLChild in interface XMLHasParentchild - the childpublic java.net.URI getBase()
XMLHasParentgetBase in interface XMLHasParentpublic XBRLFactsList getParent()
XBRLFactsListgetParent in interface XBRLFactsListgetParent in interface XMLHasParentpublic XBRLInstance getInstance()
XBRLFactsListgetInstance in interface XBRLFactsListpublic DTSContainer getContainer()
XBRLFactsListgetContainer in interface XBRLFactsListpublic net.sf.saxon.s9api.XdmNode getDocument()
XBRLFactsListgetDocument in interface XBRLFactsListpublic java.lang.String getXPathToRoot()
XBRLFactsListgetXPathToRoot in interface XBRLFactsListpublic net.sf.saxon.s9api.XdmValue evaluateList(java.lang.String string)
XBRLFactsListevaluateList in interface XBRLFactsListstring - the stringpublic boolean isXdmDocumentAttached()
XBRLFactsListisXdmDocumentAttached in interface XBRLFactsList