JAVA/CORBA クラス


例:CurrencySymbol プロパティ、IsCurrencySpace プロパティ、IsCurrencySuffix プロパティ
次のエージェントは、通貨の国別設定値を表示します。表示する設定値は、通貨記号、通貨記号と数値の間にスペースを入れるかどうか、通貨記号を数値の後に付けるかどうか、です。

import lotus.domino.*;
public class JavaAgent extends AgentBase {
 public void NotesMain() {
   try {
     Session session = getSession();
     AgentContext agentContext = session.getAgentContext();
     // (Your code goes here)
     International inat = session.getInternational();
     System.out.println("Currency symbol is \"" +
     inat.getCurrencySymbol() + "\"");
     if (inat.isCurrencySpace())
       System.out.println
       ("Space between currency symbol and number");
     else
       System.out.println
       ("No space between currency symbol and number");
     if (inat.isCurrencySuffix())
       System.out.println
       ("Currency symbol follows number");
     else
       System.out.println
       ("Currency symbol does not follow number");
   } catch(Exception e) {
     e.printStackTrace();
   }
 }
}

関連項目