Class TeamLoaderImpl
- java.lang.Object
-
- net.officefloor.compile.impl.team.TeamLoaderImpl
-
- All Implemented Interfaces:
TeamLoader
,IssueTarget
public class TeamLoaderImpl extends java.lang.Object implements TeamLoader, IssueTarget
TeamLoader
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description TeamLoaderImpl(Node node, NodeContext nodeContext)
Initiate for building.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addIssue(java.lang.String issueDescription)
Adds the issue.void
addIssue(java.lang.String issueDescription, java.lang.Throwable cause)
Adds the issue.<TS extends TeamSource>
OfficeFloorTeamSourceTypeloadOfficeFloorTeamSourceType(java.lang.String teamName, java.lang.Class<TS> teamSourceClass, PropertyList propertyList)
Loads and returns theOfficeFloorTeamSourceType
.OfficeFloorTeamSourceType
loadOfficeFloorTeamSourceType(java.lang.String teamName, TeamSource teamSource, PropertyList propertyList)
Loads and returns theOfficeFloorTeamSourceType
.<TS extends TeamSource>
PropertyListloadSpecification(java.lang.Class<TS> teamSourceClass)
PropertyList
loadSpecification(TeamSource teamSource)
<TS extends TeamSource>
TeamTypeloadTeamType(java.lang.String teamName, java.lang.Class<TS> teamSourceClass, PropertyList propertyList)
Loads and returns theTeamType
sourced from theTeamSource
.TeamType
loadTeamType(java.lang.String teamName, TeamSource teamSource, PropertyList propertyList)
Loads and returns theTeamType
sourced from theTeamSource
.
-
-
-
Constructor Detail
-
TeamLoaderImpl
public TeamLoaderImpl(Node node, NodeContext nodeContext)
Initiate for building.- Parameters:
node
-Node
requiring theTeam
.nodeContext
-NodeContext
.
-
-
Method Detail
-
loadSpecification
public <TS extends TeamSource> PropertyList loadSpecification(java.lang.Class<TS> teamSourceClass)
Description copied from interface:TeamLoader
- Specified by:
loadSpecification
in interfaceTeamLoader
- Type Parameters:
TS
-TeamSource
type.- Parameters:
teamSourceClass
- Class of theTeamSource
.- Returns:
PropertyList
of theTeamSourceProperty
instances of theTeamSourceSpecification
ornull
if issues, which are reported to theCompilerIssues
.
-
loadSpecification
public PropertyList loadSpecification(TeamSource teamSource)
Description copied from interface:TeamLoader
- Specified by:
loadSpecification
in interfaceTeamLoader
- Parameters:
teamSource
-TeamSource
instance.- Returns:
PropertyList
of theTeamSourceProperty
instances of theTeamSourceSpecification
ornull
if issues, which are reported to theCompilerIssues
.
-
loadTeamType
public <TS extends TeamSource> TeamType loadTeamType(java.lang.String teamName, java.lang.Class<TS> teamSourceClass, PropertyList propertyList)
Description copied from interface:TeamLoader
Loads and returns theTeamType
sourced from theTeamSource
.- Specified by:
loadTeamType
in interfaceTeamLoader
- Type Parameters:
TS
-TeamSource
type.- Parameters:
teamName
- Name of theTeam
.teamSourceClass
- Class of theTeamSource
.propertyList
-PropertyList
containing the properties to source theTeamType
.- Returns:
TeamType
ornull
if issues, which are reported to theCompilerIssues
.
-
loadTeamType
public TeamType loadTeamType(java.lang.String teamName, TeamSource teamSource, PropertyList propertyList)
Description copied from interface:TeamLoader
Loads and returns theTeamType
sourced from theTeamSource
.- Specified by:
loadTeamType
in interfaceTeamLoader
- Parameters:
teamName
- Name of theTeam
.teamSource
-TeamSource
instance.propertyList
-PropertyList
containing the properties to source theTeamType
.- Returns:
TeamType
ornull
if issues, which are reported to theCompilerIssues
.
-
loadOfficeFloorTeamSourceType
public <TS extends TeamSource> OfficeFloorTeamSourceType loadOfficeFloorTeamSourceType(java.lang.String teamName, java.lang.Class<TS> teamSourceClass, PropertyList propertyList)
Description copied from interface:TeamLoader
Loads and returns theOfficeFloorTeamSourceType
.- Specified by:
loadOfficeFloorTeamSourceType
in interfaceTeamLoader
- Type Parameters:
TS
-TeamSource
type.- Parameters:
teamName
- Name of theTeam
.teamSourceClass
- Class of theTeamSource
.propertyList
-PropertyList
for configuring theTeamSource
.- Returns:
OfficeFloorTeamSourceType
ornull
if issues, which are reported to theCompilerIssues
.
-
loadOfficeFloorTeamSourceType
public OfficeFloorTeamSourceType loadOfficeFloorTeamSourceType(java.lang.String teamName, TeamSource teamSource, PropertyList propertyList)
Description copied from interface:TeamLoader
Loads and returns theOfficeFloorTeamSourceType
.- Specified by:
loadOfficeFloorTeamSourceType
in interfaceTeamLoader
- Parameters:
teamName
- Name of theTeam
.teamSource
-TeamSource
instance.propertyList
-PropertyList
for configuring theTeamSource
.- Returns:
OfficeFloorTeamSourceType
ornull
if issues, which are reported to theCompilerIssues
.
-
addIssue
public void addIssue(java.lang.String issueDescription)
Description copied from interface:IssueTarget
Adds the issue.- Specified by:
addIssue
in interfaceIssueTarget
- Parameters:
issueDescription
- Description of the issue.
-
addIssue
public void addIssue(java.lang.String issueDescription, java.lang.Throwable cause)
Description copied from interface:IssueTarget
Adds the issue.- Specified by:
addIssue
in interfaceIssueTarget
- Parameters:
issueDescription
- Description of the issue.cause
- Cause of the issue.
-
-