public class UpdateTypeFragment extends com.sodius.mdw.internal.metamodel.doors.io.commands.UpdateTypeFragmentImpl implements EditModuleFragment
This fragment is intended to be combined into an EditModuleCommand
instance.
Below is a snippet illustrating how to use this fragment (see CommandRunner
for a full snippet):
ModuleRef module = ModuleRef.qualifiedName("/MyFolder/MyModule"); EditModuleCommand command = new EditModuleCommand(module, TerminationMode.SAVE_AND_CLOSE); UpdateTypeFragment fragment = UpdateTypeFragment.builder("myType").name("myTypeNewName").maxValue(30).create(); command.add(fragment); myCommandRunner.run(command);
This class is not intended to be subclassed by clients but may be instantiated.
CommandRunner
,
EditModuleCommand
,
CreateTypeFragment
Modifier and Type | Class and Description |
---|---|
static class |
UpdateTypeFragment.Builder
Builds an instance of
UpdateTypeFragment with specified properties to modify. |
Modifier and Type | Method and Description |
---|---|
static UpdateTypeFragment.Builder |
builder(String name)
Instantiates a builder which enables to create a
UpdateTypeFragment with specified properties to modify. |
public static UpdateTypeFragment.Builder builder(String name)
UpdateTypeFragment
with specified properties to modify.name
- the name of the existing type to modify.UpdateTypeFragment
instance.