Class StateSetTransitionsActionImpl
- All Implemented Interfaces:
ResourceUpdateAction<StateUpdateAction>
,StateSetTransitionsAction
,StateUpdateAction
,io.vrap.rmf.base.client.ModelBase
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.state.StateSetTransitionsAction
SET_TRANSITIONS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Value to set.int
hashCode()
void
setTransitions
(StateResourceIdentifier... transitions) Value to set.void
setTransitions
(List<StateResourceIdentifier> transitions) Value to set.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.state.StateSetTransitionsAction
withStateSetTransitionsAction
Methods inherited from interface com.commercetools.api.models.state.StateUpdateAction
withStateUpdateAction
-
Constructor Details
-
StateSetTransitionsActionImpl
public StateSetTransitionsActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceResourceUpdateAction<StateUpdateAction>
- Specified by:
getAction
in interfaceStateUpdateAction
- Returns:
- action
-
getTransitions
Value to set. If empty, any existing value will be removed.
Possible transformations of the current State to other States of the same
type
(for example, Initial -> Shipped). When performing atransitionState
update action andtransitions
is set, the currently referenced State must have a transition to the new State.If
transitions
is an empty list, it means the current State is a final State and no further transitions are allowed. Iftransitions
is not set, the validation is turned off.When performing a
transitionState
update action, any other State of the sametype
can be transitioned to.- Specified by:
getTransitions
in interfaceStateSetTransitionsAction
- Returns:
- transitions
-
setTransitions
Description copied from interface:StateSetTransitionsAction
Value to set. If empty, any existing value will be removed.
Possible transformations of the current State to other States of the same
type
(for example, Initial -> Shipped). When performing atransitionState
update action andtransitions
is set, the currently referenced State must have a transition to the new State.If
transitions
is an empty list, it means the current State is a final State and no further transitions are allowed. Iftransitions
is not set, the validation is turned off.When performing a
transitionState
update action, any other State of the sametype
can be transitioned to.- Specified by:
setTransitions
in interfaceStateSetTransitionsAction
- Parameters:
transitions
- values to be set
-
setTransitions
Description copied from interface:StateSetTransitionsAction
Value to set. If empty, any existing value will be removed.
Possible transformations of the current State to other States of the same
type
(for example, Initial -> Shipped). When performing atransitionState
update action andtransitions
is set, the currently referenced State must have a transition to the new State.If
transitions
is an empty list, it means the current State is a final State and no further transitions are allowed. Iftransitions
is not set, the validation is turned off.When performing a
transitionState
update action, any other State of the sametype
can be transitioned to.- Specified by:
setTransitions
in interfaceStateSetTransitionsAction
- Parameters:
transitions
- values to be set
-
equals
-
hashCode
public int hashCode()
-