|
||||||||||
| 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.taxonomy.XMLElementDefinition
com.ihr.xbrl.om.taxonomy.XBRLItem
public class XBRLItem
| Nested Class Summary | |
|---|---|
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. |
| Field Summary | |
|---|---|
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 |
periodType
The [Period Type] property |
static javax.xml.namespace.QName |
substitutionGroup
This is xbrli:item |
| Fields inherited from class com.ihr.xbrl.om.taxonomy.XMLElementDefinition |
|---|
abstract_, ALL, block, EMPTY, EXTENSION, final_, fixed, name, nillable, nullConcept, RESTRICTION, SUBSTITUTION, type, UNDEFINED |
| 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 | |
|---|---|
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)
|
|
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. |
|
| Method Summary | |
|---|---|
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 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.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()
Returns a collection of elements that are in the substitution group of this element or has this element in the substitution group hierarchy |
XBRLItem.PeriodType |
getPeriodType()
returns XBRLItem.DURATION or XBRLItem.INSTANT |
int |
hashCode()
|
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)
|
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 |
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()
|
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)
|
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(XBRLCoreProcessor proc)
|
| Methods inherited from class com.ihr.xbrl.om.taxonomy.XMLElementDefinition |
|---|
generateLocatorToNode, getAbstract, getAttributes, getBlock, getBlock, getBlock, getChildren, getFinal, getFinal, getFinal, getFixed, getName, getNillable, getParent, getQName, getSimpleContentValidator, getSubstitutionGroup, getSubstitutionGroupHierarchy, getType, getValueKey, isInSubstitutionGroup, setAbstract, setBlock, setFinal, setFixed, setId, setName, setNillable, setParent, setSubstitutionGroup |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.ihr.xbrl.om.exLinks.XBRLRelationshipPoint |
|---|
addFromRelationship, addToRelationship, getFromRelationships, getToRelationships, removeFromRelationship, removeToRelationship |
| Field Detail |
|---|
public static final javax.xml.namespace.QName substitutionGroup
public static final javax.xml.namespace.QName periodType
public static final javax.xml.namespace.QName default_
public static final javax.xml.namespace.QName balance
| Constructor Detail |
|---|
public XBRLItem(XMLElementDefinition other)
other - XMLElementDefinition
XBRLValidationException
public XBRLItem(XBRLTaxonomy parent,
net.sf.saxon.s9api.XdmNode node)
public 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 null
XBRLValidationException - if the new concept definition has XBRL errors| 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 XMLElementDefinitionjava.lang.Throwablepublic int hashCode()
hashCode in class XMLElementDefinitionpublic boolean equals(java.lang.Object other)
XMLFragment
equals in class XMLElementDefinitionpublic XBRLXSDTypeDefinition setType(XBRLXSDTypeDefinition type)
XMLElementDefinition
setType in class XMLElementDefinitiontype - new XBRLXSDTypeDefinition or null
public XBRLItem.PeriodType getPeriodType()
public XBRLItem.PeriodType setPeriodType(XBRLItem.PeriodType newValue)
newValue - the integer constant indicating the new value or null
public java.lang.String getDefault()
public java.lang.String setDefault(java.lang.String newValue)
public XBRLItem.BalanceType getBalance()
public XBRLItem.BalanceType setBalance(XBRLItem.BalanceType newValue)
newValue - the new constant for the value of the balance attribute
public XBRLValidationReport validate(XBRLCoreProcessor proc)
public 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 -
public org.jdom.Element generateNode(boolean relativize,
java.net.URI base)
throws XBRLSerializationException
XMLFragment
generateNode 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 relativided
XBRLSerializationExceptionpublic java.util.Iterator<XMLFragment> getElements()
XMLFragment
getElements in class XMLFragmentpublic java.util.Collection<XBRLItem> getInSubstitutionGroup()
XMLElementDefinition
getInSubstitutionGroup in class XMLElementDefinitionpublic java.lang.String getFriendlyName()
XMLFragmentRemarks, this method may return very long names not suitable for user interface
getFriendlyName in class XMLElementDefinition
public 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 - integer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||