Class SupplierLoaderImpl
- java.lang.Object
-
- net.officefloor.compile.impl.supplier.SupplierLoaderImpl
-
- All Implemented Interfaces:
SupplierLoader
public class SupplierLoaderImpl extends java.lang.Object implements SupplierLoader
SupplierLoader
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description SupplierLoaderImpl(Node node, OfficeNode officeNode, NodeContext nodeContext, boolean isLoadingType)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <S extends SupplierSource>
InitialSupplierTypeloadInitialSupplierType(java.lang.Class<S> supplierSourceClass, PropertyList propertyList)
Loads and returnsInitialSupplierType
for theSupplierSource
.InitialSupplierType
loadInitialSupplierType(SupplierSource supplierSource, PropertyList propertyList)
Loads and returnsInitialSupplierType
for theSupplierSource
.<S extends SupplierSource>
PropertyListloadSpecification(java.lang.Class<S> supplierSourceClass)
PropertyList
loadSpecification(SupplierSource supplierSource)
SupplierType
loadSupplierType(InitialSupplierType initialType, AvailableType... availableTypes)
Loads the completedSupplierType
.
-
-
-
Constructor Detail
-
SupplierLoaderImpl
public SupplierLoaderImpl(Node node, OfficeNode officeNode, NodeContext nodeContext, boolean isLoadingType)
Instantiate.- Parameters:
node
-Node
requiring theSupplier
.officeNode
-OfficeNode
. May benull
if not loading withinOfficeNode
.isLoadingType
- Indicates if using to load type.nodeContext
-NodeContext
.
-
-
Method Detail
-
loadSpecification
public <S extends SupplierSource> PropertyList loadSpecification(java.lang.Class<S> supplierSourceClass)
Description copied from interface:SupplierLoader
- Specified by:
loadSpecification
in interfaceSupplierLoader
- Type Parameters:
S
-SupplierSource
type.- Parameters:
supplierSourceClass
-SupplierSource
class.- Returns:
PropertyList
of theSupplierSourceProperty
instances of theSupplierSourceSpecification
ornull
if issue, which is reported to theCompilerIssues
.
-
loadSpecification
public PropertyList loadSpecification(SupplierSource supplierSource)
Description copied from interface:SupplierLoader
- Specified by:
loadSpecification
in interfaceSupplierLoader
- Parameters:
supplierSource
-SupplierSource
instance.- Returns:
PropertyList
of theSupplierSourceProperty
instances of theSupplierSourceSpecification
ornull
if issue, which is reported to theCompilerIssues
.
-
loadInitialSupplierType
public <S extends SupplierSource> InitialSupplierType loadInitialSupplierType(java.lang.Class<S> supplierSourceClass, PropertyList propertyList)
Description copied from interface:SupplierLoader
Loads and returnsInitialSupplierType
for theSupplierSource
.- Specified by:
loadInitialSupplierType
in interfaceSupplierLoader
- Type Parameters:
S
-SupplierSource
type.- Parameters:
supplierSourceClass
- Class of theSupplierSource
.propertyList
-PropertyList
containing the properties to source theInitialSupplierType
.- Returns:
InitialSupplierType
ornull
if issues, which are reported to theCompilerIssues
.
-
loadInitialSupplierType
public InitialSupplierType loadInitialSupplierType(SupplierSource supplierSource, PropertyList propertyList)
Description copied from interface:SupplierLoader
Loads and returnsInitialSupplierType
for theSupplierSource
.- Specified by:
loadInitialSupplierType
in interfaceSupplierLoader
- Parameters:
supplierSource
-SupplierSource
instance.propertyList
-PropertyList
containing the properties to source theInitialSupplierType
.- Returns:
InitialSupplierType
ornull
if issues, which are reported to theCompilerIssues
.
-
loadSupplierType
public SupplierType loadSupplierType(InitialSupplierType initialType, AvailableType... availableTypes)
Description copied from interface:SupplierLoader
Loads the completedSupplierType
.- Specified by:
loadSupplierType
in interfaceSupplierLoader
- Parameters:
initialType
-InitialSupplierType
.availableTypes
-AvailableType
instances.- Returns:
SupplierType
.
-
-