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 OfficeTeamModel extends AbstractModel implements ItemModel<OfficeTeamModel> {
 
     public static enum OfficeTeamEvent {
      CHANGE_OFFICE_TEAM_NAME, ADD_OFFICE_SECTION_RESPONSIBILITY, REMOVE_OFFICE_SECTION_RESPONSIBILITY, ADD_OFFICE_MANAGED_OBJECT_SOURCE_TEAM, REMOVE_OFFICE_MANAGED_OBJECT_SOURCE_TEAM, ADD_ADMINISTRATOR, REMOVE_ADMINISTRATOR
     }

    
Default constructor.
 
     public OfficeTeamModel() {
     }

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

    
Convenience constructor.
 
     public OfficeTeamModel(
       String officeTeamName
     , OfficeSectionResponsibilityToOfficeTeamModel[] officeSectionResponsibility
     , OfficeManagedObjectSourceTeamToOfficeTeamModel[] officeManagedObjectSourceTeam
     , AdministratorToOfficeTeamModel[] administrator
     ) {
         this. = officeTeamName;
         if (officeSectionResponsibility != null) {
             for (OfficeSectionResponsibilityToOfficeTeamModel model : officeSectionResponsibility) {
                 this..add(model);
             }
         }
         if (officeManagedObjectSourceTeam != null) {
             for (OfficeManagedObjectSourceTeamToOfficeTeamModel model : officeManagedObjectSourceTeam) {
                 this..add(model);
             }
         }
         if (administrator != null) {
             for (AdministratorToOfficeTeamModel model : administrator) {
                 this..add(model);
             }
         }
     }

    
Convenience constructor allowing XY initialising.
 
     public OfficeTeamModel(
       String officeTeamName
     , OfficeSectionResponsibilityToOfficeTeamModel[] officeSectionResponsibility
     , OfficeManagedObjectSourceTeamToOfficeTeamModel[] officeManagedObjectSourceTeam
     , AdministratorToOfficeTeamModel[] administrator
     , int x
     , int y
     ) {
         this. = officeTeamName;
         if (officeSectionResponsibility != null) {
             for (OfficeSectionResponsibilityToOfficeTeamModel model : officeSectionResponsibility) {
                 this..add(model);
             }
         }
         if (officeManagedObjectSourceTeam != null) {
             for (OfficeManagedObjectSourceTeamToOfficeTeamModel model : officeManagedObjectSourceTeam) {
                 this..add(model);
             }
         }
         if (administrator != null) {
             for (AdministratorToOfficeTeamModel model : administrator) {
                 this..add(model);
             }
         }
         this.setX(x);
         this.setY(y);
     }

    
Office team name.
 
     private String officeTeamName;
 
    public String getOfficeTeamName() {
        return this.;
    }
    public void setOfficeTeamName(String officeTeamName) {
        String oldValue = this.;
        this. = officeTeamName;
        this.changeField(oldValuethis..);
    }


    
Office section responsibility.
        return this.;
    }
    public void addOfficeSectionResponsibility(OfficeSectionResponsibilityToOfficeTeamModel officeSectionResponsibility) {
        this.addItemToList(officeSectionResponsibilitythis..);
    }
    public void removeOfficeSectionResponsibility(OfficeSectionResponsibilityToOfficeTeamModel officeSectionResponsibility) {
    }

    
Office managed object source team.
        return this.;
    }
    public void addOfficeManagedObjectSourceTeam(OfficeManagedObjectSourceTeamToOfficeTeamModel officeManagedObjectSourceTeam) {
        this.addItemToList(officeManagedObjectSourceTeamthis..);
    }
    public void removeOfficeManagedObjectSourceTeam(OfficeManagedObjectSourceTeamToOfficeTeamModel officeManagedObjectSourceTeam) {
    }

    
Administrator.
        return this.;
    }
    public void addAdministrator(AdministratorToOfficeTeamModel administrator) {
        this.addItemToList(administratorthis..);
    }
    public void removeAdministrator(AdministratorToOfficeTeamModel administrator) {
        this.removeItemFromList(administratorthis..);
    }


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