public class TransitionModel extends AbstractModel
A path from this state to another state triggered by an event. Transitions may execute one or more actions. All transition actions must execute successfully for the transition itself to complete. If no transition target is specified, the transition acts as a simple event handler and does not change the state of the flow.
Constructor and Description |
---|
TransitionModel()
Create a transition model
|
Modifier and Type | Method and Description |
---|---|
Model |
createCopy()
Create a deep copy of this model.
|
java.util.LinkedList |
getActions() |
java.util.LinkedList |
getAttributes() |
java.lang.String |
getBind() |
java.lang.String |
getHistory() |
java.lang.String |
getOn() |
java.lang.String |
getOnException() |
SecuredModel |
getSecured() |
java.lang.String |
getTo() |
java.lang.String |
getValidate() |
boolean |
isMergeableWith(Model model)
Determine if the model is able to be merged into the current model
|
void |
merge(Model model)
Merge the model into the current model
|
void |
setActions(java.util.LinkedList actions) |
void |
setAttributes(java.util.LinkedList attributes) |
void |
setBind(java.lang.String bind) |
void |
setHistory(java.lang.String history) |
void |
setOn(java.lang.String on) |
void |
setOnException(java.lang.String onException) |
void |
setSecured(SecuredModel secured) |
void |
setTo(java.lang.String to) |
void |
setValidate(java.lang.String validate) |
public boolean isMergeableWith(Model model)
Model
model
- the model to comparepublic void merge(Model model)
Model
model
- the model to merge withpublic Model createCopy()
Model
public java.lang.String getOn()
public void setOn(java.lang.String on)
on
- the on to setpublic java.lang.String getOnException()
public void setOnException(java.lang.String onException)
onException
- the on exception to setpublic java.lang.String getTo()
public void setTo(java.lang.String to)
to
- the to to setpublic java.lang.String getBind()
public void setBind(java.lang.String bind)
bind
- the bind to setpublic java.lang.String getValidate()
public void setValidate(java.lang.String validate)
validate
- the validate to setpublic java.lang.String getHistory()
public void setHistory(java.lang.String history)
history
- the history to setpublic java.util.LinkedList getAttributes()
public void setAttributes(java.util.LinkedList attributes)
attributes
- the attributes to setpublic SecuredModel getSecured()
public void setSecured(SecuredModel secured)
secured
- the secured to setpublic java.util.LinkedList getActions()
public void setActions(java.util.LinkedList actions)
actions
- the actions to set