public class UpdateAttributeFragment extends com.sodius.mdw.internal.metamodel.doors.io.commands.UpdateAttributeFragmentImpl 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); UpdateAttributeFragment fragment = UpdateAttributeFragment.builder("myAttribute").name("myAttributeNewName").defaultValue(10).create(); command.add(fragment); myCommandRunner.run(command);
This class is not intended to be subclassed by clients but may be instantiated.
CommandRunner
,
EditModuleCommand
,
CreateAttributeFragment
Modifier and Type | Class and Description |
---|---|
static class |
UpdateAttributeFragment.Builder
Builds an instance of
UpdateAttributeFragment with specified properties to modify. |
Modifier and Type | Method and Description |
---|---|
static UpdateAttributeFragment.Builder |
builder(String name)
Instantiates a builder which enables to create a
UpdateAttributeFragment with specified properties to modify. |
public static UpdateAttributeFragment.Builder builder(String name)
UpdateAttributeFragment
with specified properties to modify.name
- the name of the existing attribute to modify.UpdateAttributeFragment
instance.