public class XBRLUnit extends XMLFragment implements XBRLValidation
XMLFragment.NodeNameIterator<T extends XMLFragment>, XMLFragment.NodeTypeIterator<T extends XMLFragment>XBRLValidation.Direction| Modifier and Type | Field and Description |
|---|---|
static javax.xml.namespace.QName |
divideQNameNode
The Constant xbrli:divide.
|
static javax.xml.namespace.QName |
PURE
The Constant xbrli:pure.
|
static javax.xml.namespace.QName |
SHARES
The Constant xbrli:shares.
|
static net.sf.saxon.om.StructuredQName |
sqnUnitQNameNode
The Constant sqnUnitQNameNode.
|
static javax.xml.namespace.QName |
unitDenominatorQNameNode
The Constant xbrli:unitDenominator.
|
static javax.xml.namespace.QName |
unitNumeratorQNameNode
The Constant xbrli:unitNumerator.
|
static javax.xml.namespace.QName |
unitQNameNode
The Constant xbrli:unit.
|
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| Constructor and Description |
|---|
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,
javax.xml.namespace.QName numerator)
Helper method to create a simple unit for just one numerator.
|
XBRLUnit(DTSContainer dts,
java.lang.String iso4217unit)
Helper method to create a simple unit in the iso4217.
|
XBRLUnit(DTSContainer dts,
java.lang.String iso4217unit,
java.lang.Void v)
Helper method to create a simple unit in the iso4217 divided by xbrli:shares.
|
XBRLUnit(DTSContainer dts,
XMLFragment root)
Instantiates a new XBRL unit.
|
XBRLUnit(XBRLInstance parent,
XMLFragment node)
Instantiates a new XBRL unit and adds it to the xbrl report passed in in the
parent parameter.
|
XBRLUnit(XMLFragment node)
Instantiates a new XBRL unit.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear.
|
XBRLUnit |
clone()
Clone.
|
XBRLUnit |
clone(DTSContainer newDTS)
Clone.
|
boolean |
equals(java.lang.Object other)
Evaluates u-equality of two units.
|
XBRLUnit |
generateNode()
Generate node.
|
java.util.Collection<javax.xml.namespace.QName> |
getDenominator()
Reads the nodes of this unit and prepares a new Collection of QNames
containing just the units in the denominator unit part.
|
net.sf.saxon.tree.linked.NodeImpl |
getFirstChild() |
java.lang.String |
getFriendlyName()
Gets the friendly name.
|
java.lang.String |
getFriendlyName(int modifiers,
LabelsProvider lp)
Gets the friendly name.
|
java.lang.String |
getFriendlyNameOnlyId()
Gets the friendly name only id.
|
net.sf.saxon.tree.linked.NodeImpl |
getLastChild() |
int |
getNumberOfChildren() |
java.util.Collection<javax.xml.namespace.QName> |
getNumerator()
Reads the nodes of this unit and prepares a new Collection of QNames
containing just the units in the numerator unit part.
|
XBRLInstance |
getParentDocument()
Gets the parent document.
|
XBRLValidationReport |
getValidationReport()
Gets the validation report.
|
boolean |
hasChildNodes() |
int |
hashCode()
Hash code.
|
void |
invalidate()
Invalidate.
|
boolean |
invalidate(XBRLValidation.Direction dir)
Invalidate.
|
boolean |
isMoneraty()
Returns true if the unit is just a monetary value.
|
boolean |
isOnValidation()
Checks if is on validation.
|
boolean |
isPure()
Check if this unit is a single measure and is XBRLI.PURE
|
static XBRLUnit |
make(DTSContainer dts)
Make.
|
boolean |
s_equal2(java.lang.Object other)
S equal 2.
|
XBRLValidationReport |
validate(XBRLPlugInProcessor proc)
Validate.
|
void |
validateISO4217()
Validate is o4217.
|
void |
validateShares()
Validate shares.
|
addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addChild, addChildArray, addChildAt, addChildNode, addChildNodeArray, addChildNodeAt, addChildNodeInBatch, addComment, addFromRelationship, addNamespace, addNamespace, addPropertyChangeListener, addToRelationship, changeBase, checkBase, childExists, commitBatch, copy, createComment, delAttribute, delAttribute, delete, equalXdmValues, findFirstNodeOfClass, findPosition, firePropertyChangeEvent, generateId, generateLocatorToNode, generatePrefix, getAllAttributes, getAttribute, getAttributeAtomicValue, getAttributeBooleanValue, getAttributeGroundedValue, getAttributeQNameValue, getAttributes, getAttributeValue, getBase, getBase, getBooleanValue, getChildren, getChildStringValue, getConfiguration, getContainer, getContainerDocumentURI, getDocument, getElement, getElement, getElements, getFirstChildNoComment, getFragment, 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, getParentXBRL, 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, removeChild, removeChildNode, removeFromRelationship, removeNamespace, removePropertyChangeListener, removeToRelationship, replace, replaceChild, replaceStringValue, resetElements, resolveHRef, s_equal2_xp2, s_equal2_xp2, 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, xEqualaddAttribute, 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, setTypeAnnotationatomize, 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, replacepublic static final javax.xml.namespace.QName unitQNameNode
public static final net.sf.saxon.om.StructuredQName sqnUnitQNameNode
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
public XBRLUnit(DTSContainer dts, XMLFragment root)
dts - the dtsroot - the rootpublic XBRLUnit(DTSContainer dts, java.util.Collection<javax.xml.namespace.QName> numerator, java.util.Collection<javax.xml.namespace.QName> denominator)
The unit is automatically simplified to the normal form.
dts - DTSContainer, the DTS of this unitnumerator - Collection<QName> elements in the numerator, cannot be nulldenominator - Collection<QName> elements in the denominator, can be nullpublic XBRLUnit(XMLFragment node)
node - the nodepublic XBRLUnit(XBRLInstance parent, XMLFragment node) throws XBRLInconsistentDTSException
parent - the parentnode - the nodeXBRLInconsistentDTSException - the XBRL inconsistent dts exceptionpublic XBRLUnit(DTSContainer dts, java.lang.String iso4217unit)
dts - the dtsiso4217unit - the three letters of the iso4217 unit such as USD, EUR, etcpublic XBRLUnit(DTSContainer dts, javax.xml.namespace.QName numerator)
dts - the dtsnumerator - a QName such as XBRLUnit.PURE etc.public XBRLUnit(DTSContainer dts, java.lang.String iso4217unit, java.lang.Void v)
dts - the dtsiso4217unit - the three letters of the iso4217 unit such as USD, EUR, etcv - this is used to distinguish between other constructors. Use null herepublic static XBRLUnit make(DTSContainer dts)
dts - the dtspublic void clear()
throws java.lang.Throwable
clear in class XMLFragmentjava.lang.Throwable - the throwablepublic XBRLInstance getParentDocument()
getParentDocument in class XMLFragmentpublic XBRLUnit clone()
clone in class XMLFragmentpublic XBRLUnit clone(DTSContainer newDTS)
clone in class XMLFragmentnewDTS - the new DTSpublic void validateISO4217()
throws XBRLValidationException
XBRLValidationException - the XBRL validation exceptionpublic void validateShares()
throws XBRLValidationException
XBRLValidationException - the XBRL validation exceptionpublic int hashCode()
hashCode in interface net.sf.saxon.om.NodeInfohashCode in class XMLFragmentpublic boolean equals(java.lang.Object other)
equals in interface net.sf.saxon.om.NodeInfoequals in class XMLFragmentother - the otherpublic boolean s_equal2(java.lang.Object other)
s_equal2 in class XMLFragmentother - the otherpublic XBRLUnit generateNode() throws XBRLSerializationException
generateNode in class XMLFragmentXBRLSerializationException - the XBRL serialization exceptionpublic java.util.Collection<javax.xml.namespace.QName> getNumerator()
public java.util.Collection<javax.xml.namespace.QName> getDenominator()
public boolean isMoneraty()
public java.lang.String getFriendlyName()
getFriendlyName in class XMLFragmentpublic java.lang.String getFriendlyNameOnlyId()
public java.lang.String getFriendlyName(int modifiers,
LabelsProvider lp)
getFriendlyName in class XMLFragmentmodifiers - the modifierslp - the lppublic XBRLValidationReport getValidationReport()
getValidationReport in interface XBRLValidationpublic XBRLValidationReport validate(XBRLPlugInProcessor proc)
validate in interface XBRLValidationproc - the procpublic void invalidate()
invalidate in interface XBRLValidationpublic boolean invalidate(XBRLValidation.Direction dir)
invalidate in interface XBRLValidationdir - the dirpublic boolean isOnValidation()
isOnValidation in interface XBRLValidationpublic boolean isPure()
public final boolean hasChildNodes()
hasChildNodes in interface net.sf.saxon.om.NodeInfohasChildNodes in class net.sf.saxon.tree.linked.NodeImplpublic 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.NodeImplpublic final net.sf.saxon.tree.linked.NodeImpl getLastChild()
getLastChild in class net.sf.saxon.tree.linked.NodeImplCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa