# com.beasys.commerce.foundation
TransitionImpl Class

public class TransitionImpl
extends `BelongingImpl`
implements `Transition`

A named transition from one `State``` to another state. The name is generally considered to represent an event. This class is used by the Businsess Smart Workflow generator.

Related Topics

``Transition``
``TransitionHome``

Hierarchy
  `Object`
  `BelongingImpl`
  `TransitionImpl`

All Implemented Interfaces
  `Belonging`, `BusinessSmartComponent`, `Cloneable`, `Comparable`, `RelationalReference`, `Serializable`, `Transition`

## Field Summary

`public `State`` | `endState` The targeted state for this transition.
`public `String`` | `name` The event that triggers this transition.
`public `State`` | `startState` The begining state for this transition.

Fields from com.beasys.commerce.foundation`.`BelongingImpl``
``__classIdentifier`, `__containingBelonging`, `__containingEntity`, `__mapKey`, `__sequenceNumber`, `_isDirty``

## Constructor Summary

TransitionImpl()

## Method Summary

`public int` | `compareTo`(`Object` o) Compares a given object with this Belonging.
`public `State`` | `getEndState`() Get the value of endState
`public `String`` | `getName`() Get the value of name
`public `State`` | `getStartState`() Get the value of startState
`public `String`` | `interfaceName`() Returns the unqualified name of the interface as specified in the UML model.
`public void` | `setByValue`(`Belonging` value) Intializes the `Belonging` based upon a supplied `Belonging`.
`public void` | `setEndState`(`State` endState) Set the value of endState
`public void` | `setName`(`String` name) Set the value of name
`public void` | `setStartState`(`State` startState) Set the value of startState
`public `Belonging`` | `value`() Returns a type safe shallow copy of the Belonging instance.

Methods from `com.beasys.commerce.foundation.`BelongingImpl``
``clearRelationalBinding`, `clearRelationalBinding`, `clearRelationalBinding`, `clearRelationalBinding`, `clone`, `doRelationalBinding`, `doRelationalBinding`, `doRelationalBindingOnElement`, `doRelationalBindingOnElement`, `doRelationalBindingOnElement`, `doRelationalBindingOnSingleton`, `doRelationalBindingOnSingleton`, `doRelationalBindingOnSingleton`, `doRelationalBindingWithMapKey`, `doRelationalBindingWithMapKey`, `doRelationalBindingWithMapKey`, `enumerateRelationalBinding`, `enumerateRelationalBinding`, `equals`, `get__classIdentifier`, `get__containingBelonging`, `get__containingEntity`, `get__containingEntityReference`, `get__mapKey`, `get__sequenceNumber`, `getPersistenceHelperPlugin`, `hashCode`, `set__classIdentifier`, `set__containingBelonging`, `set__containingEntity`, `set__containingEntityReference`, `set__mapKey`, `toString``

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods from interface `com.beasys.commerce.foundation.`Belonging``
``clone`, `equals`, `interfaceName`, `setByValue`, `value``

Methods from interface `java.lang.`Comparable``
`compareTo`

Methods from interface `com.beasys.commerce.foundation.`RelationalReference``
``get__classIdentifier`, `get__containingBelonging`, `get__containingEntity`, `get__mapKey`, `get__sequenceNumber`, `set__containingBelonging`, `set__containingEntity`, `set__mapKey``

Methods from interface `com.beasys.commerce.foundation.`Transition``
``getEndState`, `getName`, `getStartState`, `setEndState`, `setName`, `setStartState``

## Field Detail

### endState

    public State endState

  The targeted state for this transition.

                        endState
       [Transition] <*>------> [State]

### name

    public String name

  The event that triggers this transition.

                        name
       [Transition] <*>------> [String]

### startState

    public State startState

  The begining state for this transition.

                        startState
       [Transition] <*>------> [State]

## Constructor Detail

### TransitionImpl

    public TransitionImpl()

## Method Detail

### compareTo(Object) Method

    public int compareTo(Object o)

Description copied from `BelongingImpl.compareTo(Object)`
Compares a given object with this Belonging.

Overrides
  `BelongingImpl.compareTo(Object)`

#### Parameters

o
  the Object to be compared.

#### Returns

a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

### getEndState() Method

    public State getEndState()

Get the value of endState

#### Returns

endState.

### getName() Method

    public String getName()

Get the value of name

#### Returns

name.

### getStartState() Method

    public State getStartState()

Get the value of startState

#### Returns

startState.

### interfaceName() Method

    public String interfaceName()

Description copied from `Belonging.interfaceName()`
Returns the unqualified name of the interface as specified in the UML model.

#### Returns

The unqualified name of the belonging interface.

### setByValue(Belonging) Method

    public void setByValue(Belonging value)

Description copied from `Belonging.setByValue(Belonging)`
Intializes the `Belonging` based upon a supplied `Belonging`.

Overrides
  `BelongingImpl.setByValue(Belonging)`

#### Parameters

value
  The `Belonging` to use for initialization.

### setEndState(State) Method

    public void setEndState(State endState)

Set the value of endState

#### Parameters

endState
  endState to be added

### setName(String) Method

    public void setName(String name)

Set the value of name

#### Parameters

name
  name to be added

### setStartState(State) Method

    public void setStartState(State startState)

Set the value of startState

#### Parameters

startState
  startState to be added

### value() Method

    public Belonging value()

Description copied from `Belonging.value()`
Returns a type safe shallow copy of the Belonging instance.

#### Returns

A type safe shallow copy of this Belonging.