Class SupplierLoaderImpl
java.lang.Object
net.officefloor.compile.impl.supplier.SupplierLoaderImpl
- All Implemented Interfaces:
SupplierLoader
SupplierLoader implementation.- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionSupplierLoaderImpl(Node node, OfficeNode officeNode, NodeContext nodeContext, boolean isLoadingType) Instantiate. -
Method Summary
Modifier and TypeMethodDescription<S extends SupplierSource>
InitialSupplierTypeloadInitialSupplierType(Class<S> supplierSourceClass, PropertyList propertyList) Loads and returnsInitialSupplierTypefor theSupplierSource.loadInitialSupplierType(SupplierSource supplierSource, PropertyList propertyList) Loads and returnsInitialSupplierTypefor theSupplierSource.<S extends SupplierSource>
PropertyListloadSpecification(Class<S> supplierSourceClass) loadSpecification(SupplierSource supplierSource) loadSupplierType(InitialSupplierType initialType, AvailableType... availableTypes) Loads the completedSupplierType.
-
Constructor Details
-
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 Details
-
loadSpecification
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
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(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.
-