public interface XBRLNumber
| Modifier and Type | Interface and Description | 
|---|---|
| static class  | XBRLNumber.ExactitudeModeThe Enum ExactitudeMode. | 
| Modifier and Type | Field and Description | 
|---|---|
| static java.text.DecimalFormat | bfThe bf. | 
| static int | INFThe Constant INF: This is used to represent either  decimals="INF"orprecision="INF"using an integer value to be returned by 
 thegetDecimalsRealOrInferred()or thegetPrecisionRealOrInferred()function. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | clear()Clear. | 
| XBRLNumber | clone()Clone. | 
| boolean | eq(XBRLNumber vb)Eq. | 
| boolean | equals(XBRLNumber other)returns the result of comparing the values of the fields for
 that are part of the XBRLNumeric value. | 
| java.math.BigDecimal | getBigDecimal()If this XBRLNumber is a numeric value, this method returns a BigDecimal of the value. | 
| int | getDecimalsRealOrInferred()Returns the accuracy of a fact as if it was reported using the  decimalsattribute. | 
| java.lang.String | getFinancialString()Returns a string representation of the number that satisfies common understanding
 by financial users, this method is used while formatting the values in the error messages,
 and might be used in other places. | 
| java.lang.String | getFriendlyName(int flags,
               LabelsProvider lp)Gets the friendly name. | 
| int | getPrecisionRealOrInferred()Returns the accuracy of a fact as if it was reported using the  precisionattribute. | 
| java.lang.Number | getValue()Access to the surrounding number value this object is encapsulating. | 
| int | hashCode()Hash code. | 
| boolean | isBlank()true if this XBRLNumericValue has no value assigned . | 
| boolean | isFraction()Checks if is fraction. | 
| boolean | isNumber()Checks if is number. | 
| boolean | isSameValue(XBRLNumber newVal)This compares this number representation with newVal number 
 representation. | 
| XBRLNumber | multiply(double weight)Multiply. | 
| boolean | ne(XBRLNumber sumItem)Ne. | 
| XBRLNumber | plus(XBRLNumber sum)Plus. | 
| XBRLNumber | round()applies round to defined decimals or precision attribute value and returns a new
 XBRLNumber. | 
| XBRLNumber | roundTo(int precisionOrDecimals)Rounds the number to the specified value in the  precisionOrDecimalsparameter. | 
static final int INF
decimals="INF" or
 precision="INF" using an integer value to be returned by 
 the getDecimalsRealOrInferred() or the getPrecisionRealOrInferred()
 function.
 
 When a fact value is represented with either decimals="INF" or
 precision="INF" the lexical representation of the fact value 
 corresponds exactly with what is written in the xml element and no rounding has
 to be executed on that number.
static final java.text.DecimalFormat bf
boolean isBlank()
int getDecimalsRealOrInferred()
decimals
 attribute. If the real representation of the accuracy is decimals then
 this method returns the value of the decimals attribute. Otherwise, the
 precision is converted to the equivalent (nearest) decimals 
 attribute and it is returned.
 
 If the decimals or precision attribute is "INF" this method
 returns the INF constant that shall not be compared against any other value
 that is not INF
int getPrecisionRealOrInferred()
precision
 attribute. If the real representation of the accuracy is precision then
 this method returns the value of the precision attribute. Otherwise, the
 decimals is converted to the equivalent (nearest) precision 
 attribute and it is returned.
 
 If the precision or decimals attribute is "INF" this method
 returns the INF constant that shall not be compared against any other value
 that is not INF
int hashCode()
hashCode in class java.lang.ObjectXBRLNumber clone()
boolean eq(XBRLNumber vb)
vb - the vbXBRLNumber multiply(double weight)
weight - the weightXBRLNumber plus(XBRLNumber sum)
sum - the sumboolean ne(XBRLNumber sumItem)
sumItem - the sum itemjava.lang.String getFriendlyName(int flags,
                                 LabelsProvider lp)
flags - XMLFragment.HIDE_COMMON_ACCURACY can be used to remove suffixeslp - (can be null, it is not used)boolean isSameValue(XBRLNumber newVal)
newVal - the new valvoid clear()
boolean isFraction()
boolean isNumber()
XBRLNumber roundTo(int precisionOrDecimals)
precisionOrDecimals
 parameter. This method raises a UnsupportedOperationException exception if the 
 method is applied to a fraction numberprecisionOrDecimals - the precision or decimalsisNumber(), 
isFraction()XBRLNumber round()
isNumber(), 
isFraction(), 
roundTo(int)java.lang.String getFinancialString()
java.math.BigDecimal getBigDecimal()
java.lang.Number getValue()
Return null if the value is nil and the fact is assigned and isNil() returns true otherwise this returns the value, that also may be null.
boolean equals(XBRLNumber other)
eq method. in other words
 two XBRLNumber might satisfy eq and not satisfy
 equalsother - the otherCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa