Compiere 3.1

org.compiere.translate
Class AmtInWords_IN

java.lang.Object
  extended by org.compiere.translate.AmtInWords_IN
All Implemented Interfaces:
AmtInWords

public class AmtInWords_IN
extends Object
implements AmtInWords

Amount in Words for Bahasa Indonesia

Version:
$Id: AmtInWords_IN.java,v 1.1 2006/10/04 20:18:09 henglen Exp $
Author:
Halim Englen

Constructor Summary
AmtInWords_IN()
          AmtInWords_IN
 
Method Summary
 String getAmtInWords(String amount)
          Get Amount in Words
static void main(String[] args)
          Test
static String sayNumber(double number)
          Convenient method for #sayNumber(StringBuffer, long).
static String sayNumber(StringBuffer appendTo, double number)
          Say a number.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AmtInWords_IN

public AmtInWords_IN()
AmtInWords_IN

Method Detail

sayNumber

public static String sayNumber(double number)
Convenient method for #sayNumber(StringBuffer, long).

Parameters:
number - number to say
Returns:
said number

sayNumber

public static String sayNumber(StringBuffer appendTo,
                               double number)
                        throws IllegalArgumentException
Say a number. This method will append the result to the given string buffer.

Parameters:
appendTo - the string buffer
number - number to say
Returns:
said number
Throws:
IllegalArgumentException - if the number equals to Long.MIN_VALUE

getAmtInWords

public String getAmtInWords(String amount)
                     throws Exception
Get Amount in Words

Specified by:
getAmtInWords in interface AmtInWords
Parameters:
amount - numeric amount (352.80)
Returns:
amount in words (three*five*two 80/100)
Throws:
Exception

main

public static void main(String[] args)
Test

Parameters:
args - ignored

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.