public final class StateDraftBuilder extends Base
| Modifier and Type | Method and Description |
|---|---|
StateDraftDsl |
build()
Creates a new instance of
StateDraftDsl with the values of this builder. |
T |
description(LocalizedString description)
Sets the
description property of this builder. |
LocalizedString |
getDescription() |
String |
getKey() |
LocalizedString |
getName() |
Set<StateRole> |
getRoles() |
Set<Reference<State>> |
getTransitions() |
StateType |
getType() |
T |
initial(Boolean initial)
Sets the
initial property of this builder. |
Boolean |
isInitial() |
T |
isInitial(Boolean initial)
Sets the
initial property of this builder. |
T |
key(String key)
Sets the
key property of this builder. |
T |
name(LocalizedString name)
Sets the
name property of this builder. |
static StateDraftBuilder |
of(StateDraft template) |
static StateDraftBuilder |
of(String key,
StateType type) |
T |
plusRoles(Set<StateRole> roles)
Concatenate
roles parameter to the roles set property of this builder. |
T |
plusRoles(StateRole roles)
Adds
roles parameter to the roles set property of this builder. |
T |
plusTransitions(Reference<State> transitions)
Adds
transitions parameter to the transitions set property of this builder. |
T |
plusTransitions(Set<Reference<State>> transitions)
Concatenate
transitions parameter to the transitions set property of this builder. |
T |
roles(Set<StateRole> roles)
Sets the
roles property of this builder. |
StateDraftBuilder |
roles(StateRole role) |
T |
transitions(Set<Reference<State>> transitions)
Sets the
transitions property of this builder. |
T |
type(StateType type)
Sets the
type property of this builder. |
public static StateDraftBuilder of(String key, StateType type)
public static StateDraftBuilder of(StateDraft template)
public StateDraftBuilder roles(StateRole role)
public T description(@Nullable LocalizedString description)
description property of this builder.description - the value for StateDraft.getDescription()public T initial(@Nullable Boolean initial)
initial property of this builder.initial - the value for StateDraft.isInitial()public T isInitial(@Nullable Boolean initial)
initial property of this builder.initial - the value for StateDraft.isInitial()public T key(String key)
key property of this builder.key - the value for StateDraft.getKey()public T name(@Nullable LocalizedString name)
name property of this builder.name - the value for StateDraft.getName()public T roles(@Nullable Set<StateRole> roles)
roles property of this builder.roles - the value for StateDraft.getRoles()public T transitions(@Nullable Set<Reference<State>> transitions)
transitions property of this builder.transitions - the value for StateDraft.getTransitions()public T type(StateType type)
type property of this builder.type - the value for StateDraft.getType()@Nullable public LocalizedString getDescription()
public String getKey()
@Nullable public LocalizedString getName()
public StateType getType()
public T plusRoles(Set<StateRole> roles)
roles parameter to the roles set property of this builder.roles - the value for StateDraft.getRoles()public T plusTransitions(Set<Reference<State>> transitions)
transitions parameter to the transitions set property of this builder.transitions - the value for StateDraft.getTransitions()public T plusRoles(StateRole roles)
roles parameter to the roles set property of this builder.roles - the value of the element to add to StateDraft.getRoles()public T plusTransitions(Reference<State> transitions)
transitions parameter to the transitions set property of this builder.transitions - the value of the element to add to StateDraft.getTransitions()public StateDraftDsl build()
StateDraftDsl with the values of this builder.build in interface Builder<StateDraftDsl>