|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ihr.xbrl.om.XMLFragment
com.ihr.xbrl.om.instance.XBRLFact
com.ihr.xbrl.om.instance.XBRLFactItem
public abstract class XBRLFactItem
This class represents the instantiation of an xbrli:item on an instance document
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.ihr.xbrl.om.XBRLValidation |
|---|
XBRLValidation.Direction |
| Field Summary | |
|---|---|
static javax.xml.namespace.QName |
contextRef
|
| Fields inherited from class com.ihr.xbrl.om.instance.XBRLFact |
|---|
nil |
| Fields inherited from class com.ihr.xbrl.om.XMLFragment |
|---|
CONCEPT_LABEL, CONCEPT_QNAME, EMPTYRELATIONSHIPSITERATORINSTANCE, EMPTYXMLFRAGMENTITERATORINSTANCE, FACT_CONCEPT_DATATYPE, FACT_CONCEPT_LABEL, FACT_QNAME, idQName, NO_POSITION, OrderComparator, PERIOD_TYPE, PERIOD_VALUE, SHORT_TEXT, SOURCE_DOCUMENT, XPATH, XPOINTER |
| Method Summary | |
|---|---|
boolean |
cEqual(XBRLFactItem factTotal)
Evaluates if the two instantiation of the items are c-equal |
void |
clear()
Eliminates all this fact content |
XBRLFactItem |
clone()
|
XBRLFactItem |
clone(DTSContainer newDTS)
Clone current fact but in a new DTSContainer |
static XBRLFactItem |
createItemInstance(XBRLFactsList container,
XBRLContext ctx,
XBRLItem xf,
XBRLUnit unit)
creates an XBRLFactItem that can be either a XBRLFactNumeric or XBRLFactNonNumeric depending on the information provided in extra parameters |
static XBRLFact |
createItemInstance(XBRLFactsList parent,
XBRLItem xf,
XBRLFactItem otherFact)
|
static XBRLFactItem |
createItemInstance(XBRLFactsList container,
net.sf.saxon.s9api.XdmNode node,
XMLFragment xf)
creates an XBRLFactItem that can be either a XBRLFactNumeric or XBRLFactNonNumeric depending on the data type (derivation included) of the concept definition |
boolean |
equals(java.lang.Object obj)
Sets a new XPathFunctionResolver for this object |
org.jdom.Element |
generateNode(boolean relativize,
java.net.URI base)
Generates the XBRLFactItem jdom node. |
java.util.Iterator<XBRLAttribute> |
getAttributes()
Removes the contextRef attribute from the FactItem Parent iterators already removes the id attribute if any. |
XBRLContext |
getContext()
Access to the context object |
java.net.URI |
getDocumentURI()
Access to the URI property of the instance document for this fact item. |
XBRLItem |
getElementDefinition()
Access to the surrounding item declaration for this item |
java.lang.String |
getStringValue()
Returns a string representation of the value of this XMLFragment if value is null the function returns null |
int |
hashCode()
|
boolean |
isBlank()
true if the fact item has no value assigned. |
boolean |
isDescendantOrSibling(XBRLFactItem otherFact)
Returns true if otherFact is a descendant or sibling of this fact |
abstract boolean |
isDuplicate(XBRLFactItem tTarget,
boolean reversePEqual)
For internal purposes only during the calculation of isDuplicate of tuple children elements. |
boolean |
s_equal2(java.lang.Object other)
Resolves s_equal2 comparison of this node against the other node. |
void |
setBlank(boolean value)
Sets the indicator that this fact item is blank |
void |
setContext(XBRLContext c)
Sets the context of this fact |
void |
setValue(net.sf.saxon.value.AtomicValue value)
|
void |
setValue(net.sf.saxon.s9api.XdmValue value)
Sets the value of this node |
abstract boolean |
uEqual(XBRLFactItem toFact)
Check if two items are unit equal as defined in the XBRL 2.1 specification |
abstract boolean |
vEqual(XBRLFactItem toFact)
Check if two items are value equal as defined in the XBRL 2.1 specification |
| Methods inherited from class com.ihr.xbrl.om.instance.XBRLFact |
|---|
createItemOrTupleInstance, createItemOrTupleInstance, generateLocatorToNode, getElements, getFriendlyName, getFriendlyName, getInstance, getParent, getTaxonomy, getValidationReport, getXPathToRoot, invalidate, invalidate, isDuplicate, isNil, isOnValidation, pEqual, setId, setNil, setParent, validate |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final javax.xml.namespace.QName contextRef
| Method Detail |
|---|
public void clear()
throws java.lang.Throwable
clear in class XBRLFactjava.lang.Throwablepublic XBRLFactItem clone()
clone in class XBRLFactpublic XBRLFactItem clone(DTSContainer newDTS)
XBRLFact
clone in class XBRLFact
public static XBRLFactItem createItemInstance(XBRLFactsList container,
net.sf.saxon.s9api.XdmNode node,
XMLFragment xf)
throws XBRLValidationException
container - XBRLFactsContainer where the new fact will be addednode - NodeInfo to process while creating the fact itemxf - XBRLItem concept definition
XBRLValidationException
public static XBRLFactItem createItemInstance(XBRLFactsList container,
XBRLContext ctx,
XBRLItem xf,
XBRLUnit unit)
container - XBRLFactsList container of the new factctx - XBRLContext for the new factxf - XBRLItem definitionunit - XBRLUnit may be null is item is string item type
public static XBRLFact createItemInstance(XBRLFactsList parent,
XBRLItem xf,
XBRLFactItem otherFact)
parent - xf - otherFact -
public java.net.URI getDocumentURI()
public java.lang.String getStringValue()
throws XBRLSerializationException
XMLFragment
getStringValue in class XMLFragmentXBRLSerializationExceptionpublic XBRLContext getContext()
XBRLValidationException - if the element with the indicated ID is not an XBRL contextpublic void setContext(XBRLContext c)
c - new XBRLContextpublic java.util.Iterator<XBRLAttribute> getAttributes()
Parent iterators already removes the id attribute if any.
getAttributes in class XMLFragmentXMLFragment.getAttributes()public XBRLItem getElementDefinition()
getElementDefinition in class XBRLFactXBRLValidationExceptionpublic boolean cEqual(XBRLFactItem factTotal)
factTotal - XBRLFactItem other fact
public abstract boolean vEqual(XBRLFactItem toFact)
toFact - the other XBRLFactItem
public abstract boolean uEqual(XBRLFactItem toFact)
toFact - the other XBRLFactItem
public boolean isBlank()
public void setBlank(boolean value)
value - public void setValue(net.sf.saxon.value.AtomicValue value)
setValue in class XBRLFactpublic void setValue(net.sf.saxon.s9api.XdmValue value)
XMLFragment
setValue in class XBRLFactpublic boolean isDescendantOrSibling(XBRLFactItem otherFact)
otherFact - XBRLFactItem
public org.jdom.Element generateNode(boolean relativize,
java.net.URI base)
throws XBRLSerializationException
generateNode in class XBRLFactrelativize - boolean indicating if URIs should be relativized to the base URI (see next argument)base - the URI to which some attributes of this object should be relativided
XBRLSerializationExceptionpublic int hashCode()
hashCode in class XBRLFactpublic boolean s_equal2(java.lang.Object other)
XMLFragment
s_equal2 in class XMLFragmentother - The other node (preferably an XMLFragment) that contains a non null NodeInfo document.
public boolean equals(java.lang.Object obj)
XMLFragment
equals in class XBRLFact
public abstract boolean isDuplicate(XBRLFactItem tTarget,
boolean reversePEqual)
tTarget - b -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||