Class SectionLoaderImpl
- java.lang.Object
-
- net.officefloor.compile.impl.section.SectionLoaderImpl
-
- All Implemented Interfaces:
SectionLoader
public class SectionLoaderImpl extends java.lang.Object implements SectionLoader
SectionLoader
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description SectionLoaderImpl(OfficeNode officeNode, SectionNode parentSectionNode, NodeContext nodeContext)
Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <S extends SectionSource>
OfficeSectionTypeloadOfficeSectionType(java.lang.String sectionName, java.lang.Class<S> sectionSourceClass, java.lang.String sectionLocation, PropertyList propertyList)
Loads and returns theOfficeSectionType
from thisSectionSource
.OfficeSectionType
loadOfficeSectionType(java.lang.String sectionName, SectionSource sectionSource, java.lang.String sectionLocation, PropertyList propertyList)
Loads and returns theOfficeSectionType
from thisSectionSource
.<S extends SectionSource>
SectionTypeloadSectionType(java.lang.Class<S> sectionSourceClass, java.lang.String sectionLocation, PropertyList propertyList)
Loads and returns theSectionType
from theSectionSource
.SectionType
loadSectionType(SectionSource sectionSource, java.lang.String sectionLocation, PropertyList propertyList)
Loads and returns theSectionType
from theSectionSource
.<S extends SectionSource>
PropertyListloadSpecification(java.lang.Class<S> sectionSourceClass)
PropertyList
loadSpecification(SectionSource sectionSource)
-
-
-
Constructor Detail
-
SectionLoaderImpl
public SectionLoaderImpl(OfficeNode officeNode, SectionNode parentSectionNode, NodeContext nodeContext)
Initiate.- Parameters:
officeNode
-OfficeNode
containing theOfficeSection
.parentSectionNode
- ParentSectionNode
. May benull
if top levelOfficeSection
.nodeContext
-NodeContext
.
-
-
Method Detail
-
loadSpecification
public <S extends SectionSource> PropertyList loadSpecification(java.lang.Class<S> sectionSourceClass)
Description copied from interface:SectionLoader
- Specified by:
loadSpecification
in interfaceSectionLoader
- Type Parameters:
S
-SectionSource
type.- Parameters:
sectionSourceClass
- Class of theSectionSource
.- Returns:
PropertyList
of theSectionSourceProperty
instances of theSectionSourceSpecification
ornull
if issue, which is reported to theCompilerIssues
.
-
loadSpecification
public PropertyList loadSpecification(SectionSource sectionSource)
Description copied from interface:SectionLoader
- Specified by:
loadSpecification
in interfaceSectionLoader
- Parameters:
sectionSource
-SectionSource
.- Returns:
PropertyList
of theSectionSourceProperty
instances of theSectionSourceSpecification
ornull
if issue, which is reported to theCompilerIssues
.
-
loadSectionType
public <S extends SectionSource> SectionType loadSectionType(java.lang.Class<S> sectionSourceClass, java.lang.String sectionLocation, PropertyList propertyList)
Description copied from interface:SectionLoader
Loads and returns theSectionType
from theSectionSource
.- Specified by:
loadSectionType
in interfaceSectionLoader
- Type Parameters:
S
-SectionSource
type.- Parameters:
sectionSourceClass
- Class of theSectionSource
.sectionLocation
- Location of theOfficeSection
.propertyList
-PropertyList
containing the properties to source theSectionType
.- Returns:
SectionType
ornull
if issues, which are reported to theCompilerIssues
.
-
loadSectionType
public SectionType loadSectionType(SectionSource sectionSource, java.lang.String sectionLocation, PropertyList propertyList)
Description copied from interface:SectionLoader
Loads and returns theSectionType
from theSectionSource
.- Specified by:
loadSectionType
in interfaceSectionLoader
- Parameters:
sectionSource
-SectionSource
instance.sectionLocation
- Location of theOfficeSection
.propertyList
-PropertyList
containing the properties to source theSectionType
.- Returns:
SectionType
ornull
if issues, which are reported to theCompilerIssues
.
-
loadOfficeSectionType
public <S extends SectionSource> OfficeSectionType loadOfficeSectionType(java.lang.String sectionName, java.lang.Class<S> sectionSourceClass, java.lang.String sectionLocation, PropertyList propertyList)
Description copied from interface:SectionLoader
Loads and returns the
OfficeSectionType
from thisSectionSource
.Unlike loading the
SectionType
this will recursively load theSubSection
instances to fully construct theOfficeSectionType
.- Specified by:
loadOfficeSectionType
in interfaceSectionLoader
- Type Parameters:
S
-SectionSource
type.- Parameters:
sectionName
- Name of theOfficeSection
.sectionSourceClass
- Class of theSectionSource
.sectionLocation
- Location of theOfficeSection
.propertyList
-PropertyList
containing the properties to source theOfficeSectionType
.- Returns:
OfficeSectionType
.
-
loadOfficeSectionType
public OfficeSectionType loadOfficeSectionType(java.lang.String sectionName, SectionSource sectionSource, java.lang.String sectionLocation, PropertyList propertyList)
Description copied from interface:SectionLoader
Loads and returns the
OfficeSectionType
from thisSectionSource
.Unlike loading the
SectionType
this will recursively load theSubSection
instances to fully construct theOfficeSectionType
.- Specified by:
loadOfficeSectionType
in interfaceSectionLoader
- Parameters:
sectionName
- Name of theOfficeSection
.sectionSource
-SectionSource
instance.sectionLocation
- Location of theOfficeSection
.propertyList
-PropertyList
containing the properties to source theOfficeSectionType
.- Returns:
OfficeSectionType
.
-
-