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();
}
}
}

関連項目