Class OfficeLoaderImpl
- java.lang.Object
-
- net.officefloor.compile.impl.office.OfficeLoaderImpl
-
- All Implemented Interfaces:
OfficeLoader
public class OfficeLoaderImpl extends java.lang.Object implements OfficeLoader
OfficeLoader
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description OfficeLoaderImpl(Node node, NodeContext nodeContext)
Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <O extends OfficeSource>
OfficeTypeloadOfficeType(java.lang.Class<O> officeSourceClass, java.lang.String officeLocation, PropertyList propertyList)
Loads and returns theOfficeType
from theOfficeSource
.OfficeType
loadOfficeType(OfficeSource officeSource, java.lang.String officeLocation, PropertyList propertyList)
Loads and returns theOfficeType
from theOfficeSource
.<O extends OfficeSource>
PropertyListloadSpecification(java.lang.Class<O> officeSourceClass)
-
-
-
Constructor Detail
-
OfficeLoaderImpl
public OfficeLoaderImpl(Node node, NodeContext nodeContext)
Initiate.- Parameters:
node
-Node
requiring theOffice
.nodeContext
-NodeContext
.
-
-
Method Detail
-
loadSpecification
public <O extends OfficeSource> PropertyList loadSpecification(java.lang.Class<O> officeSourceClass)
Description copied from interface:OfficeLoader
- Specified by:
loadSpecification
in interfaceOfficeLoader
- Type Parameters:
O
-OfficeSource
type.- Parameters:
officeSourceClass
- Class of theOfficeSource
.- Returns:
PropertyList
of theOfficeSourceProperty
instances of theOfficeSourceSpecification
ornull
if issue, which is reported to theCompilerIssues
.
-
loadOfficeType
public <O extends OfficeSource> OfficeType loadOfficeType(java.lang.Class<O> officeSourceClass, java.lang.String officeLocation, PropertyList propertyList)
Description copied from interface:OfficeLoader
Loads and returns theOfficeType
from theOfficeSource
.- Specified by:
loadOfficeType
in interfaceOfficeLoader
- Type Parameters:
O
-OfficeSource
type.- Parameters:
officeSourceClass
- Class of theOfficeSource
.officeLocation
- Location of theOffice
.propertyList
-PropertyList
containing the properties to source theOfficeType
.- Returns:
OfficeType
ornull
if issues, which are reported to theCompilerIssues
.
-
loadOfficeType
public OfficeType loadOfficeType(OfficeSource officeSource, java.lang.String officeLocation, PropertyList propertyList)
Description copied from interface:OfficeLoader
Loads and returns theOfficeType
from theOfficeSource
.- Specified by:
loadOfficeType
in interfaceOfficeLoader
- Parameters:
officeSource
-OfficeSource
instance.officeLocation
- Location of theOffice
.propertyList
-PropertyList
containing the properties to source theOfficeType
.- Returns:
OfficeType
ornull
if issues, which are reported to theCompilerIssues
.
-
-