public final class InternationalProxy extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
DATE_FORMAT_DEFAULT
Default date format.
|
static String |
DATE_FORMAT_DMY
Date format ordered as day/month/year.
|
static String |
DATE_FORMAT_MDY
Date format ordered as month/day/year.
|
static String |
DATE_FORMAT_YMD
Date format ordered as year/month/day.
|
static char |
DATE_SEPARATOR_DEFAULT
Default separator for date components.
|
static String |
TIME_FORMAT_24
Time format in 24 hour display.
|
static String |
TIME_FORMAT_DEFAULT
Default time format.
|
static char |
TIME_SEPARATOR_DEFAULT
Default separator for time components.
|
static String |
TIMEZONE_FORMAT
Format string for time zones in format of RFC 822 , e.g.
|
| Constructor and Description |
|---|
InternationalProxy(lotus.domino.Session theSession,
DNotesMonitor theMonitor)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected Calendar |
createCalendar(lotus.domino.DateTime dateTime)
Converts a Notes DateTime object into a Calendar.
|
protected lotus.domino.DateRange |
createDateRange(Calendar calendar1,
Calendar calendar2)
Creates a Notes
DateRange instance from two
java.util.Calendars. |
protected lotus.domino.DateTime |
createDateTime(Calendar calendar)
Creates a Notes
DateTime instance from a
java.util.Calendar. |
protected void |
error(String message,
lotus.domino.NotesException e)
Sends an error to the current monitor.
|
protected DNotesMonitor |
getMonitor()
Get the current monitor.
|
protected static int |
getRawOffset(int zoneValue)
Returns the offset in milli seconds for a given Notes time zone value.
|
protected void |
info(String message,
lotus.domino.NotesException e)
Sends a warning to the current monitor.
|
protected boolean |
isDateSet(Calendar calendar)
Checks if a Calendar object defines a date.
|
protected boolean |
isDateSet(lotus.domino.DateTime dateTime)
Checks if a DateTime object defines a date.
|
protected boolean |
isTimeSet(Calendar calendar)
Checks if a Calendar object defines a time.
|
protected boolean |
isTimeSet(lotus.domino.DateTime dateTime)
Checks if a DateTime object defines a time.
|
protected void |
warn(String message,
lotus.domino.NotesException e)
Sends an info to the current monitor.
|
public static final char DATE_SEPARATOR_DEFAULT
public static final char TIME_SEPARATOR_DEFAULT
public static final String DATE_FORMAT_DMY
public static final String DATE_FORMAT_MDY
public static final String DATE_FORMAT_YMD
public static final String DATE_FORMAT_DEFAULT
public static final String TIME_FORMAT_24
public static final String TIME_FORMAT_DEFAULT
public static final String TIMEZONE_FORMAT
public InternationalProxy(lotus.domino.Session theSession,
DNotesMonitor theMonitor)
theSession - the Notes SessiontheMonitor - the monitorprotected DNotesMonitor getMonitor()
DNotesFactory.getMonitor()protected lotus.domino.DateTime createDateTime(Calendar calendar)
DateTime instance from a
java.util.Calendar.calendar - the calendar to convertprotected Calendar createCalendar(lotus.domino.DateTime dateTime)
Milli seconds are cleared in all cases.
dateTime - a Notes DateTime objectprotected lotus.domino.DateRange createDateRange(Calendar calendar1, Calendar calendar2)
DateRange instance from two
java.util.Calendars.calendar1 - the start calendar to convertcalendar2 - the end calendar to convertprotected static int getRawOffset(int zoneValue)
zoneValue - Notes time zone valuegetOffset(DateTime)protected boolean isDateSet(lotus.domino.DateTime dateTime)
dateTime - a Notes DateTime objecttrue if a date is defined, else falseprotected boolean isTimeSet(lotus.domino.DateTime dateTime)
dateTime - a Notes DateTime objecttrue if a time is defined, else falseprotected boolean isTimeSet(Calendar calendar)
calendar - a Calendar objecttrue if a time is defined, else falseprotected boolean isDateSet(Calendar calendar)
calendar - a Calendar objecttrue if a date is defined, else falseprotected void error(String message, lotus.domino.NotesException e)
message - the messagee - the NotesException, can be nullprotected void info(String message, lotus.domino.NotesException e)
message - the messagee - the NotesException, can be nullprotected void warn(String message, lotus.domino.NotesException e)
message - the messagee - the NotesException, can be nullCopyright © 2005–2020. All rights reserved.