Examples: International class
This agent examines three international settings and displays a setting's value if it deviates from what the agent considers standard.
import lotus.domino.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
// (Your code goes here)
boolean except = false;
International inat = session.getInternational();
if (!inat.getCurrencySymbol().equals("$")) {
System.out.println("Currency symbol is " +
inat.getCurrencySymbol());
except = true; }
if (!inat.getDecimalSep().equals(".")) {
System.out.println("Decimal separator is " +
inat.getDecimalSep());
except = true; }
if (inat.isTime24Hour()) {
System.out.println("Time is 24-hour");
except = true; }
if (!except) {
System.out.println("No exceptions"); }
} catch(Exception e) {
e.printStackTrace();
}
}
}