Class AdministrationLoaderImpl
- java.lang.Object
-
- net.officefloor.compile.impl.administrator.AdministrationLoaderImpl
-
- All Implemented Interfaces:
AdministrationLoader
,IssueTarget
public class AdministrationLoaderImpl extends java.lang.Object implements AdministrationLoader, IssueTarget
AdministrationLoader
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description AdministrationLoaderImpl(Node node, OfficeNode officeNode, NodeContext nodeContext, boolean isLoadingType)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addIssue(java.lang.String issueDescription)
Adds the issue.void
addIssue(java.lang.String issueDescription, java.lang.Throwable cause)
Adds the issue.<E,F extends java.lang.Enum<F>,G extends java.lang.Enum<G>,AS extends AdministrationSource<E,F,G>>
AdministrationType<E,F,G>loadAdministrationType(java.lang.Class<AS> administratorSourceClass, PropertyList propertyList)
Loads and returns theAdministrationType
sourced from theAdministrationSource
.<E,F extends java.lang.Enum<F>,G extends java.lang.Enum<G>>
AdministrationType<E,F,G>loadAdministrationType(AdministrationSource<E,F,G> administratorSource, PropertyList propertyList)
Loads and returns theAdministrationType
sourced from theAdministrationSource
.<E,F extends java.lang.Enum<F>,G extends java.lang.Enum<G>,AS extends AdministrationSource<E,F,G>>
PropertyListloadSpecification(java.lang.Class<AS> administrationSourceClass)
Loads and returns thePropertyList
from theAdministrationSourceSpecification
for theAdministrationSource
.<E,F extends java.lang.Enum<F>,G extends java.lang.Enum<G>>
PropertyListloadSpecification(AdministrationSource<E,F,G> administrationSource)
Loads and returns thePropertyList
from theAdministrationSourceSpecification
for theAdministrationSource
.
-
-
-
Constructor Detail
-
AdministrationLoaderImpl
public AdministrationLoaderImpl(Node node, OfficeNode officeNode, NodeContext nodeContext, boolean isLoadingType)
Instantiate.- Parameters:
node
-Node
requiring theAdministration
.officeNode
-OfficeNode
. May benull
if not loading withinOfficeNode
.nodeContext
-NodeContext
.isLoadingType
- Indicates if using to load type.
-
-
Method Detail
-
loadSpecification
public <E,F extends java.lang.Enum<F>,G extends java.lang.Enum<G>,AS extends AdministrationSource<E,F,G>> PropertyList loadSpecification(java.lang.Class<AS> administrationSourceClass)
Description copied from interface:AdministrationLoader
Loads and returns thePropertyList
from theAdministrationSourceSpecification
for theAdministrationSource
.- Specified by:
loadSpecification
in interfaceAdministrationLoader
- Type Parameters:
E
- Extension interface type.F
-Enum
for theFlow
keys.G
-Enum
for theGovernance
keys.AS
-AdministrationSource
type.- Parameters:
administrationSourceClass
-AdministrationSource
class.- Returns:
PropertyList
of theAdministrationSourceProperty
instances of theAdministrationSourceSpecification
ornull
if issues, which are reported to theCompilerIssues
.
-
loadSpecification
public <E,F extends java.lang.Enum<F>,G extends java.lang.Enum<G>> PropertyList loadSpecification(AdministrationSource<E,F,G> administrationSource)
Description copied from interface:AdministrationLoader
Loads and returns thePropertyList
from theAdministrationSourceSpecification
for theAdministrationSource
.- Specified by:
loadSpecification
in interfaceAdministrationLoader
- Type Parameters:
E
- Extension interface type.F
-Enum
for theFlow
keys.G
-Enum
for theGovernance
keys.- Parameters:
administrationSource
-AdministrationSource
instance.- Returns:
PropertyList
of theAdministrationSourceProperty
instances of theAdministrationSourceSpecification
ornull
if issues, which are reported to theCompilerIssues
.
-
loadAdministrationType
public <E,F extends java.lang.Enum<F>,G extends java.lang.Enum<G>,AS extends AdministrationSource<E,F,G>> AdministrationType<E,F,G> loadAdministrationType(java.lang.Class<AS> administratorSourceClass, PropertyList propertyList)
Description copied from interface:AdministrationLoader
Loads and returns theAdministrationType
sourced from theAdministrationSource
.- Specified by:
loadAdministrationType
in interfaceAdministrationLoader
- Type Parameters:
E
- Extension interface type.F
-Enum
for theFlow
keys.G
-Enum
for theGovernance
keys.AS
-AdministrationSource
type.- Parameters:
administratorSourceClass
- Class of theAdministrationSource
.propertyList
-PropertyList
containing the properties to source theAdministrationType
.- Returns:
AdministrationType
ornull
if issues, which are reported to theCompilerIssues
.
-
loadAdministrationType
public <E,F extends java.lang.Enum<F>,G extends java.lang.Enum<G>> AdministrationType<E,F,G> loadAdministrationType(AdministrationSource<E,F,G> administratorSource, PropertyList propertyList)
Description copied from interface:AdministrationLoader
Loads and returns theAdministrationType
sourced from theAdministrationSource
.- Specified by:
loadAdministrationType
in interfaceAdministrationLoader
- Type Parameters:
E
- Extension interface type.F
-Enum
for theFlow
keys.G
-Enum
for theGovernance
keys.- Parameters:
administratorSource
-AdministrationSource
instance.propertyList
-PropertyList
containing the properties to source theAdministrationType
.- Returns:
AdministrationType
ornull
if issues, which are reported to theCompilerIssues
.
-
addIssue
public void addIssue(java.lang.String issueDescription)
Description copied from interface:IssueTarget
Adds the issue.- Specified by:
addIssue
in interfaceIssueTarget
- Parameters:
issueDescription
- Description of the issue.
-
addIssue
public void addIssue(java.lang.String issueDescription, java.lang.Throwable cause)
Description copied from interface:IssueTarget
Adds the issue.- Specified by:
addIssue
in interfaceIssueTarget
- Parameters:
issueDescription
- Description of the issue.cause
- Cause of the issue.
-
-