|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.bea.domingo.proxy.InternationalProxy
public final class InternationalProxy
Proxy to the Notes international settings.
Field Summary | |
---|---|
static java.lang.String |
DATE_FORMAT_DEFAULT
Default date format. |
static java.lang.String |
DATE_FORMAT_DMY
Date format ordered as day/month/year. |
static java.lang.String |
DATE_FORMAT_MDY
Date format ordered as month/day/year. |
static java.lang.String |
DATE_FORMAT_YMD
Date format ordered as year/month/day. |
static char |
DATE_SEPARATOR_DEFAULT
Default separator for date components. |
static java.lang.String |
TIME_FORMAT_24
Time format in 24 hour display. |
static java.lang.String |
TIME_FORMAT_DEFAULT
Default time format. |
static char |
TIME_SEPARATOR_DEFAULT
Default separator for time components. |
static java.lang.String |
TIMEZONE_FORMAT
Format string for time zones in format of RFC 822 , e.g. |
Constructor Summary | |
---|---|
InternationalProxy(lotus.domino.Session theSession,
DNotesMonitor theMonitor)
Constructor. |
Method Summary | |
---|---|
protected java.util.Calendar |
createCalendar(lotus.domino.DateTime dateTime)
Converts a Notes DateTime object into a Calendar. |
protected lotus.domino.DateRange |
createDateRange(java.util.Calendar calendar1,
java.util.Calendar calendar2)
Creates a Notes DateRange instance from two
java.util.Calendar s. |
protected lotus.domino.DateTime |
createDateTime(java.util.Calendar calendar)
Creates a Notes DateTime instance from a
java.util.Calendar . |
protected void |
error(java.lang.String message,
lotus.domino.NotesException e)
Sends an error to the current monitor. |
protected DNotesMonitor |
getMonitor()
Get the current monitor. |
(package private) static int |
getNotesTimeZoneValue(java.util.TimeZone zone,
long date)
Computes the Notes time zone value for a given time zone. |
(package private) int |
getOffset(lotus.domino.DateTime dateTime)
Returns the raw offset of the time zone in milli seconds for a given Notes time zone value. |
protected static int |
getRawOffset(int zoneValue)
Returns the offset in milli seconds for a given Notes time zone value. |
protected void |
info(java.lang.String message,
lotus.domino.NotesException e)
Sends a warning to the current monitor. |
protected boolean |
isDateSet(java.util.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(java.util.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(java.lang.String message,
lotus.domino.NotesException e)
Sends an info to the current monitor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final char DATE_SEPARATOR_DEFAULT
public static final char TIME_SEPARATOR_DEFAULT
public static final java.lang.String DATE_FORMAT_DMY
public static final java.lang.String DATE_FORMAT_MDY
public static final java.lang.String DATE_FORMAT_YMD
public static final java.lang.String DATE_FORMAT_DEFAULT
public static final java.lang.String TIME_FORMAT_24
public static final java.lang.String TIME_FORMAT_DEFAULT
public static final java.lang.String TIMEZONE_FORMAT
Constructor Detail |
---|
public InternationalProxy(lotus.domino.Session theSession, DNotesMonitor theMonitor)
theSession
- the Notes SessiontheMonitor
- the monitorMethod Detail |
---|
protected DNotesMonitor getMonitor()
DNotesFactory.getMonitor()
protected lotus.domino.DateTime createDateTime(java.util.Calendar calendar)
DateTime
instance from a
java.util.Calendar
.
calendar
- the calendar to convert
protected java.util.Calendar createCalendar(lotus.domino.DateTime dateTime)
Milli seconds are cleared in all cases.
dateTime
- a Notes DateTime object
protected lotus.domino.DateRange createDateRange(java.util.Calendar calendar1, java.util.Calendar calendar2)
DateRange
instance from two
java.util.Calendar
s.
calendar1
- the start calendar to convertcalendar2
- the end calendar to convert
static int getNotesTimeZoneValue(java.util.TimeZone zone, long date)
For time zones that are not a full hour increment from GMT, the
return value is an integer in the format mmhh
where
mm
is the minutes component of the time relative to GMT and
hh
is the hours component of the time relative to GMT.
The offset might have changed in history. For this case, a reference date is given to find the correct offset at the given date.
zone
- a Java time zonedate
- a reference date for computing the zone
getOffset(DateTime)
int getOffset(lotus.domino.DateTime dateTime)
dateTime
- a Notes date/time value
getNotesTimeZoneValue(TimeZone, long)
protected static int getRawOffset(int zoneValue)
zoneValue
- Notes time zone value
getOffset(DateTime)
protected boolean isDateSet(lotus.domino.DateTime dateTime)
dateTime
- a Notes DateTime object
true
if a date is defined, else false
protected boolean isTimeSet(lotus.domino.DateTime dateTime)
dateTime
- a Notes DateTime object
true
if a time is defined, else false
protected boolean isTimeSet(java.util.Calendar calendar)
calendar
- a Calendar object
true
if a time is defined, else false
protected boolean isDateSet(java.util.Calendar calendar)
calendar
- a Calendar object
true
if a date is defined, else false
protected void error(java.lang.String message, lotus.domino.NotesException e)
message
- the messagee
- the NotesException, can be nullprotected void info(java.lang.String message, lotus.domino.NotesException e)
message
- the messagee
- the NotesException, can be nullprotected void warn(java.lang.String message, lotus.domino.NotesException e)
message
- the messagee
- the NotesException, can be null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |