public class XBRLItem extends XMLElementDefinition implements java.io.Serializable, XBRLValidation
| Modifier and Type | Class and Description |
|---|---|
static class |
XBRLItem.BalanceType
Enumeration defining the possible content of the xbrli:balance
attribute.
|
static class |
XBRLItem.PeriodType
Enumeration defining the content of the xbrli:periodType attribute but also used to report
the type of a XBRLPeriod object inside an XBRLContext.
|
XBRLValidation.Direction| Modifier and Type | Field and Description |
|---|---|
static javax.xml.namespace.QName |
balance
The value of the balance attribute if it is present.
|
static javax.xml.namespace.QName |
default_
The [default] property.
|
static javax.xml.namespace.QName |
periodTypeAttribute
The [Period Type] property.
|
static javax.xml.namespace.QName |
substitutionGroup
This is xbrli:item.
|
abstract_, ALL, block, EMPTY, EXTENSION, final_, fixed, name, nillable, nullConcept, RESTRICTION, SUBSTITUTION, type, UNDEFINEDCONCEPT_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 |
|---|
XBRLItem(XBRLTaxonomy parent,
java.lang.String name,
java.lang.String _default,
XBRLXSDTypeDefinition type,
javax.xml.namespace.QName substitutionGroup,
XBRLItem.PeriodType periodType,
XBRLItem.BalanceType balance,
java.lang.Boolean _abstract,
java.lang.Boolean nillable,
int block,
int _final,
java.lang.String fixed)
Creates and XBRL Item definition.
|
XBRLItem(XBRLTaxonomy parent,
net.sf.saxon.s9api.XdmNode node)
Instantiates a new XBRL item.
|
XBRLItem(XMLElementDefinition other)
Creates an item using the properties of the concept received as a parameter
Adds the new concept to the parent taxonomy schema.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Frees-up used memory
This method should not be invoqued on live objects in the DTS.
|
boolean |
equals(java.lang.Object other)
Sets a new XPathFunctionResolver for this object.
|
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
|
XBRLItem.BalanceType |
getBalance()
Access to the [Balance] property of the concept definition.
|
java.lang.String |
getDefault()
Access to the [Default] property.
|
java.util.Iterator<XMLFragment> |
getElements()
For complex type resources this returns an iterator with all children XML fragments
This 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.lang.String |
getFriendlyName(int modifiers,
LabelsProvider lp)
Returns a string description that represents the element content in a form
that users can understand.
|
java.util.Collection<XBRLItem> |
getInSubstitutionGroup()
Gets the in substitution group.
|
XBRLItem.PeriodType |
getPeriodType()
returns XBRLItem.DURATION or XBRLItem.INSTANT
|
XBRLValidationReport |
getValidationReport()
Access to the last stored validation report.
|
int |
hashCode() |
void |
invalidate()
Invalidates the XBRLFact for XBRL validation.
|
boolean |
invalidate(XBRLValidation.Direction dir)
Invalidates this object and the elements in the XML tree according with the parameter in dir
This method is used by GUI tools that requires to reset validation before a manual validation
cycle is started.
|
boolean |
isFraction()
Returns true or false depending on this XBRLItem is an XBRL fractionItemType or not
This method has been added in order to facilitate the development of the formula
specification.
|
boolean |
isInSubstitutionGroup(javax.xml.namespace.QName name)
Checks if is in substitution group.
|
boolean |
isMonetaryType()
Check if this concept definition is a monetaryItemType or derived from
monetaryItemType in the type hierarchy and return true if this is the
case.
|
boolean |
isNumeric()
Returns true if the type is derived from one of the list
fractionItemType
decimalItemType
floatItemType
doubleItemType
monetaryItemType
sharesItemType
pureItemType
integerItemType
nonPositiveIntegerItemType
negativeIntegerItemType
longItemType
intItemType
shortItemType
byteItemType
nonNegativeIntegerItemType
unsignedLongItemType
unsignedIntItemType
unsignedShortItemType
unsignedByteItemType
positiveIntegerItemType).
|
boolean |
isOnValidation()
When validation is a recursive process, this function returns true if the
object going to be validated is already under validation.
|
boolean |
isPureType()
Check if this concept definition is a pureItemType or derived from
pureItemType in the type hierarchy and return true if this is the
case.
|
boolean |
isSharesType()
Check if this concept definition is a sharesItemType or derived from
sharesItemType in the type hierarchy and return true if this is the
case.
|
boolean |
isXBRLType()
Checks if is XBRL type.
|
XBRLItem.BalanceType |
setBalance(XBRLItem.BalanceType newValue)
Sets the value of the [Balance] property or reset it if newValue is null.
|
java.lang.String |
setDefault(java.lang.String newValue)
Sets the default.
|
void |
setIsFraction(boolean newValue)
Normally the information about isFraction is obtained from the element data type
but when the element data type cannot be obtained this method can help in setting up
a suitable value so applications can work as if the data type were obtained from the
surrounding node.
|
void |
setIsMonetaryType(boolean newValue)
Sets the flag that indicates this item is of the monetary type.
|
void |
setIsNumeric(boolean newValue)
Normally the information about isNumeric is obtained from the element data type
but when the element data type cannot be obtained this method can help in setting up
a suitable value so applications can work as if the data type were obtained from the
surrounding node.
|
void |
setIsXBRLType(boolean newValue)
Sets the flag that indicates if this concept is of the XBRL derived types or not.
|
XBRLItem.PeriodType |
setPeriodType(XBRLItem.PeriodType newValue)
Sets the value of the [Period Type] property or resets it if newValue is null.
|
XBRLXSDTypeDefinition |
setType(XBRLXSDTypeDefinition type)
Sets the item type to the type specified in the XBRLXSDTypeDefinition object or unset
the type definition if the attribute value is null.
|
XBRLValidationReport |
validate(XBRLPlugInProcessor proc)
Executes validation on the instance object and returns a validation report.
|
generateLocatorToNode, getAbstract, getAttributes, getBlock, getBlock, getBlock, getChildren, getContentValidator, getFinal, getFinal, getFinal, getFixed, getName, getNillable, getParent, getQName, getSimpleContentValidator, getSubstitutionGroup, getSubstitutionGroupHierarchy, getType, getValueKey, isAbstract, isInSubstitutionGroup, isTotal, setAbstract, setBlock, setFinal, setFixed, setId, setName, setNillable, setParent, setSubstitutionGroupaddAttribute, addChild, addFromRelationship, addNamespace, addNamespace, addToRelationship, addXMLChild, changeBase, checkBase, clone, clone, delAttribute, delAttribute, equalXdmValues, evaluateBoolean, evaluateList, evaluateNode, evaluateNumber, evaluateString, generateId, generateNodeNamespacesAndAttributes, generateNodeValue, generatePrefix, getAllAttributes, getAttribute, getAttributeBooleanValue, getAttributeQNameValue, 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, getValue, getXPathExecutable, getXPathNamespaceContext, getXPathToNode, getXPathToRoot, 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, s_equal2, setAttributes, setBase, setDocument, setDocumentAndReload, setElements, setLang, setNamespaceContext, setNamespaces, setNode, setNodeName, setParent, setRegenerateNodeIfnotFound, setValue, setValue, setVariablesDefined, size, thin, toString, valueEquals, xEqualaddFromRelationship, addToRelationship, getFromRelationships, getToRelationships, removeFromRelationship, removeToRelationshippublic static final javax.xml.namespace.QName substitutionGroup
public static final javax.xml.namespace.QName periodTypeAttribute
public static final javax.xml.namespace.QName default_
public static final javax.xml.namespace.QName balance
public XBRLItem(XMLElementDefinition other)
other - XMLElementDefinitionpublic XBRLItem(XBRLTaxonomy parent, net.sf.saxon.s9api.XdmNode node)
parent - the parentnode - the nodepublic XBRLItem(XBRLTaxonomy parent, java.lang.String name, java.lang.String _default, XBRLXSDTypeDefinition type, javax.xml.namespace.QName substitutionGroup, XBRLItem.PeriodType periodType, XBRLItem.BalanceType balance, java.lang.Boolean _abstract, java.lang.Boolean nillable, int block, int _final, java.lang.String fixed) throws XBRLValidationException
parent - XBRLTaxonomy parent taxonomyname - String concept name_default - String default value, can be nulltype - XBRLXSDTypeDefinition (xbrli based type)substitutionGroup - QName (item or based on item)periodType - PeriodType enum { UNDEFINED_PERIOD_TYPE | INSTANT | DURATION | FOREVER }balance - BalanceType enum { DEBIT | CREDIT | NO_BALANCE }_abstract - Booleannillable - Booleanblock - int (see XMLElementDefinition)_final - int (see XMLElementDefinition)fixed - String fixed value, can be nullXBRLValidationException - if the new concept definition has XBRL errorspublic 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 XMLElementDefinitionjava.lang.Throwable - the throwablepublic int hashCode()
hashCode in class XMLElementDefinitionpublic boolean equals(java.lang.Object other)
XMLFragmentequals in class XMLElementDefinitionother - the otherpublic XBRLXSDTypeDefinition setType(XBRLXSDTypeDefinition type)
XMLElementDefinitionsetType in class XMLElementDefinitiontype - new XBRLXSDTypeDefinition or nullpublic XBRLItem.PeriodType getPeriodType()
public XBRLItem.PeriodType setPeriodType(XBRLItem.PeriodType newValue)
newValue - the integer constant indicating the new value or nullpublic java.lang.String getDefault()
public java.lang.String setDefault(java.lang.String newValue)
newValue - the new valuepublic XBRLItem.BalanceType getBalance()
public XBRLItem.BalanceType setBalance(XBRLItem.BalanceType newValue)
newValue - the new constant for the value of the balance attributepublic boolean isPureType()
public boolean isSharesType()
public boolean isMonetaryType()
public void setIsMonetaryType(boolean newValue)
newValue - booleanpublic boolean isXBRLType()
public void setIsXBRLType(boolean newValue)
newValue - booleanpublic boolean isNumeric()
public boolean isFraction()
public void setIsNumeric(boolean newValue)
newValue - boolean valuepublic void setIsFraction(boolean newValue)
newValue - boolean valuepublic boolean isInSubstitutionGroup(javax.xml.namespace.QName name)
name - the namepublic org.jdom.Element generateNode(boolean relativize,
java.net.URI base)
throws XBRLSerializationException
XMLFragmentgenerateNode in class XMLElementDefinitionrelativize - 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 relatividedXBRLSerializationException - the XBRL serialization exceptionpublic java.util.Iterator<XMLFragment> getElements()
XMLFragmentgetElements in class XMLFragmentpublic java.util.Collection<XBRLItem> getInSubstitutionGroup()
getInSubstitutionGroup in class XMLElementDefinitionpublic java.lang.String getFriendlyName()
XMLFragmentRemarks, this method may return very long names not suitable for user interface
getFriendlyName in class XMLElementDefinitionpublic java.lang.String getFriendlyName(int modifiers,
LabelsProvider lp)
XMLFragmentThis function accepts flags that are defined as constants in XMLFragment in order to modify the output.
getFriendlyName in class XMLElementDefinitionmodifiers - integerlp - the lppublic XBRLValidationReport getValidationReport()
XBRLValidationgetValidationReport in interface XBRLValidationpublic XBRLValidationReport validate(XBRLPlugInProcessor proc)
XBRLValidation
The validation result may be cached internally. A call to XBRLValidation.invalidate(Direction) clears the validation cache.
validate in interface XBRLValidationproc - the processor under which the object is going to be validated. Note the same object can be validated on multiple processors.public void invalidate()
XBRLValidationinvalidate in interface XBRLValidationpublic boolean invalidate(XBRLValidation.Direction dir)
XBRLValidationThis method is used by GUI tools that requires to reset validation before a manual validation cycle is started.
invalidate in interface XBRLValidationdir - see the XBRLValidation.Direction enumeration for more information.public boolean isOnValidation()
XBRLValidationisOnValidation in interface XBRLValidation