|
© 2004 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.beasys.commerce.foundation.BelongingImpl
com.beasys.commerce.foundation.StateImpl
Represents a discrete state in a state machine or workflow. It is
contained by a StateMachine
and refered to by Transitions
State
,
StateHome
,
Serialized FormField Summary | |
String |
name
A name that identifies the state uniquely within the context of a state machine. |
Fields inherited from class com.beasys.commerce.foundation.BelongingImpl |
__classIdentifier, __containingBelonging, __containingEntity, __mapKey, __sequenceNumber, _isDirty |
Constructor Summary | |
StateImpl()
|
Method Summary | |
int |
compareTo(Object o)
Compares a given object with this Belonging. |
void |
enter(Transition trans)
This method is invoked whenever the state is entered. |
void |
error(Transition trans)
This method is invoked whenever the state is transitioned from in erro. |
void |
exit(Transition trans)
This method is invoked whenever the state is transitioned from. |
TransitionPolicy |
getEnterPolicy()
Get the transition policy that is invoked when the state is entered. |
TransitionPolicy |
getErrorPolicy()
Set the transition policy that is invoked when the state is exited with an invalid transition. |
TransitionPolicy |
getExitPolicy()
Get the transition policy that is invoked when the state is exited. |
String |
getName()
Get the value of name |
String |
interfaceName()
Returns the unqualified name of the interface as specified in the UML model. |
void |
setByValue(Belonging value)
Intializes the Belonging based upon a supplied Belonging . |
void |
setEnterPolicy(TransitionPolicy policy)
Set a transition policy that is invoked when the state is entered. |
void |
setErrorPolicy(TransitionPolicy policy)
Set a transition policy that is invoked when the state is exited with an invalid transition. |
void |
setExitPolicy(TransitionPolicy policy)
Set a transition policy that is invoked when the state is exited. |
void |
setName(String name)
Set the value of name |
Belonging |
value()
Returns a type safe shallow copy of the Belonging instance. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.beasys.commerce.foundation.Belonging |
clone, equals |
Field Detail |
public String name
name
[State] <*>------> [java.lang.String
]
Constructor Detail |
public StateImpl()
Method Detail |
public int compareTo(Object o)
BelongingImpl
compareTo
in interface Comparable
compareTo
in class BelongingImpl
o
- the Object to be compared.
public void enter(Transition trans)
enter
in interface State
public void error(Transition trans)
error
in interface State
public void exit(Transition trans)
exit
in interface State
public TransitionPolicy getEnterPolicy()
getEnterPolicy
in interface State
public TransitionPolicy getErrorPolicy()
getErrorPolicy
in interface State
public TransitionPolicy getExitPolicy()
getExitPolicy
in interface State
public String getName()
getName
in interface State
public String interfaceName()
Belonging
interfaceName
in interface Belonging
public void setByValue(Belonging value)
Belonging
Belonging
based upon a supplied Belonging
.
setByValue
in interface Belonging
setByValue
in class BelongingImpl
value
- The Belonging
to use for initialization.public void setEnterPolicy(TransitionPolicy policy)
setEnterPolicy
in interface State
public void setErrorPolicy(TransitionPolicy policy)
setErrorPolicy
in interface State
public void setExitPolicy(TransitionPolicy policy)
setExitPolicy
in interface State
public void setName(String name)
setName
in interface State
name
- name to be addedpublic Belonging value()
Belonging
value
in interface Belonging
|
© 2004 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |