JAVA/CORBA クラス


例:Abbreviated プロパティ
次のエージェントは正規の階層名を作成した後、短縮したフォーマットで表示します。

import lotus.domino.*;

public class JavaAgent extends AgentBase {

public void NotesMain() {

try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();

// (Your code goes here)

// Create a hierarchical name
Name nam = session.createName(
"CN=John B Goode/OU=Sales/OU=East/O=Acme/C=US");

// Returns:
// John B Goode/Sales/East/Acme/US
System.out.println(nam.getAbbreviated());

} catch(Exception e) {
e.printStackTrace();
}
}
}

関連項目