|
||||||||||
| 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.XBRLUnit
public class XBRLUnit
| Field Summary | |
|---|---|
static javax.xml.namespace.QName |
divideQNameNode
|
static javax.xml.namespace.QName |
PURE
|
static javax.xml.namespace.QName |
SHARES
|
static javax.xml.namespace.QName |
unitDenominatorQNameNode
|
static javax.xml.namespace.QName |
unitNumeratorQNameNode
|
static javax.xml.namespace.QName |
unitQNameNode
|
| 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 |
| Constructor Summary | |
|---|---|
XBRLUnit(DTSContainer dts,
java.util.Collection<javax.xml.namespace.QName> numerator,
java.util.Collection<javax.xml.namespace.QName> denominator)
Creates an unit that can be used for XBRLFactNumeric objects |
|
XBRLUnit(DTSContainer dts,
net.sf.saxon.s9api.XdmNode root)
|
|
XBRLUnit(XBRLInstance parent,
net.sf.saxon.s9api.XdmNode root)
|
|
| Method Summary | |
|---|---|
void |
clear()
Frees-up used memory This method should not be invoqued on live objects in the DTS. |
XBRLUnit |
clone()
|
XBRLUnit |
clone(DTSContainer newDTS)
|
boolean |
equals(java.lang.Object other)
Evaluates u-equality of two units |
org.jdom.Element |
generateNode(boolean relativize,
java.net.URI base)
Serializes to a jdom Element the representation of the properties of this Information Item This method should be called from classes derived from this class |
java.util.Collection<javax.xml.namespace.QName> |
getDenominator()
|
java.util.Iterator<XMLFragment> |
getElements()
For complex type resources this returns an iterator with all children XML fragments Tthis method may be overwriten by other classes in the hierarchy |
java.lang.String |
getFriendlyName()
Returns a string description that represents the element content in a form that users can understand. |
java.util.Collection<javax.xml.namespace.QName> |
getNumerator()
|
XBRLInstance |
getParent()
The parent XMLFragment node of this XMLFragment node. |
int |
hashCode()
|
boolean |
isMoneraty()
Returns true if the unit is just a monetary value |
boolean |
s_equal2(java.lang.Object other)
Resolves s_equal2 comparison of this node against the other node. |
void |
setParent(XMLHasParent instance)
Sets the parent of this unit to the instance document specified in the parameter |
java.lang.String |
toString()
Returns the XML representation of this object as an String |
XBRLValidationReport |
validate(XBRLCoreProcessor proc)
|
void |
validateISO4217()
|
void |
validateShares()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final javax.xml.namespace.QName unitQNameNode
public static final javax.xml.namespace.QName divideQNameNode
public static final javax.xml.namespace.QName unitNumeratorQNameNode
public static final javax.xml.namespace.QName unitDenominatorQNameNode
public static final javax.xml.namespace.QName PURE
public static final javax.xml.namespace.QName SHARES
| Constructor Detail |
|---|
public XBRLUnit(DTSContainer dts,
net.sf.saxon.s9api.XdmNode root)
public XBRLUnit(DTSContainer dts,
java.util.Collection<javax.xml.namespace.QName> numerator,
java.util.Collection<javax.xml.namespace.QName> denominator)
dts - DTSContainer, the DTS of this unitnumerator - Collection<QName> elements in the numerator, cannot be nulldenominator - Collection<QName> elements in the denominator, can be null
public XBRLUnit(XBRLInstance parent,
net.sf.saxon.s9api.XdmNode root)
throws XBRLInconsistentDTSException
xbrlInstance - next -
XBRLInconsistentDTSException| Method Detail |
|---|
public void clear()
throws java.lang.Throwable
XMLFragmentThis method should not be invoqued on live objects in the DTS. It is automatically invoqued by the API when an object is no longer used and referenced by other objects. It is save not to call it directly.
clear in class XMLFragmentjava.lang.Throwablepublic XBRLInstance getParent()
XMLFragmentFor XBRLAttribute nodes, the parent is the element node.
For Document nodes the returned value is null
For Embedded document nodes, the returned value is the parent element node.
getParent in interface XMLHasParentgetParent in class XMLFragmentpublic XBRLUnit clone()
clone in class XMLFragmentpublic XBRLUnit clone(DTSContainer newDTS)
clone in class XMLFragment
public void validateISO4217()
throws XBRLValidationException
XBRLValidationException
public void validateShares()
throws XBRLValidationException
XBRLValidationExceptionpublic XBRLValidationReport validate(XBRLCoreProcessor proc)
public int hashCode()
hashCode in class XMLFragmentpublic boolean equals(java.lang.Object other)
equals in class XMLFragmentpublic 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 org.jdom.Element generateNode(boolean relativize,
java.net.URI base)
throws XBRLSerializationException
XMLFragment
generateNode in class XMLFragmentrelativize - 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 java.util.Collection<javax.xml.namespace.QName> getNumerator()
public java.util.Collection<javax.xml.namespace.QName> getDenominator()
public boolean isMoneraty()
public java.util.Iterator<XMLFragment> getElements()
XMLFragment
getElements in class XMLFragment
public void setParent(XMLHasParent instance)
throws XBRLInconsistentDTSException
setParent in interface XMLHasParentsetParent in class XMLFragmentinstance - XBRLInstance
XBRLInconsistentDTSException - if the context contains facts in a previous unattached instancepublic java.lang.String getFriendlyName()
XMLFragmentRemarks, this method may return very long names not suitable for user interface
getFriendlyName in class XMLFragmentpublic java.lang.String toString()
XMLFragment
toString in class XMLFragment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||