Class SectionLoaderImpl
java.lang.Object
net.officefloor.compile.impl.section.SectionLoaderImpl
- All Implemented Interfaces:
SectionLoader
SectionLoader implementation.- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionSectionLoaderImpl(OfficeNode officeNode, SectionNode parentSectionNode, NodeContext nodeContext) Initiate. -
Method Summary
Modifier and TypeMethodDescription<S extends SectionSource>
OfficeSectionTypeloadOfficeSectionType(String sectionName, Class<S> sectionSourceClass, String sectionLocation, PropertyList propertyList) Loads and returns theOfficeSectionTypefrom thisSectionSource.loadOfficeSectionType(String sectionName, SectionSource sectionSource, String sectionLocation, PropertyList propertyList) Loads and returns theOfficeSectionTypefrom thisSectionSource.<S extends SectionSource>
SectionTypeloadSectionType(Class<S> sectionSourceClass, String sectionLocation, PropertyList propertyList) Loads and returns theSectionTypefrom theSectionSource.loadSectionType(SectionSource sectionSource, String sectionLocation, PropertyList propertyList) Loads and returns theSectionTypefrom theSectionSource.<S extends SectionSource>
PropertyListloadSpecification(Class<S> sectionSourceClass) loadSpecification(SectionSource sectionSource)
-
Constructor Details
-
SectionLoaderImpl
public SectionLoaderImpl(OfficeNode officeNode, SectionNode parentSectionNode, NodeContext nodeContext) Initiate.- Parameters:
officeNode-OfficeNodecontaining theOfficeSection.parentSectionNode- ParentSectionNode. May benullif top levelOfficeSection.nodeContext-NodeContext.
-
-
Method Details
-
loadSpecification
Description copied from interface:SectionLoader- Specified by:
loadSpecificationin interfaceSectionLoader- Type Parameters:
S-SectionSourcetype.- Parameters:
sectionSourceClass- Class of theSectionSource.- Returns:
PropertyListof theSectionSourcePropertyinstances of theSectionSourceSpecificationornullif issue, which is reported to theCompilerIssues.
-
loadSpecification
Description copied from interface:SectionLoader- Specified by:
loadSpecificationin interfaceSectionLoader- Parameters:
sectionSource-SectionSource.- Returns:
PropertyListof theSectionSourcePropertyinstances of theSectionSourceSpecificationornullif issue, which is reported to theCompilerIssues.
-
loadSectionType
public <S extends SectionSource> SectionType loadSectionType(Class<S> sectionSourceClass, String sectionLocation, PropertyList propertyList) Description copied from interface:SectionLoaderLoads and returns theSectionTypefrom theSectionSource.- Specified by:
loadSectionTypein interfaceSectionLoader- Type Parameters:
S-SectionSourcetype.- Parameters:
sectionSourceClass- Class of theSectionSource.sectionLocation- Location of theOfficeSection.propertyList-PropertyListcontaining the properties to source theSectionType.- Returns:
SectionTypeornullif issues, which are reported to theCompilerIssues.
-
loadSectionType
public SectionType loadSectionType(SectionSource sectionSource, String sectionLocation, PropertyList propertyList) Description copied from interface:SectionLoaderLoads and returns theSectionTypefrom theSectionSource.- Specified by:
loadSectionTypein interfaceSectionLoader- Parameters:
sectionSource-SectionSourceinstance.sectionLocation- Location of theOfficeSection.propertyList-PropertyListcontaining the properties to source theSectionType.- Returns:
SectionTypeornullif issues, which are reported to theCompilerIssues.
-
loadOfficeSectionType
public <S extends SectionSource> OfficeSectionType loadOfficeSectionType(String sectionName, Class<S> sectionSourceClass, String sectionLocation, PropertyList propertyList) Description copied from interface:SectionLoaderLoads and returns the
OfficeSectionTypefrom thisSectionSource.Unlike loading the
SectionTypethis will recursively load theSubSectioninstances to fully construct theOfficeSectionType.- Specified by:
loadOfficeSectionTypein interfaceSectionLoader- Type Parameters:
S-SectionSourcetype.- Parameters:
sectionName- Name of theOfficeSection.sectionSourceClass- Class of theSectionSource.sectionLocation- Location of theOfficeSection.propertyList-PropertyListcontaining the properties to source theOfficeSectionType.- Returns:
OfficeSectionType.
-
loadOfficeSectionType
public OfficeSectionType loadOfficeSectionType(String sectionName, SectionSource sectionSource, String sectionLocation, PropertyList propertyList) Description copied from interface:SectionLoaderLoads and returns the
OfficeSectionTypefrom thisSectionSource.Unlike loading the
SectionTypethis will recursively load theSubSectioninstances to fully construct theOfficeSectionType.- Specified by:
loadOfficeSectionTypein interfaceSectionLoader- Parameters:
sectionName- Name of theOfficeSection.sectionSource-SectionSourceinstance.sectionLocation- Location of theOfficeSection.propertyList-PropertyListcontaining the properties to source theOfficeSectionType.- Returns:
OfficeSectionType.
-