Class SupplierLoaderImpl
- java.lang.Object
-
- net.officefloor.compile.impl.supplier.SupplierLoaderImpl
-
- All Implemented Interfaces:
SupplierLoader
public class SupplierLoaderImpl extends java.lang.Object implements SupplierLoader
SupplierLoaderimplementation.- 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 returnsInitialSupplierTypefor theSupplierSource.InitialSupplierTypeloadInitialSupplierType(SupplierSource supplierSource, PropertyList propertyList)Loads and returnsInitialSupplierTypefor theSupplierSource.<S extends SupplierSource>
PropertyListloadSpecification(java.lang.Class<S> supplierSourceClass)PropertyListloadSpecification(SupplierSource supplierSource)SupplierTypeloadSupplierType(InitialSupplierType initialType, AvailableType... availableTypes)Loads the completedSupplierType.
-
-
-
Constructor Detail
-
SupplierLoaderImpl
public SupplierLoaderImpl(Node node, OfficeNode officeNode, NodeContext nodeContext, boolean isLoadingType)
Instantiate.- Parameters:
node-Noderequiring theSupplier.officeNode-OfficeNode. May benullif 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:
loadSpecificationin interfaceSupplierLoader- Type Parameters:
S-SupplierSourcetype.- Parameters:
supplierSourceClass-SupplierSourceclass.- Returns:
PropertyListof theSupplierSourcePropertyinstances of theSupplierSourceSpecificationornullif issue, which is reported to theCompilerIssues.
-
loadSpecification
public PropertyList loadSpecification(SupplierSource supplierSource)
Description copied from interface:SupplierLoader- Specified by:
loadSpecificationin interfaceSupplierLoader- Parameters:
supplierSource-SupplierSourceinstance.- Returns:
PropertyListof theSupplierSourcePropertyinstances of theSupplierSourceSpecificationornullif issue, which is reported to theCompilerIssues.
-
loadInitialSupplierType
public <S extends SupplierSource> InitialSupplierType loadInitialSupplierType(java.lang.Class<S> supplierSourceClass, PropertyList propertyList)
Description copied from interface:SupplierLoaderLoads and returnsInitialSupplierTypefor theSupplierSource.- Specified by:
loadInitialSupplierTypein interfaceSupplierLoader- Type Parameters:
S-SupplierSourcetype.- Parameters:
supplierSourceClass- Class of theSupplierSource.propertyList-PropertyListcontaining the properties to source theInitialSupplierType.- Returns:
InitialSupplierTypeornullif issues, which are reported to theCompilerIssues.
-
loadInitialSupplierType
public InitialSupplierType loadInitialSupplierType(SupplierSource supplierSource, PropertyList propertyList)
Description copied from interface:SupplierLoaderLoads and returnsInitialSupplierTypefor theSupplierSource.- Specified by:
loadInitialSupplierTypein interfaceSupplierLoader- Parameters:
supplierSource-SupplierSourceinstance.propertyList-PropertyListcontaining the properties to source theInitialSupplierType.- Returns:
InitialSupplierTypeornullif issues, which are reported to theCompilerIssues.
-
loadSupplierType
public SupplierType loadSupplierType(InitialSupplierType initialType, AvailableType... availableTypes)
Description copied from interface:SupplierLoaderLoads the completedSupplierType.- Specified by:
loadSupplierTypein interfaceSupplierLoader- Parameters:
initialType-InitialSupplierType.availableTypes-AvailableTypeinstances.- Returns:
SupplierType.
-
-