copyItem (Document - Java)

Copies an item into the current document and optionally assigns the copied item a new name.

Defined in

Document

Syntax

public Item copyItem(Item item)
    throws NotesException
public Item copyItem(Item item, String newname)
    throws NotesException

Parameters

Item item

The item, usually from another document, that you want to copy. Cannot be null.

String newname

The name to assign to the copied item. Specify null to retain the existing name of the item.

Return value

Item

A copy of the specified item parameter, identical except for its newname.

Example