Class TransformSectionSource
- java.lang.Object
-
- net.officefloor.compile.spi.section.source.impl.AbstractSectionSource
-
- net.officefloor.plugin.section.transform.TransformSectionSource
-
- All Implemented Interfaces:
OfficeSectionTransformer,SectionSource
@PrivateSource public class TransformSectionSource extends AbstractSectionSource implements OfficeSectionTransformer
Enables transforming aSectionSource.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.officefloor.compile.spi.section.source.impl.AbstractSectionSource
AbstractSectionSource.SpecificationContext
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPROPERTY_SECTION_LOCATIONName of thePropertyfor the location of theSectionSourceto transform.static java.lang.StringPROPERTY_SECTION_PROPERTY_PREFIXstatic java.lang.StringPROPERTY_SECTION_SOURCE_CLASS_NAMEstatic java.lang.StringSUB_SECTION_NAMEName of theSubSectionbeing transformed.
-
Constructor Summary
Constructors Constructor Description TransformSectionSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigureProperties(OfficeSectionTransformerContext context, PropertyList properties)Enables overriding to configure additionalPropertyinstances.protected SectionSourceContextgetContext()Obtains theSectionSourceContext.protected TransformSectionDesignergetDesginer()Obtains theTransformSectionDesignerto configure the transformedSectionSource.protected voidloadEnhancements()Loads further enhancements.protected voidloadSectionInput(SectionInputType inputType)Loads theSectionInput.protected voidloadSectionObject(SectionObjectType objectType)Loads theSectionObject.protected voidloadSectionOutput(SectionOutputType outputType)Loads theSectionOutput.protected voidloadSpecification(AbstractSectionSource.SpecificationContext context)Loads theSectionSourceSpecification.protected voidloadSubSection(java.lang.String sectionSourceClassName, java.lang.String sectionLocation, PropertyList properties)Loads theSectionSource.voidsourceSection(SectionDesigner designer, SectionSourceContext context)Sources theOfficeSectionby constructing it via the inputSectionDesigner.voidtransformOfficeSection(OfficeSectionTransformerContext context)Transforms theOfficeSection.-
Methods inherited from class net.officefloor.compile.spi.section.source.impl.AbstractSectionSource
getSpecification
-
-
-
-
Field Detail
-
PROPERTY_SECTION_SOURCE_CLASS_NAME
public static final java.lang.String PROPERTY_SECTION_SOURCE_CLASS_NAME
- See Also:
- Constant Field Values
-
PROPERTY_SECTION_LOCATION
public static final java.lang.String PROPERTY_SECTION_LOCATION
Name of thePropertyfor the location of theSectionSourceto transform.- See Also:
- Constant Field Values
-
PROPERTY_SECTION_PROPERTY_PREFIX
public static final java.lang.String PROPERTY_SECTION_PROPERTY_PREFIX
- See Also:
- Constant Field Values
-
SUB_SECTION_NAME
public static final java.lang.String SUB_SECTION_NAME
Name of theSubSectionbeing transformed.- See Also:
- Constant Field Values
-
-
Method Detail
-
getDesginer
protected final TransformSectionDesigner getDesginer()
Obtains theTransformSectionDesignerto configure the transformedSectionSource.- Returns:
TransformSectionDesigner.
-
getContext
protected final SectionSourceContext getContext()
Obtains theSectionSourceContext.- Returns:
SectionSourceContext.
-
loadSubSection
protected void loadSubSection(java.lang.String sectionSourceClassName, java.lang.String sectionLocation, PropertyList properties) throws java.lang.ExceptionLoads the
SectionSource.Override to alter the
SectionSource.- Parameters:
sectionSourceClassName-SectionSourceclass name.sectionLocation-SectionSourcelocation.properties-PropertyListfor theSectionSource.- Throws:
java.lang.Exception- If fails to load the wrappedSubSection.
-
loadSectionInput
protected void loadSectionInput(SectionInputType inputType) throws java.lang.Exception
Loads the
SectionInput.Override to alter
SectionInputinstances.- Parameters:
inputType-SectionInputType.- Throws:
java.lang.Exception- If fails to load theSectionInput.
-
loadSectionOutput
protected void loadSectionOutput(SectionOutputType outputType) throws java.lang.Exception
Loads the
SectionOutput.Override to alter
SectionOutputinstances.- Parameters:
outputType-SectionOutputType.- Throws:
java.lang.Exception- If fails to load theSectionOutput.
-
loadSectionObject
protected void loadSectionObject(SectionObjectType objectType) throws java.lang.Exception
Loads the
SectionObject.Override to alter
SectionObjectinstances.- Parameters:
objectType-SectionObjectType.- Throws:
java.lang.Exception- If fails to laod theSectionObject.
-
loadEnhancements
protected void loadEnhancements() throws java.lang.ExceptionLoads further enhancements.
Override to load further enhancements.
- Throws:
java.lang.Exception- If fails to load enhancements.
-
transformOfficeSection
public void transformOfficeSection(OfficeSectionTransformerContext context)
Description copied from interface:OfficeSectionTransformerTransforms theOfficeSection.- Specified by:
transformOfficeSectionin interfaceOfficeSectionTransformer- Parameters:
context-OfficeSectionTransformerContext.
-
configureProperties
protected void configureProperties(OfficeSectionTransformerContext context, PropertyList properties)
Enables overriding to configure additionalPropertyinstances.- Parameters:
context-OfficeSectionTransformerContext.properties-PropertyListto load additionalPropertyinstances.
-
loadSpecification
protected void loadSpecification(AbstractSectionSource.SpecificationContext context)
Description copied from class:AbstractSectionSourceLoads theSectionSourceSpecification.- Specified by:
loadSpecificationin classAbstractSectionSource- Parameters:
context-AbstractSectionSource.SpecificationContext.
-
sourceSection
public void sourceSection(SectionDesigner designer, SectionSourceContext context) throws java.lang.Exception
Description copied from interface:SectionSourceSources theOfficeSectionby constructing it via the inputSectionDesigner.- Specified by:
sourceSectionin interfaceSectionSource- Parameters:
designer-SectionDesignerto construct the structure of theOfficeSection.context-SectionSourceContextto source details to construct theOfficeSection.- Throws:
java.lang.Exception- If fails to construct theOfficeSection.
-
-