public class ModifyEnumImplementation extends java.lang.Object implements ExecutableIF
Name | Description |
---|---|
sourcesession | the reference to use to get the source session. |
Elementid | A String Version of one or more ElemIds as supplied by the MoMaX plugin. |
ElementName | The Name of the Application Element whose instances will be modified. If the Element does not match with the AID of the ElemIds, the rule abort. |
AttributeName | The Application name of the ENUM Attribute. |
NewEnumValue | The new value to set to the attribute. Must be a vliad integer. |
Constructor and Description |
---|
ModifyEnumImplementation() |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Execute the program.
|
XSDContextIF |
getContext()
Get the context.
|
java.lang.Object |
getDescriptor()
Get the xml tree descriptor.
|
void |
init()
Initialize the work and perform checks for a successful execution.
|
void |
setArguments(java.util.Properties arguments)
Set argument property map.
|
void |
setContext(XSDContextIF context)
Set the context.
|
void |
setDescriptor(java.lang.Object descriptor)
Set the xml tree descriptor.
|
void |
terminate()
Terminate the execution.
|
public void init() throws InitializationFailedException
init
in interface ImplementationIF
InitializationFailedException
- if the initialization fails.public void execute() throws ExecutableException
execute
in interface ExecutableIF
ExecutableException
- if execution fails.public void terminate() throws TerminationException
terminate
in interface ExecutableIF
TerminationException
- if termination fails.public XSDContextIF getContext()
getContext
in interface ImplementationIF
public java.lang.Object getDescriptor()
getDescriptor
in interface ImplementationIF
public void setArguments(java.util.Properties arguments) throws InvalidArgumentException
setArguments
in interface ImplementationIF
arguments
- the property mapInvalidArgumentException
- if the arguments are not valid.public void setContext(XSDContextIF context)
setContext
in interface ImplementationIF
context
- the context.public void setDescriptor(java.lang.Object descriptor) throws InvalidDescriptorException
setDescriptor
in interface ImplementationIF
descriptor
- the tree node.InvalidDescriptorException
- if the descriptor isn't valid.