Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * 
   */
  package net.officefloor.model.office;
  
  import java.util.List;
  
 
 
 @Generated("net.officefloor.model.generate.ModelGenerator")
 public class OfficeSubSectionModel extends AbstractModel implements ItemModel<OfficeSubSectionModel> {
 
     public static enum OfficeSubSectionEvent {
      CHANGE_OFFICE_SUB_SECTION_NAME, ADD_OFFICE_TASK, REMOVE_OFFICE_TASK, ADD_OFFICE_SECTION_MANAGED_OBJECT, REMOVE_OFFICE_SECTION_MANAGED_OBJECT, ADD_OFFICE_SUB_SECTION, REMOVE_OFFICE_SUB_SECTION
     }

    
Default constructor.
 
     public OfficeSubSectionModel() {
     }

    
Convenience constructor for new non-linked instance.
 
     public OfficeSubSectionModel(
       String officeSubSectionName
     ) {
         this. = officeSubSectionName;
     }

    
Convenience constructor.
 
     public OfficeSubSectionModel(
       String officeSubSectionName
     , OfficeTaskModel[] officeTask
     , OfficeSectionManagedObjectModel[] officeSectionManagedObject
     , OfficeSubSectionModel[] officeSubSection
     ) {
         this. = officeSubSectionName;
         if (officeTask != null) {
             for (OfficeTaskModel model : officeTask) {
                 this..add(model);
             }
         }
         if (officeSectionManagedObject != null) {
             for (OfficeSectionManagedObjectModel model : officeSectionManagedObject) {
                 this..add(model);
             }
         }
         if (officeSubSection != null) {
             for (OfficeSubSectionModel model : officeSubSection) {
                 this..add(model);
             }
         }
     }

    
Convenience constructor allowing XY initialising.
 
     public OfficeSubSectionModel(
       String officeSubSectionName
     , OfficeTaskModel[] officeTask
     , OfficeSectionManagedObjectModel[] officeSectionManagedObject
     , OfficeSubSectionModel[] officeSubSection
     , int x
     , int y
     ) {
         this. = officeSubSectionName;
         if (officeTask != null) {
             for (OfficeTaskModel model : officeTask) {
                 this..add(model);
             }
         }
         if (officeSectionManagedObject != null) {
             for (OfficeSectionManagedObjectModel model : officeSectionManagedObject) {
                 this..add(model);
             }
         }
         if (officeSubSection != null) {
             for (OfficeSubSectionModel model : officeSubSection) {
                 this..add(model);
             }
         }
         this.setX(x);
         this.setY(y);
     }

    
Office sub section name.
 
     private String officeSubSectionName;
 
    public String getOfficeSubSectionName() {
        return this.;
    }
    public void setOfficeSubSectionName(String officeSubSectionName) {
        String oldValue = this.;
        this. = officeSubSectionName;
    }


    
Office task.
    public List<OfficeTaskModelgetOfficeTasks() {
        return this.;
    }
    public void addOfficeTask(OfficeTaskModel officeTask) {
        this.addItemToList(officeTaskthis..);
    }
    public void removeOfficeTask(OfficeTaskModel officeTask) {
    }

    
Office section managed object.
        return this.;
    }
    public void addOfficeSectionManagedObject(OfficeSectionManagedObjectModel officeSectionManagedObject) {
    }
    public void removeOfficeSectionManagedObject(OfficeSectionManagedObjectModel officeSectionManagedObject) {
    }

    
Office sub section.
        return this.;
    }
    public void addOfficeSubSection(OfficeSubSectionModel officeSubSection) {
        this.addItemToList(officeSubSectionthis..);
    }
    public void removeOfficeSubSection(OfficeSubSectionModel officeSubSection) {
    }


    
Remove Connections.
        return _action;
    }
New to GrepCode? Check out our FAQ X