ConcreteClass
- The specific subclass that needs to be returned in setters for the
method chaining pattern so that subclass setters are still
available after using one of the setters in this class.public abstract class ParticipantCreateArgs<ConcreteClass extends ParticipantCreateArgs<?>> extends Object
Participant
instances. This class is intended for
method chaining. Subclasses exist for each participant type.Constructor and Description |
---|
ParticipantCreateArgs() |
Modifier and Type | Method and Description |
---|---|
ParticipantConfig |
getConfig()
Returns the
ParticipantConfig to be used for the new
Participant . |
Participant |
getParent()
Returns the parent
Participant of the Participant to
create. |
Scope |
getScope()
Returns the
Scope to be used for the new Participant . |
ConcreteClass |
setConfig(ParticipantConfig config)
Sets the
ParticipantConfig to be used for the Participant
. |
ConcreteClass |
setParent(Participant parent)
Sets the parent
Participant of the Participant to create. |
ConcreteClass |
setScope(Scope scope)
Sets the
Scope to be used for the Participant . |
public ConcreteClass setConfig(ParticipantConfig config)
ParticipantConfig
to be used for the Participant
.config
- new config to use. Can be null
in case the
default configuration shall be used.public ConcreteClass setScope(Scope scope)
Scope
to be used for the Participant
.scope
- new scope to use. Must not be null
.public ParticipantConfig getConfig()
ParticipantConfig
to be used for the new
Participant
.public Scope getScope()
Scope
to be used for the new Participant
.public Participant getParent()
Participant
of the Participant
to
create.Participant
to create or
null
if no parent.public ConcreteClass setParent(Participant parent)
Participant
of the Participant
to create.parent
- the parent to set or null
for no parentCopyright © 2018 CoR-Lab. All rights reserved.