Class TeamBuilderImpl<TS extends TeamSource>
- java.lang.Object
-
- net.officefloor.frame.impl.construct.team.TeamBuilderImpl<TS>
-
- All Implemented Interfaces:
TeamBuilder<TS>
,TeamConfiguration<TS>
public class TeamBuilderImpl<TS extends TeamSource> extends java.lang.Object implements TeamBuilder<TS>, TeamConfiguration<TS>
Implements theTeamBuilder
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description TeamBuilderImpl(java.lang.String teamName, java.lang.Class<TS> teamSourceClass)
Initiate.TeamBuilderImpl(java.lang.String teamName, TS teamSource)
Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProperty(java.lang.String name, java.lang.String value)
Specifies a property for theTeamSource
.SourceProperties
getProperties()
Obtains theSourceProperties
for initialising theTeamSource
.java.lang.String
getTeamName()
Obtains the name of theTeam
.int
getTeamSize()
Obtains the size of theTeam
.TS
getTeamSource()
Obtains theTeamSource
instance to use.java.lang.Class<TS>
getTeamSourceClass()
Obtains theClass
of theTeamSource
.boolean
isRequestNoTeamOversight()
Indicates if requested noTeamOversight
.void
requestNoTeamOversight()
void
setTeamSize(int teamSize)
-
-
-
Constructor Detail
-
TeamBuilderImpl
public TeamBuilderImpl(java.lang.String teamName, TS teamSource)
Initiate.- Parameters:
teamName
- Name of theTeam
.teamSource
-TeamSource
.
-
TeamBuilderImpl
public TeamBuilderImpl(java.lang.String teamName, java.lang.Class<TS> teamSourceClass)
Initiate.- Parameters:
teamName
- Name of theTeam
.teamSourceClass
-Class
of theTeamSource
.
-
-
Method Detail
-
setTeamSize
public void setTeamSize(int teamSize)
Description copied from interface:TeamBuilder
- Specified by:
setTeamSize
in interfaceTeamBuilder<TS extends TeamSource>
- Parameters:
teamSize
-Team
size.
-
requestNoTeamOversight
public void requestNoTeamOversight()
Description copied from interface:TeamBuilder
Requests to the
Executive
that there be noTeamOversight
for theTeam
.Respecting this request is
Executive
implementation specific.- Specified by:
requestNoTeamOversight
in interfaceTeamBuilder<TS extends TeamSource>
-
addProperty
public void addProperty(java.lang.String name, java.lang.String value)
Description copied from interface:TeamBuilder
Specifies a property for theTeamSource
.- Specified by:
addProperty
in interfaceTeamBuilder<TS extends TeamSource>
- Parameters:
name
- Name of property.value
- Value of property.
-
getTeamName
public java.lang.String getTeamName()
Description copied from interface:TeamConfiguration
Obtains the name of theTeam
.- Specified by:
getTeamName
in interfaceTeamConfiguration<TS extends TeamSource>
- Returns:
- Name of the
Team
.
-
getTeamSize
public int getTeamSize()
Description copied from interface:TeamConfiguration
Obtains the size of theTeam
.- Specified by:
getTeamSize
in interfaceTeamConfiguration<TS extends TeamSource>
- Returns:
Team
size.
-
isRequestNoTeamOversight
public boolean isRequestNoTeamOversight()
Description copied from interface:TeamConfiguration
Indicates if requested noTeamOversight
.- Specified by:
isRequestNoTeamOversight
in interfaceTeamConfiguration<TS extends TeamSource>
- Returns:
true to request no TeamOversight
.
-
getTeamSource
public TS getTeamSource()
Description copied from interface:TeamConfiguration
Obtains theTeamSource
instance to use.- Specified by:
getTeamSource
in interfaceTeamConfiguration<TS extends TeamSource>
- Returns:
TeamSource
instance to use. This may benull
and therefore theTeamConfiguration.getTeamSourceClass()
should be used to obtain theTeamSource
.
-
getTeamSourceClass
public java.lang.Class<TS> getTeamSourceClass()
Description copied from interface:TeamConfiguration
Obtains theClass
of theTeamSource
.- Specified by:
getTeamSourceClass
in interfaceTeamConfiguration<TS extends TeamSource>
- Returns:
Class
of theTeamSource
.
-
getProperties
public SourceProperties getProperties()
Description copied from interface:TeamConfiguration
Obtains theSourceProperties
for initialising theTeamSource
.- Specified by:
getProperties
in interfaceTeamConfiguration<TS extends TeamSource>
- Returns:
SourceProperties
for initialising theTeamSource
.
-
-