net.officefloor.compile.impl.office
Class OfficeLoaderImpl

java.lang.Object
  extended by net.officefloor.compile.impl.office.OfficeLoaderImpl
All Implemented Interfaces:
OfficeLoader

public class OfficeLoaderImpl
extends Object
implements OfficeLoader

OfficeLoader implementation.

Author:
Daniel Sagenschneider

Constructor Summary
OfficeLoaderImpl(NodeContext nodeContext)
          Initiate.
 
Method Summary
<O extends OfficeSource>
OfficeType
loadOfficeType(Class<O> officeSourceClass, String officeLocation, PropertyList propertyList)
          Loads and returns the OfficeType from the OfficeSource.
 OfficeType loadOfficeType(OfficeSource officeSource, String officeLocation, PropertyList propertyList)
          Loads and returns the OfficeType from the OfficeSource.
<O extends OfficeSource>
PropertyList
loadSpecification(Class<O> officeSourceClass)
          Loads and returns the PropertyList from the OfficeSourceSpecification for the OfficeSource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OfficeLoaderImpl

public OfficeLoaderImpl(NodeContext nodeContext)
Initiate.

Parameters:
nodeContext - NodeContext.
Method Detail

loadSpecification

public <O extends OfficeSource> PropertyList loadSpecification(Class<O> officeSourceClass)
Description copied from interface: OfficeLoader
Loads and returns the PropertyList from the OfficeSourceSpecification for the OfficeSource.

Specified by:
loadSpecification in interface OfficeLoader
Parameters:
officeSourceClass - Class of the OfficeSource.
Returns:
PropertyList of the OfficeSourceProperty instances of the OfficeSourceSpecification or null if issue, which is reported to the CompilerIssues.

loadOfficeType

public <O extends OfficeSource> OfficeType loadOfficeType(Class<O> officeSourceClass,
                                                          String officeLocation,
                                                          PropertyList propertyList)
Description copied from interface: OfficeLoader
Loads and returns the OfficeType from the OfficeSource.

Specified by:
loadOfficeType in interface OfficeLoader
Parameters:
officeSourceClass - Class of the OfficeSource.
officeLocation - Location of the Office.
propertyList - PropertyList containing the properties to source the OfficeType.
Returns:
OfficeType or null if issues, which are reported to the CompilerIssues.

loadOfficeType

public OfficeType loadOfficeType(OfficeSource officeSource,
                                 String officeLocation,
                                 PropertyList propertyList)
Description copied from interface: OfficeLoader
Loads and returns the OfficeType from the OfficeSource.

Specified by:
loadOfficeType in interface OfficeLoader
Parameters:
officeSource - OfficeSource instance.
officeLocation - Location of the Office.
propertyList - PropertyList containing the properties to source the OfficeType.
Returns:
OfficeType or null if issues, which are reported to the CompilerIssues.


Copyright © 2005-2013. All Rights Reserved.