JAVA/CORBA クラス


例:DateSep プロパティ、isDateDMY プロパティ、isDateMDY プロパティ、isDateYMD プロパティ、Today プロパティ、Tomorrow プロパティ、および Yesterday プロパティ
次のエージェントは、国別の日付設定 (日付形式が YMD、MDY、DMY のいずれか、年/月/日の区切り文字 (セパレータ)、yesterday、today、および tomorrow 用のキーワード) を表示します。

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();
if (inat.isDateDMY())
System.out.println
("Format of date is \"DMY\"");
if (inat.isDateMDY())
System.out.println
("Format of date is \"MDY\"");
if (inat.isDateYMD())
System.out.println
("Format of date is \"YMD\"");
System.out.println
("Date separator is \"" + inat.getDateSep() + "\"");
System.out.println
("Text of date keywords:" +
inat.getYesterday() + ", " +
inat.getToday() + ", " +
inat.getTomorrow());
} catch(Exception e) {
e.printStackTrace();
}
}
}

関連項目