|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.notes.java.api.util.NotesDocumentUtil
public class NotesDocumentUtil
Utility class containing static methods to assist manipulating back-end documents.
| Method Summary | |
|---|---|
static void |
appendItemValues(Document document,
Map fields)
Append the given fields to the document. |
static Calendar |
getCalendar(int year,
int month,
int day,
int hour,
int minutes,
int seconds,
int milli,
TimeZone zone)
Returns the calendar with the specified date and time set. |
static Calendar |
getCalendarDate(int year,
int month,
int day)
Returns the calendar with the specified date. |
static Calendar |
getCalendarTime(int hour,
int minutes,
int seconds,
int milli)
Returns the calendar with the specified time. |
static DateTime |
getDateTime(Session session,
Calendar cal)
Creates a DateTime object from the specified Calendar object and session. |
static DateTime |
getDateTime(Session session,
Date date)
Creates a DateTime object from the specified Date object and session. |
static boolean |
hasDate(Calendar calendar)
Determines whether the given calendar contains date information. |
static boolean |
hasTime(Calendar calendar)
Determines whether the calendar contains time information. |
static void |
setForm(Document document,
String form)
Sets the form value on the given document. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void appendItemValues(Document document,
Map fields)
throws NotesException
document - document to append fields tofields - map from field name to value; the following value types will be created from the noted Objects:NotesException - thrown when the values cannot be appended
public static void setForm(Document document,
String form)
throws NotesException
document - document to set form onform - name of the form
NotesException - thrown when the form cannot be setpublic static boolean hasTime(Calendar calendar)
calendar - calendar to operate on
public static boolean hasDate(Calendar calendar)
calendar - calendar to operate on
public static Calendar getCalendarDate(int year,
int month,
int day)
year - year to set the calendar tomonth - month to set the calendar today - day to set the calendar to
public static Calendar getCalendarTime(int hour,
int minutes,
int seconds,
int milli)
hour - hour to set the calendar tominutes - minutes to set the calendar toseconds - seconds to set the calendar tomilli - milliseconds to set the calendar to
public static Calendar getCalendar(int year,
int month,
int day,
int hour,
int minutes,
int seconds,
int milli,
TimeZone zone)
year - year to set the calendar tomonth - month to set the calendar today - day to set the calendar tohour - hour to set the calendar tominutes - minutes to set the calendar toseconds - seconds to set the calendar tomilli - milliseconds to set the calendar tozone - time zone to set the calendar to
public static DateTime getDateTime(Session session,
Date date)
throws NotesException
session - session to create the DateTime object fromdate - date to set the DateTime object to
NotesException - thrown when the DateTime object cannot be created from the session
public static DateTime getDateTime(Session session,
Calendar cal)
throws NotesException
session - session to create the DateTime object fromcal - calendar to set the DateTime object to
NotesException - thrown when the DateTime object cannot be created from the session
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||