com.mindoo.remote.api.com.ibm.notes.java.ui.documents
Interface IRemoteNotesBEDocument


public interface IRemoteNotesBEDocument

Remote API Wrapper for the com.ibm.notes.java.ui.documents.NotesBEDocument (Online documentation)

Original documentation:
An Object that provides access to change and add information to a Notes back-end document.


Method Summary
 java.util.Calendar getItemCalendar(java.lang.String name)
          Return the value as a Calendar for the given item.
 double getItemDouble(java.lang.String name)
          Return the value as a Double for the given item.
 int getItemInteger(java.lang.String name)
          Return the value as an Integer for the given item.
 java.util.List getItemList(java.lang.String name)
          Return the values as a List for the given item.
 java.lang.String getItemString(java.lang.String name)
          Return the values as a String for the given item.
 boolean hasItem(java.lang.String name)
          Returns true if the item exists on the document.
 void removeItem(java.lang.String name)
          Remove the item with the given name from the document.
 void setItemValue(java.lang.String name, java.lang.Object value)
          Replaces all items of the specified name with one new item, which is assigned the specified value.
 

Method Detail

removeItem

void removeItem(java.lang.String name)
                throws RemoteEclipseAPIException
Remove the item with the given name from the document.

Parameters:
name - name of item to remove
Throws:
RemoteEclipseAPIException

setItemValue

void setItemValue(java.lang.String name,
                  java.lang.Object value)
                  throws RemoteEclipseAPIException
Replaces all items of the specified name with one new item, which is assigned the specified value. If the document does not contain an item with the specified name, this method creates a new item and adds it to the document.

Note that there is a limit to the number of characters you can use to set the value on an item. If the length of the value passed into this method exceeds 30,000 characters, you may see unexpected results.

Parameters:
name - the item name
value - value to set, the following value types will be created from the noted Objects:
Text: String
Number: Integer, Double
DateTime: Calendar, Date
List: Collection of single type of above items
Throws:
RemoteEclipseAPIException

getItemList

java.util.List getItemList(java.lang.String name)
                           throws RemoteEclipseAPIException
Return the values as a List for the given item. This allows the caller to retrieve every value from each item.

Parameters:
name - name of item
Returns:
the list of all values
Throws:
RemoteEclipseAPIException

hasItem

boolean hasItem(java.lang.String name)
                throws RemoteEclipseAPIException
Returns true if the item exists on the document.

Parameters:
name - name of the item
Returns:
true if the item is on the document, false if the item is not on the document
Throws:
RemoteEclipseAPIException

getItemString

java.lang.String getItemString(java.lang.String name)
                               throws RemoteEclipseAPIException
Return the values as a String for the given item. Multiple values are condensed into a single String.

Parameters:
name - name of the item
Returns:
the value of the item as a String
Throws:
RemoteEclipseAPIException

getItemDouble

double getItemDouble(java.lang.String name)
                     throws RemoteEclipseAPIException
Return the value as a Double for the given item. The first value in the item is returned.

Parameters:
name - name of the item
Returns:
the value of the item as a double
Throws:
RemoteEclipseAPIException

getItemInteger

int getItemInteger(java.lang.String name)
                   throws RemoteEclipseAPIException
Return the value as an Integer for the given item. The first value in the item is returned.

Parameters:
name - name of the item
Returns:
the value of the item as an integer
Throws:
RemoteEclipseAPIException

getItemCalendar

java.util.Calendar getItemCalendar(java.lang.String name)
                                   throws RemoteEclipseAPIException
Return the value as a Calendar for the given item. Calendars allow access to all of the date information. The first value in the item is returned.

Parameters:
name - name of the item
Returns:
the value of the item as a Calendar
Throws:
RemoteEclipseAPIException