Class OfficeLoaderImpl
- java.lang.Object
-
- net.officefloor.compile.impl.office.OfficeLoaderImpl
-
- All Implemented Interfaces:
OfficeLoader
public class OfficeLoaderImpl extends java.lang.Object implements OfficeLoader
OfficeLoaderimplementation.- 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 theOfficeTypefrom theOfficeSource.OfficeTypeloadOfficeType(OfficeSource officeSource, java.lang.String officeLocation, PropertyList propertyList)Loads and returns theOfficeTypefrom theOfficeSource.<O extends OfficeSource>
PropertyListloadSpecification(java.lang.Class<O> officeSourceClass)
-
-
-
Constructor Detail
-
OfficeLoaderImpl
public OfficeLoaderImpl(Node node, NodeContext nodeContext)
Initiate.- Parameters:
node-Noderequiring theOffice.nodeContext-NodeContext.
-
-
Method Detail
-
loadSpecification
public <O extends OfficeSource> PropertyList loadSpecification(java.lang.Class<O> officeSourceClass)
Description copied from interface:OfficeLoader- Specified by:
loadSpecificationin interfaceOfficeLoader- Type Parameters:
O-OfficeSourcetype.- Parameters:
officeSourceClass- Class of theOfficeSource.- Returns:
PropertyListof theOfficeSourcePropertyinstances of theOfficeSourceSpecificationornullif 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:OfficeLoaderLoads and returns theOfficeTypefrom theOfficeSource.- Specified by:
loadOfficeTypein interfaceOfficeLoader- Type Parameters:
O-OfficeSourcetype.- Parameters:
officeSourceClass- Class of theOfficeSource.officeLocation- Location of theOffice.propertyList-PropertyListcontaining the properties to source theOfficeType.- Returns:
OfficeTypeornullif issues, which are reported to theCompilerIssues.
-
loadOfficeType
public OfficeType loadOfficeType(OfficeSource officeSource, java.lang.String officeLocation, PropertyList propertyList)
Description copied from interface:OfficeLoaderLoads and returns theOfficeTypefrom theOfficeSource.- Specified by:
loadOfficeTypein interfaceOfficeLoader- Parameters:
officeSource-OfficeSourceinstance.officeLocation- Location of theOffice.propertyList-PropertyListcontaining the properties to source theOfficeType.- Returns:
OfficeTypeornullif issues, which are reported to theCompilerIssues.
-
-