public class RemoveContentCommand extends ExecutableCommandWrapper implements ExecutableCommand
Remove content of an Item
from its segment.
Notes:
Contained by
and References
of the
Item
will be permanently cleared, and no confirmation will occur when executing this command. This command will not delete the
Item
and can only be used on a Item
of type node.Usage:
new RemoveContentCommand(myItem).execute();
Constructor and Description |
---|
RemoveContentCommand(Item item)
Instantiates a command to remove the content of an item.
|
execute
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute
public RemoveContentCommand(Item item)
item
- the item whose content must be removed.