Package net.officefloor.compile.section
Interface SectionLoader
-
- All Known Implementing Classes:
SectionLoaderImpl
public interface SectionLoader- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract 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 theOfficeSectionTypefrom thisSectionSource.OfficeSectionTypeloadOfficeSectionType(java.lang.String sectionName, SectionSource sectionSource, java.lang.String sectionLocation, PropertyList propertyList)Loads and returns theOfficeSectionTypefrom thisSectionSource.<S extends SectionSource>
SectionTypeloadSectionType(java.lang.Class<S> sectionSourceClass, java.lang.String sectionLocation, PropertyList propertyList)Loads and returns theSectionTypefrom theSectionSource.SectionTypeloadSectionType(SectionSource sectionSource, java.lang.String sectionLocation, PropertyList propertyList)Loads and returns theSectionTypefrom theSectionSource.<S extends SectionSource>
PropertyListloadSpecification(java.lang.Class<S> sectionSourceClass)PropertyListloadSpecification(SectionSource sectionSource)
-
-
-
Method Detail
-
loadSpecification
<S extends SectionSource> PropertyList loadSpecification(java.lang.Class<S> sectionSourceClass)
- Type Parameters:
S-SectionSourcetype.- Parameters:
sectionSourceClass- Class of theSectionSource.- Returns:
PropertyListof theSectionSourcePropertyinstances of theSectionSourceSpecificationornullif issue, which is reported to theCompilerIssues.
-
loadSpecification
PropertyList loadSpecification(SectionSource sectionSource)
- Parameters:
sectionSource-SectionSource.- Returns:
PropertyListof theSectionSourcePropertyinstances of theSectionSourceSpecificationornullif issue, which is reported to theCompilerIssues.
-
loadSectionType
<S extends SectionSource> SectionType loadSectionType(java.lang.Class<S> sectionSourceClass, java.lang.String sectionLocation, PropertyList propertyList)
Loads and returns theSectionTypefrom theSectionSource.- 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
SectionType loadSectionType(SectionSource sectionSource, java.lang.String sectionLocation, PropertyList propertyList)
Loads and returns theSectionTypefrom theSectionSource.- Parameters:
sectionSource-SectionSourceinstance.sectionLocation- Location of theOfficeSection.propertyList-PropertyListcontaining the properties to source theSectionType.- Returns:
SectionTypeornullif issues, which are reported to theCompilerIssues.
-
loadOfficeSectionType
<S extends SectionSource> OfficeSectionType loadOfficeSectionType(java.lang.String sectionName, java.lang.Class<S> sectionSourceClass, java.lang.String sectionLocation, PropertyList propertyList)
Loads and returns the
OfficeSectionTypefrom thisSectionSource.Unlike loading the
SectionTypethis will recursively load theSubSectioninstances to fully construct theOfficeSectionType.- 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
OfficeSectionType loadOfficeSectionType(java.lang.String sectionName, SectionSource sectionSource, java.lang.String sectionLocation, PropertyList propertyList)
Loads and returns the
OfficeSectionTypefrom thisSectionSource.Unlike loading the
SectionTypethis will recursively load theSubSectioninstances to fully construct theOfficeSectionType.- Parameters:
sectionName- Name of theOfficeSection.sectionSource-SectionSourceinstance.sectionLocation- Location of theOfficeSection.propertyList-PropertyListcontaining the properties to source theOfficeSectionType.- Returns:
OfficeSectionType.
-
-