Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * 
   */
  package net.officefloor.model.section;
  
  
 
 @Generated("net.officefloor.model.generate.ModelGenerator")
 public class SubSectionOutputToExternalFlowModel extends AbstractModel implements ConnectionModel {
 
     public static enum SubSectionOutputToExternalFlowEvent {
      CHANGE_EXTERNAL_FLOW_NAME, CHANGE_SUB_SECTION_OUTPUT, CHANGE_EXTERNAL_FLOW
     }

    
Default constructor.
 
     }

    
Convenience constructor for new non-linked instance.
 
       String externalFlowName
     ) {
         this. = externalFlowName;
     }

    
Convenience constructor.
 
       String externalFlowName
     , SubSectionOutputModel subSectionOutput
     , ExternalFlowModel externalFlow
     ) {
         this. = externalFlowName;
         this. = subSectionOutput;
         this. = externalFlow;
     }

    
Convenience constructor allowing XY initialising.
 
       String externalFlowName
     , SubSectionOutputModel subSectionOutput
     , ExternalFlowModel externalFlow
     , int x
     , int y
     ) {
         this. = externalFlowName;
         this. = subSectionOutput;
         this. = externalFlow;
         this.setX(x);
         this.setY(y);
     }

    
External flow name.
 
     private String externalFlowName;
 
     public String getExternalFlowName() {
         return this.;
     }
 
     public void setExternalFlowName(String externalFlowName) {
         String oldValue = this.;
         this. = externalFlowName;
     }

    
Sub section output.
 
 
         return this.;
     }
 
     public void setSubSectionOutput(SubSectionOutputModel subSectionOutput) {
         SubSectionOutputModel oldValue = this.;
         this. = subSectionOutput;
     }

    
External flow.
 
     private ExternalFlowModel externalFlow;
 
     public ExternalFlowModel getExternalFlow() {
         return this.;
    }
    public void setExternalFlow(ExternalFlowModel externalFlow) {
        ExternalFlowModel oldValue = this.;
        this. = externalFlow;
    }
    /*
     * ConnectionModel
     */
    public boolean isRemovable() {
        return true;
    }
    public void connect() {
        this..setExternalFlow(this);
        this..addSubSectionOutput(this);
    }
    public void remove() {
        this..setExternalFlow(null);
        this..removeSubSectionOutput(this);
    }
New to GrepCode? Check out our FAQ X