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
TeamLoaderimplementation.- 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 voidaddIssue(java.lang.String issueDescription)Adds the issue.voidaddIssue(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.OfficeFloorTeamSourceTypeloadOfficeFloorTeamSourceType(java.lang.String teamName, TeamSource teamSource, PropertyList propertyList)Loads and returns theOfficeFloorTeamSourceType.<TS extends TeamSource>
PropertyListloadSpecification(java.lang.Class<TS> teamSourceClass)PropertyListloadSpecification(TeamSource teamSource)<TS extends TeamSource>
TeamTypeloadTeamType(java.lang.String teamName, java.lang.Class<TS> teamSourceClass, PropertyList propertyList)Loads and returns theTeamTypesourced from theTeamSource.TeamTypeloadTeamType(java.lang.String teamName, TeamSource teamSource, PropertyList propertyList)Loads and returns theTeamTypesourced from theTeamSource.
-
-
-
Constructor Detail
-
TeamLoaderImpl
public TeamLoaderImpl(Node node, NodeContext nodeContext)
Initiate for building.- Parameters:
node-Noderequiring theTeam.nodeContext-NodeContext.
-
-
Method Detail
-
loadSpecification
public <TS extends TeamSource> PropertyList loadSpecification(java.lang.Class<TS> teamSourceClass)
Description copied from interface:TeamLoader- Specified by:
loadSpecificationin interfaceTeamLoader- Type Parameters:
TS-TeamSourcetype.- Parameters:
teamSourceClass- Class of theTeamSource.- Returns:
PropertyListof theTeamSourcePropertyinstances of theTeamSourceSpecificationornullif issues, which are reported to theCompilerIssues.
-
loadSpecification
public PropertyList loadSpecification(TeamSource teamSource)
Description copied from interface:TeamLoader- Specified by:
loadSpecificationin interfaceTeamLoader- Parameters:
teamSource-TeamSourceinstance.- Returns:
PropertyListof theTeamSourcePropertyinstances of theTeamSourceSpecificationornullif 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:TeamLoaderLoads and returns theTeamTypesourced from theTeamSource.- Specified by:
loadTeamTypein interfaceTeamLoader- Type Parameters:
TS-TeamSourcetype.- Parameters:
teamName- Name of theTeam.teamSourceClass- Class of theTeamSource.propertyList-PropertyListcontaining the properties to source theTeamType.- Returns:
TeamTypeornullif issues, which are reported to theCompilerIssues.
-
loadTeamType
public TeamType loadTeamType(java.lang.String teamName, TeamSource teamSource, PropertyList propertyList)
Description copied from interface:TeamLoaderLoads and returns theTeamTypesourced from theTeamSource.- Specified by:
loadTeamTypein interfaceTeamLoader- Parameters:
teamName- Name of theTeam.teamSource-TeamSourceinstance.propertyList-PropertyListcontaining the properties to source theTeamType.- Returns:
TeamTypeornullif 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:TeamLoaderLoads and returns theOfficeFloorTeamSourceType.- Specified by:
loadOfficeFloorTeamSourceTypein interfaceTeamLoader- Type Parameters:
TS-TeamSourcetype.- Parameters:
teamName- Name of theTeam.teamSourceClass- Class of theTeamSource.propertyList-PropertyListfor configuring theTeamSource.- Returns:
OfficeFloorTeamSourceTypeornullif issues, which are reported to theCompilerIssues.
-
loadOfficeFloorTeamSourceType
public OfficeFloorTeamSourceType loadOfficeFloorTeamSourceType(java.lang.String teamName, TeamSource teamSource, PropertyList propertyList)
Description copied from interface:TeamLoaderLoads and returns theOfficeFloorTeamSourceType.- Specified by:
loadOfficeFloorTeamSourceTypein interfaceTeamLoader- Parameters:
teamName- Name of theTeam.teamSource-TeamSourceinstance.propertyList-PropertyListfor configuring theTeamSource.- Returns:
OfficeFloorTeamSourceTypeornullif issues, which are reported to theCompilerIssues.
-
addIssue
public void addIssue(java.lang.String issueDescription)
Description copied from interface:IssueTargetAdds the issue.- Specified by:
addIssuein interfaceIssueTarget- Parameters:
issueDescription- Description of the issue.
-
addIssue
public void addIssue(java.lang.String issueDescription, java.lang.Throwable cause)Description copied from interface:IssueTargetAdds the issue.- Specified by:
addIssuein interfaceIssueTarget- Parameters:
issueDescription- Description of the issue.cause- Cause of the issue.
-
-