Examples: Generation property
This agent creates a hierarchical name then displays its generation component.
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 Jr/OU=Sales/OU=East/O=Acme/C=US/S=Goode/G=John/I=B/Q=Jr");
// Returns:
// Jr
System.out.println(nam.getGeneration());
} catch(Exception e) {
e.printStackTrace();
}
}
}