Class SectionInterfaceAnnotation


  • public class SectionInterfaceAnnotation
    extends java.lang.Object
    SectionInterface annotation.
    Author:
    Daniel Sagenschneider
    • 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 the Flow.
        flowIndex - Index of Flow to invoked for this Method.
        isSpawn - Flags whether to spawn Flow in another ThreadState.
        parameterType - Type for parameter of the Flow. Will be null if no parameter.
        isFlowCallback - Flag indicating if FlowCallback for the Flow.
        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 the SectionOutput 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 the Flow.
        flowIndex - Index of Flow to invoked for this Method.
        isSpawn - Flags whether to spawn Flow in another ThreadState.
        parameterType - Type for parameter of the Flow. Will be null if no parameter.
        isFlowCallback - Flag indicating if FlowCallback for the Flow.
        sectionName - Name of the section.
        section - SectionInterface.
    • Method Detail

      • getFlowName

        public java.lang.String getFlowName()
        Obtains the name of the Flow.
        Returns:
        Name of the Flow.
      • getFlowIndex

        public int getFlowIndex()
        Obtains the index of the Flow to invoke for this Method.
        Returns:
        Index of the Flow to invoke for this Method.
      • getParameterType

        public java.lang.Class<?> getParameterType()
        Obtains the parameter type.
        Returns:
        Type for parameter of the Flow. Will be null if no parameter.
      • getSectionName

        public java.lang.String getSectionName()
        Obtains the name of the section.
        Returns:
        Name of the section.
      • getLocation

        public java.lang.String getLocation()
        Obtains the location of the section.
        Returns:
        Location of the section.