Class OfficeFloorLoaderImpl
- java.lang.Object
-
- net.officefloor.compile.impl.officefloor.OfficeFloorLoaderImpl
-
- All Implemented Interfaces:
OfficeFloorLoader
public class OfficeFloorLoaderImpl extends java.lang.Object implements OfficeFloorLoader
OfficeFloorLoader
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description OfficeFloorLoaderImpl(Node node, NodeContext nodeContext)
Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <OF extends OfficeFloorSource>
OfficeFloorTypeloadOfficeFloorType(java.lang.Class<OF> officeFloorSourceClass, java.lang.String officeFloorLocation, PropertyList propertyList)
Loads theOfficeFloorType
.<OF extends OfficeFloorSource>
OfficeFloorTypeloadOfficeFloorType(OF officeFloorSource, java.lang.String officeFloorLocation, PropertyList propertyList)
Loads theOfficeFloorType
.<OF extends OfficeFloorSource>
PropertyListloadRequiredProperties(java.lang.Class<OF> officeFloorSourceClass, java.lang.String officeFloorLocation, PropertyList propertyList)
Loads the requiredPropertyList
for theOfficeFloorSource
configuration.<OF extends OfficeFloorSource>
PropertyListloadSpecification(java.lang.Class<OF> officeFloorSourceClass)
Loads and returns thePropertyList
from theOfficeFloorSourceSpecification
for theOfficeFloorSource
.
-
-
-
Constructor Detail
-
OfficeFloorLoaderImpl
public OfficeFloorLoaderImpl(Node node, NodeContext nodeContext)
Initiate.- Parameters:
node
-Node
requiring theOfficeFloor
.nodeContext
-NodeContext
.
-
-
Method Detail
-
loadSpecification
public <OF extends OfficeFloorSource> PropertyList loadSpecification(java.lang.Class<OF> officeFloorSourceClass)
Description copied from interface:OfficeFloorLoader
Loads and returns thePropertyList
from theOfficeFloorSourceSpecification
for theOfficeFloorSource
.- Specified by:
loadSpecification
in interfaceOfficeFloorLoader
- Type Parameters:
OF
-OfficeFloorSource
type.- Parameters:
officeFloorSourceClass
- Class of theOfficeFloorSource
.- Returns:
PropertyList
of theOfficeFloorSourceProperty
instances of theOfficeFloorSourceSpecification
ornull
if issue, which is reported to theCompilerIssues
.
-
loadRequiredProperties
public <OF extends OfficeFloorSource> PropertyList loadRequiredProperties(java.lang.Class<OF> officeFloorSourceClass, java.lang.String officeFloorLocation, PropertyList propertyList)
Description copied from interface:OfficeFloorLoader
Loads the required
PropertyList
for theOfficeFloorSource
configuration.These are additional
Property
instances over and above theOfficeFloorSourceSpecification
that are required by theOfficeFloorSource
to load theOfficeFloor
. Typically these will beProperty
instances required by the configuration of theOfficeFloor
.- Specified by:
loadRequiredProperties
in interfaceOfficeFloorLoader
- Type Parameters:
OF
-OfficeFloorSource
type.- Parameters:
officeFloorSourceClass
- Class of theOfficeFloorSource
.officeFloorLocation
- Location of theOfficeFloor
.propertyList
-PropertyList
containing the properties as per theOfficeFloorSourceSpecification
.- Returns:
- Required
PropertyList
ornull
if issues, which are reported to theCompilerIssues
.
-
loadOfficeFloorType
public <OF extends OfficeFloorSource> OfficeFloorType loadOfficeFloorType(java.lang.Class<OF> officeFloorSourceClass, java.lang.String officeFloorLocation, PropertyList propertyList)
Description copied from interface:OfficeFloorLoader
Loads theOfficeFloorType
.- Specified by:
loadOfficeFloorType
in interfaceOfficeFloorLoader
- Type Parameters:
OF
-OfficeFloorSource
type.- Parameters:
officeFloorSourceClass
- Class of theOfficeFloorSource
.officeFloorLocation
- Location of theOfficeFloor
.propertyList
-PropertyList
containing both theOfficeFloorSourceProperty
and requiredProperty
instances.- Returns:
OfficeFloorType
ornull
if issues, which are reported to theCompilerIssues
.
-
loadOfficeFloorType
public <OF extends OfficeFloorSource> OfficeFloorType loadOfficeFloorType(OF officeFloorSource, java.lang.String officeFloorLocation, PropertyList propertyList)
Description copied from interface:OfficeFloorLoader
Loads theOfficeFloorType
.- Specified by:
loadOfficeFloorType
in interfaceOfficeFloorLoader
- Type Parameters:
OF
-OfficeFloorSource
type.- Parameters:
officeFloorSource
-OfficeFloorSource
.officeFloorLocation
- Location of theOfficeFloor
.propertyList
-PropertyList
containing both theOfficeFloorSourceProperty
and requiredProperty
instances.- Returns:
OfficeFloorType
ornull
if issues, which are reported to theCompilerIssues
.
-
-