com.ihr.xbrl.om.instance
Class XBRLFractionValue

java.lang.Object
  extended by com.ihr.xbrl.om.instance.XBRLFractionValue
All Implemented Interfaces:
XBRLNumber

public class XBRLFractionValue
extends java.lang.Object
implements XBRLNumber

Author:
Ignacio

Field Summary
 
Fields inherited from interface com.ihr.xbrl.om.instance.XBRLNumber
DECIMALS, INF, PRECISION
 
Constructor Summary
XBRLFractionValue(XBRLFactNumeric fact, java.lang.Number numerator, java.lang.Number denominator)
           
 
Method Summary
 XBRLFractionValue clone()
           
 boolean eq(XBRLNumber vb)
           
 java.lang.String getDecimals()
          Convert precision value into decimals value if needed and returns the decimals value It is returned as a string because "INF" is a valid value.
 java.lang.Number getDenominator()
           
 XBRLFactNumeric getFact()
          Access to the XBRLFactNumeric that is the container of this XBRLNumericValue.
 double getFractionValue()
           
 int getInferredPrecision()
          Gets the inferred precision for this numeric value
 java.lang.Number getNumerator()
           
 boolean isBlank()
          true if this XBRLNumericValue has no value assigned
 XBRLNumber multiply(double weight)
           
 boolean ne(XBRLNumber other)
           
 XBRLNumber plus(XBRLNumber multiply)
           
 void setDenominator(java.lang.Number denominator)
           
 void setFact(XBRLFactNumeric factNumeric)
           
 void setNumerator(java.lang.Number numerator)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ihr.xbrl.om.instance.XBRLNumber
hashCode
 

Constructor Detail

XBRLFractionValue

public XBRLFractionValue(XBRLFactNumeric fact,
                         java.lang.Number numerator,
                         java.lang.Number denominator)
Method Detail

getNumerator

public java.lang.Number getNumerator()
Returns:
the numerator

getDenominator

public java.lang.Number getDenominator()
Returns:
the denominator

setNumerator

public void setNumerator(java.lang.Number numerator)
Parameters:
numerator - the numerator to set

setDenominator

public void setDenominator(java.lang.Number denominator)
Parameters:
denominator - the denominator to set

clone

public XBRLFractionValue clone()
Specified by:
clone in interface XBRLNumber
Overrides:
clone in class java.lang.Object
Returns:

getDecimals

public java.lang.String getDecimals()
Description copied from interface: XBRLNumber
Convert precision value into decimals value if needed and returns the decimals value It is returned as a string because "INF" is a valid value.

Specified by:
getDecimals in interface XBRLNumber
Returns:
String

getFact

public XBRLFactNumeric getFact()
Description copied from interface: XBRLNumber
Access to the XBRLFactNumeric that is the container of this XBRLNumericValue.

It may be null

Specified by:
getFact in interface XBRLNumber
Returns:
XBRLFactNumeric or null

getInferredPrecision

public int getInferredPrecision()
Description copied from interface: XBRLNumber
Gets the inferred precision for this numeric value

Specified by:
getInferredPrecision in interface XBRLNumber
Returns:
integer

isBlank

public boolean isBlank()
Description copied from interface: XBRLNumber
true if this XBRLNumericValue has no value assigned

Specified by:
isBlank in interface XBRLNumber
Returns:
the bBlank

setFact

public void setFact(XBRLFactNumeric factNumeric)
Specified by:
setFact in interface XBRLNumber

eq

public boolean eq(XBRLNumber vb)
Specified by:
eq in interface XBRLNumber
Returns:

multiply

public XBRLNumber multiply(double weight)
Specified by:
multiply in interface XBRLNumber
Returns:

ne

public boolean ne(XBRLNumber other)
Specified by:
ne in interface XBRLNumber
Returns:

plus

public XBRLNumber plus(XBRLNumber multiply)
Specified by:
plus in interface XBRLNumber
Returns:

getFractionValue

public double getFractionValue()
Returns:


Copyright 2006-2009 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa