Class SectionModelSectionSource
- java.lang.Object
-
- net.officefloor.compile.spi.section.source.impl.AbstractSectionSource
-
- net.officefloor.model.impl.section.SectionModelSectionSource
-
- All Implemented Interfaces:
SectionSourceService<SectionModelSectionSource>
,SectionSourceServiceFactory
,SectionSource
,ServiceFactory<SectionSourceService<?>>
public class SectionModelSectionSource extends AbstractSectionSource implements SectionSourceService<SectionModelSectionSource>, SectionSourceServiceFactory
SectionSource
for aSectionModel
.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.officefloor.compile.spi.section.source.impl.AbstractSectionSource
AbstractSectionSource.SpecificationContext
-
-
Constructor Summary
Constructors Constructor Description SectionModelSectionSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SectionSourceService<?>
createService(ServiceContext context)
Creates the service.java.lang.String
getSectionSourceAlias()
Obtains the alias for theSectionSource
Class
.java.lang.Class<SectionModelSectionSource>
getSectionSourceClass()
Obtains theSectionSource
Class
.protected void
loadSpecification(AbstractSectionSource.SpecificationContext context)
Loads theSectionSourceSpecification
.void
sourceSection(SectionDesigner designer, SectionSourceContext context)
Sources theOfficeSection
by constructing it via the inputSectionDesigner
.-
Methods inherited from class net.officefloor.compile.spi.section.source.impl.AbstractSectionSource
getSpecification
-
-
-
-
Method Detail
-
createService
public SectionSourceService<?> createService(ServiceContext context) throws java.lang.Throwable
Description copied from interface:ServiceFactory
Creates the service.- Specified by:
createService
in interfaceServiceFactory<SectionSourceService<?>>
- Parameters:
context
-ServiceContext
.- Returns:
- Service.
- Throws:
java.lang.Throwable
- If fails to create the service.
-
getSectionSourceAlias
public java.lang.String getSectionSourceAlias()
Description copied from interface:SectionSourceService
Obtains the alias for theSectionSource
Class
.- Specified by:
getSectionSourceAlias
in interfaceSectionSourceService<SectionModelSectionSource>
- Returns:
- Alias for the
SectionSource
Class
.
-
getSectionSourceClass
public java.lang.Class<SectionModelSectionSource> getSectionSourceClass()
Description copied from interface:SectionSourceService
Obtains theSectionSource
Class
.- Specified by:
getSectionSourceClass
in interfaceSectionSourceService<SectionModelSectionSource>
- Returns:
SectionSource
Class
.
-
loadSpecification
protected void loadSpecification(AbstractSectionSource.SpecificationContext context)
Description copied from class:AbstractSectionSource
Loads theSectionSourceSpecification
.- Specified by:
loadSpecification
in classAbstractSectionSource
- Parameters:
context
-AbstractSectionSource.SpecificationContext
.
-
sourceSection
public void sourceSection(SectionDesigner designer, SectionSourceContext context) throws java.lang.Exception
Description copied from interface:SectionSource
Sources theOfficeSection
by constructing it via the inputSectionDesigner
.- Specified by:
sourceSection
in interfaceSectionSource
- Parameters:
designer
-SectionDesigner
to construct the structure of theOfficeSection
.context
-SectionSourceContext
to source details to construct theOfficeSection
.- Throws:
java.lang.Exception
- If fails to construct theOfficeSection
.
-
-