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 AdministratorModel extends AbstractModel implements ItemModel<AdministratorModel> {
 
     public static enum AdministratorEvent {
      CHANGE_ADMINISTRATOR_NAME, CHANGE_ADMINISTRATOR_SOURCE_CLASS_NAME, CHANGE_ADMINISTRATOR_SCOPE, CHANGE_OFFICE_TEAM, ADD_PROPERTY, REMOVE_PROPERTY, ADD_DUTY, REMOVE_DUTY, ADD_EXTERNAL_MANAGED_OBJECT, REMOVE_EXTERNAL_MANAGED_OBJECT, ADD_OFFICE_MANAGED_OBJECT, REMOVE_OFFICE_MANAGED_OBJECT
     }

    
Default constructor.
 
     public AdministratorModel() {
     }

    
Convenience constructor for new non-linked instance.
 
     public AdministratorModel(
       String administratorName
     , String administratorSourceClassName
     , String administratorScope
     ) {
         this. = administratorName;
         this. = administratorSourceClassName;
         this. = administratorScope;
     }

    
Convenience constructor.
 
     public AdministratorModel(
       String administratorName
     , String administratorSourceClassName
     , String administratorScope
     , AdministratorToOfficeTeamModel officeTeam
     , PropertyModel[] property
     , DutyModel[] duty
     , ExternalManagedObjectToAdministratorModel[] externalManagedObject
     , OfficeManagedObjectToAdministratorModel[] officeManagedObject
     ) {
         this. = administratorName;
         this. = administratorSourceClassName;
         this. = administratorScope;
         this. = officeTeam;
         if (property != null) {
             for (PropertyModel model : property) {
                 this..add(model);
             }
         }
         if (duty != null) {
             for (DutyModel model : duty) {
                 this..add(model);
             }
         }
         if (externalManagedObject != null) {
             for (ExternalManagedObjectToAdministratorModel model : externalManagedObject) {
                 this..add(model);
             }
         }
         if (officeManagedObject != null) {
             for (OfficeManagedObjectToAdministratorModel model : officeManagedObject) {
                 this..add(model);
             }
         }
     }

    
Convenience constructor allowing XY initialising.
 
     public AdministratorModel(
       String administratorName
     , String administratorSourceClassName
     , String administratorScope
     , AdministratorToOfficeTeamModel officeTeam
     , PropertyModel[] property
     , DutyModel[] duty
     , ExternalManagedObjectToAdministratorModel[] externalManagedObject
     , OfficeManagedObjectToAdministratorModel[] officeManagedObject
     , int x
     , int y
     ) {
         this. = administratorName;
         this. = administratorSourceClassName;
         this. = administratorScope;
         this. = officeTeam;
         if (property != null) {
            for (PropertyModel model : property) {
                this..add(model);
            }
        }
        if (duty != null) {
            for (DutyModel model : duty) {
                this..add(model);
            }
        }
        if (externalManagedObject != null) {
            for (ExternalManagedObjectToAdministratorModel model : externalManagedObject) {
                this..add(model);
            }
        }
        if (officeManagedObject != null) {
            for (OfficeManagedObjectToAdministratorModel model : officeManagedObject) {
                this..add(model);
            }
        }
        this.setX(x);
        this.setY(y);
    }

    
Administrator name.
    private String administratorName;
    public String getAdministratorName() {
        return this.;
    }
    public void setAdministratorName(String administratorName) {
        String oldValue = this.;
        this. = administratorName;
    }

    
Administrator source class name.
        return this.;
    }
    public void setAdministratorSourceClassName(String administratorSourceClassName) {
        String oldValue = this.;
        this. = administratorSourceClassName;
    }

    
Administrator scope.
    private String administratorScope;
    public String getAdministratorScope() {
        return this.;
    }
    public void setAdministratorScope(String administratorScope) {
        String oldValue = this.;
        this. = administratorScope;
    }

    
Office team.
        return this.;
    }
    public void setOfficeTeam(AdministratorToOfficeTeamModel officeTeam) {
        AdministratorToOfficeTeamModel oldValue = this.;
        this. = officeTeam;
        this.changeField(oldValuethis..);
    }


    
Property.
    private List<PropertyModelproperty = new LinkedList<PropertyModel>();
    public List<PropertyModelgetProperties() {
        return this.;
    }
    public void addProperty(PropertyModel property) {
        this.addItemToList(propertythis..);
    }
    public void removeProperty(PropertyModel property) {
        this.removeItemFromList(propertythis..);
    }

    
Duty.
    private List<DutyModelduty = new LinkedList<DutyModel>();
    public List<DutyModelgetDuties() {
        return this.;
    }
    public void addDuty(DutyModel duty) {
        this.addItemToList(dutythis..);
    }
    public void removeDuty(DutyModel duty) {
        this.removeItemFromList(dutythis..);
    }

    
External managed object.
        return this.;
    }
    public void addExternalManagedObject(ExternalManagedObjectToAdministratorModel externalManagedObject) {
        this.addItemToList(externalManagedObjectthis..);
    }
    public void removeExternalManagedObject(ExternalManagedObjectToAdministratorModel externalManagedObject) {
    }

    
Office managed object.
        return this.;
    }
    public void addOfficeManagedObject(OfficeManagedObjectToAdministratorModel officeManagedObject) {
        this.addItemToList(officeManagedObjectthis..);
    }
    public void removeOfficeManagedObject(OfficeManagedObjectToAdministratorModel officeManagedObject) {
    }


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