|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Item
an item represents a single fact or business measurement.
Copyright 2006 J2R BV, The Netherlands.
Part of Licensed Materials.
www.batavia-xbrl.com
| Method Summary | |
|---|---|
void |
calculatePrecisionToUse()
Calculate the precision value for this item based on the actual value and keep it for later use. |
Context |
getContext()
The context for this item is retreived based on the contextref value. |
XmlAttribute |
getContextRef()
The context ref attribute value identifies the context for this item. |
XmlAttribute |
getDecimals()
The Decimals attribute value for this item. |
java.lang.String |
getFormattedContent()
Get the value for this item formatted. |
java.lang.String |
getFormattedContent(java.lang.Integer overrulingPrecision)
format the eventual numeric items to a decimal representation |
double |
getFormattedValue()
Get the value for this item formatted. |
int |
getInferredPrecision()
Infer the precission based on the decimals attribute. |
XmlAttribute |
getNil()
The nil attribute can have a textual bolean value true or false. true means the element has a value equal nil. |
XmlAttribute |
getPrecision()
The Precision attribute value for this item. |
int |
getPrecisionToUse()
Return the precision that should be used when perfoming calculations with the value of this item. |
Unit |
getUnit()
The Unit for this item is retreived based on the unitref value. |
XmlAttribute |
getUnitRef()
The Unit ref attribute value identifies the Unit for this item. |
boolean |
isDuplicateExceptParent(Fact otherFact)
Tests if the item is a duplicate off the other fact except for the parent they are both contained by. |
boolean |
isNumeric()
Determines if the concept for this item in the DTS has a numeric datatype. |
void |
overrulePrecisionToUse(int prec)
Set the precission to use to the new prec value so the item can indicate the value is to be used with this new precission in mind. |
void |
resetUnit()
Reset the object reference to the Unit object that is refered by the unitRef attribute on this Item fact. |
void |
setContextRef(XmlAttribute contextRef)
The context ref attribute value identifies the context for this item. |
void |
setDecimals(XmlAttribute decimals)
The Decimals attribute value for this item. |
void |
setNil(XmlAttribute nil)
|
void |
setPrecision(XmlAttribute precision)
The Precision attribute value for this item. |
void |
setUnitRef(XmlAttribute unitRef)
The Unit ref attribute value identifies the Unit for this item. |
boolean |
validate(ValidationDocument msgs)
Validate this xbrl part (of the instance and/or its supporting discoverable taxonomy set) and add messages on any problem to the given XbrlValidationMessages collection. |
boolean |
validateValue(ValidationDocument msgs)
Validate the value of this item against the datatype that is defined by the concept of this item in the DTS |
| Methods inherited from interface com.batavia.xbrl.instance.Fact |
|---|
createAttribute, createFootnote, createId, getConcept, getFactCompareIdentifier, getFootnotes, getId, getLabel, getType, getXbrlInstanceRoot, isDuplicate, isInferred, isRendered, requestExtraSibblings, setId, setInferred, setRendered, setXbrlInstanceRoot |
| Methods inherited from interface com.batavia.xbrl.instance.InstanceElement |
|---|
createChildElement, getAllowedSubstitutions, getChildren, getMyDiscoverableTaxonomySet, getXbrlRoot |
| Methods inherited from interface com.batavia.xbrl.XbrlElement |
|---|
addChild, fromXbrl, getXbrlElementNameSpace, removeChild, toXbrlStream, toXbrlString |
| Methods inherited from interface com.batavia.xml.XmlParticle |
|---|
destroy, getBaseUri, getParent, getPrefix, getTargetNameSpace, isBoolean, isNumber, p_equal, resolveNamespacePrefix, setParent, toXstring |
| Methods inherited from interface com.batavia.xml.ComparablePart |
|---|
c_equal, identical, s_equal, u_equal, v_equal, x_equal |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface org.relaxng.datatype.ValidationContext |
|---|
isNotation, isUnparsedEntity |
| Methods inherited from interface com.batavia.xml.IdKeeper |
|---|
addIdHolder, getHolder, removeIdHolder |
| Method Detail |
|---|
XmlAttribute getNil()
void setNil(XmlAttribute nil)
nil - The nil attribute to set.XmlAttribute getContextRef()
Context getContext()
Unit getUnit()
void setContextRef(XmlAttribute contextRef)
XmlAttribute - context refXmlAttribute getUnitRef()
void setUnitRef(XmlAttribute unitRef)
XmlAttribute - Unit refXmlAttribute getPrecision()
void setPrecision(XmlAttribute precision)
XmlAttribute - PrecisionXmlAttribute getDecimals()
void setDecimals(XmlAttribute decimals)
XmlAttribute - Decimalsboolean validate(ValidationDocument msgs)
validate in interface XmlElementmsgs - The messages that indicate the problems with the instance and or its supporting
taxonomy set
boolean validateValue(ValidationDocument msgs)
void calculatePrecisionToUse()
int getPrecisionToUse()
java.lang.String getFormattedContent()
double getFormattedValue()
boolean isNumeric()
java.lang.String getFormattedContent(java.lang.Integer overrulingPrecision)
int getInferredPrecision()
boolean isDuplicateExceptParent(Fact otherFact)
isDuplicateExceptParent in interface Factvoid overrulePrecisionToUse(int prec)
prec - that overrules the excisting precision to use.void resetUnit()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||