Class SectionInterfaceAnnotation
- java.lang.Object
-
- net.officefloor.plugin.section.clazz.SectionInterfaceAnnotation
-
public class SectionInterfaceAnnotation extends java.lang.Object
SectionInterface
annotation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description SectionInterfaceAnnotation(java.lang.String flowName, int flowIndex, boolean isSpawn, java.lang.Class<?> parameterType, boolean isFlowCallback, java.lang.String sectionName, java.lang.Class<? extends SectionSource> source, java.lang.String location, PropertyValueAnnotation[] properties, FlowLinkAnnotation[] outputs)
Instantiate.SectionInterfaceAnnotation(java.lang.String flowName, int flowIndex, boolean isSpawn, java.lang.Class<?> parameterType, boolean isFlowCallback, java.lang.String sectionName, SectionInterface section)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getFlowIndex()
Obtains the index of theFlow
to invoke for thisMethod
.java.lang.String
getFlowName()
Obtains the name of theFlow
.java.lang.String
getLocation()
Obtains the location of the section.FlowLinkAnnotation[]
getOutputs()
Obtains theFlowLink
instances for theSectionOutput
instances.java.lang.Class<?>
getParameterType()
Obtains the parameter type.PropertyValueAnnotation[]
getProperties()
Obtains thePropertyValue
instances for the section.java.lang.String
getSectionName()
Obtains the name of the section.java.lang.Class<? extends SectionSource>
getSource()
Obtains theSectionSource
class for this section.boolean
isFlowCallback()
Indicates ifFlowCallback
for theFlow
.boolean
isSpawn()
Indicates whether to spawnFlow
in anotherThreadState
.
-
-
-
Constructor Detail
-
SectionInterfaceAnnotation
public SectionInterfaceAnnotation(java.lang.String flowName, int flowIndex, boolean isSpawn, java.lang.Class<?> parameterType, boolean isFlowCallback, java.lang.String sectionName, java.lang.Class<? extends SectionSource> source, java.lang.String location, PropertyValueAnnotation[] properties, FlowLinkAnnotation[] outputs)
Instantiate.- Parameters:
flowName
- Name of theFlow
.flowIndex
- Index ofFlow
to invoked for thisMethod
.isSpawn
- Flags whether to spawnFlow
in anotherThreadState
.parameterType
- Type for parameter of theFlow
. Will benull
if no parameter.isFlowCallback
- Flag indicating ifFlowCallback
for theFlow
.sectionName
- Name of the section.source
-SectionSource
class for this section.location
- Location of the section.properties
-PropertyValue
instances for the section.outputs
-FlowLink
instances for theSectionOutput
instances.
-
SectionInterfaceAnnotation
public SectionInterfaceAnnotation(java.lang.String flowName, int flowIndex, boolean isSpawn, java.lang.Class<?> parameterType, boolean isFlowCallback, java.lang.String sectionName, SectionInterface section)
Instantiate.- Parameters:
flowName
- Name of theFlow
.flowIndex
- Index ofFlow
to invoked for thisMethod
.isSpawn
- Flags whether to spawnFlow
in anotherThreadState
.parameterType
- Type for parameter of theFlow
. Will benull
if no parameter.isFlowCallback
- Flag indicating ifFlowCallback
for theFlow
.sectionName
- Name of the section.section
-SectionInterface
.
-
-
Method Detail
-
getFlowName
public java.lang.String getFlowName()
Obtains the name of theFlow
.- Returns:
- Name of the
Flow
.
-
getFlowIndex
public int getFlowIndex()
Obtains the index of theFlow
to invoke for thisMethod
.- Returns:
- Index of the
Flow
to invoke for thisMethod
.
-
isSpawn
public boolean isSpawn()
Indicates whether to spawnFlow
in anotherThreadState
.- Returns:
true
to spawnFlow
in anotherThreadState
.
-
getParameterType
public java.lang.Class<?> getParameterType()
Obtains the parameter type.- Returns:
- Type for parameter of the
Flow
. Will benull
if no parameter.
-
isFlowCallback
public boolean isFlowCallback()
Indicates ifFlowCallback
for theFlow
.- Returns:
true
ifFlowCallback
for theFlow
.
-
getSectionName
public java.lang.String getSectionName()
Obtains the name of the section.- Returns:
- Name of the section.
-
getSource
public java.lang.Class<? extends SectionSource> getSource()
Obtains theSectionSource
class for this section.- Returns:
SectionSource
class.
-
getLocation
public java.lang.String getLocation()
Obtains the location of the section.- Returns:
- Location of the section.
-
getProperties
public PropertyValueAnnotation[] getProperties()
Obtains thePropertyValue
instances for the section.- Returns:
PropertyValue
instances for the section.
-
getOutputs
public FlowLinkAnnotation[] getOutputs()
Obtains theFlowLink
instances for theSectionOutput
instances.- Returns:
FlowLink
instances for theSectionOutput
instances.
-
-