net.officefloor.model.impl.desk
Class DeskModelSectionSource

java.lang.Object
  extended by net.officefloor.compile.spi.section.source.impl.AbstractSectionSource
      extended by net.officefloor.model.impl.desk.DeskModelSectionSource
All Implemented Interfaces:
SectionSourceService<DeskModelSectionSource>, SectionSource

public class DeskModelSectionSource
extends AbstractSectionSource
implements SectionSourceService<DeskModelSectionSource>

SectionSource for a DeskModel.

Author:
Daniel Sagenschneider

Nested Class Summary
 
Nested classes/interfaces inherited from class net.officefloor.compile.spi.section.source.impl.AbstractSectionSource
AbstractSectionSource.SpecificationContext
 
Constructor Summary
DeskModelSectionSource()
           
 
Method Summary
 String getSectionSourceAlias()
          Obtains the alias for the SectionSource Class.
 Class<DeskModelSectionSource> getSectionSourceClass()
          Obtains the SectionSource Class.
protected  void loadSpecification(AbstractSectionSource.SpecificationContext context)
          Loads the SectionSourceSpecification.
 void sourceSection(SectionDesigner designer, SectionSourceContext context)
          Sources the OfficeSection by constructing it via the input SectionDesigner.
 
Methods inherited from class net.officefloor.compile.spi.section.source.impl.AbstractSectionSource
getSpecification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeskModelSectionSource

public DeskModelSectionSource()
Method Detail

getSectionSourceAlias

public String getSectionSourceAlias()
Description copied from interface: SectionSourceService
Obtains the alias for the SectionSource Class.

Specified by:
getSectionSourceAlias in interface SectionSourceService<DeskModelSectionSource>
Returns:
Alias for the SectionSource Class.

getSectionSourceClass

public Class<DeskModelSectionSource> getSectionSourceClass()
Description copied from interface: SectionSourceService
Obtains the SectionSource Class.

Specified by:
getSectionSourceClass in interface SectionSourceService<DeskModelSectionSource>
Returns:
SectionSource Class.

loadSpecification

protected void loadSpecification(AbstractSectionSource.SpecificationContext context)
Description copied from class: AbstractSectionSource
Loads the SectionSourceSpecification.

Specified by:
loadSpecification in class AbstractSectionSource
Parameters:
context - AbstractSectionSource.SpecificationContext.

sourceSection

public void sourceSection(SectionDesigner designer,
                          SectionSourceContext context)
                   throws Exception
Description copied from interface: SectionSource
Sources the OfficeSection by constructing it via the input SectionDesigner.

Specified by:
sourceSection in interface SectionSource
Parameters:
designer - SectionDesigner to construct the structure of the OfficeSection.
context - SectionSourceContext to source details to construct the OfficeSection.
Throws:
Exception - If fails to construct the OfficeSection.


Copyright © 2005-2013. All Rights Reserved.