Class RemoveContentCommand
- java.lang.Object
-
- com.sodius.mdw.metamodel.integrity.io.command.ExecutableCommandWrapper
-
- com.sodius.mdw.metamodel.integrity.io.command.RemoveContentCommand
-
- All Implemented Interfaces:
ExecutableCommand
public class RemoveContentCommand extends ExecutableCommandWrapper implements ExecutableCommand
Remove content of an
Item
from its segment.Notes:
- You should use this command with extreme care, as the fields
Contained by
andReferences
of theItem
will be permanently cleared, and no confirmation will occur when executing this command. This command will not delete theItem
and can only be used on aItem
of type node.
Usage:
new RemoveContentCommand(myItem).execute();
-
-
Constructor Summary
Constructors Constructor Description RemoveContentCommand(Item item)
Instantiates a command to remove the content of an item.
-
Method Summary
-
Methods inherited from class com.sodius.mdw.metamodel.integrity.io.command.ExecutableCommandWrapper
execute
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.sodius.mdw.metamodel.integrity.io.command.ExecutableCommand
execute
-
-
-
-
Constructor Detail
-
RemoveContentCommand
public RemoveContentCommand(Item item)
Instantiates a command to remove the content of an item.- Parameters:
item
- the item whose content must be removed.
-
-