/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/core/vo/beans/BayConfigVoBean.java
//#############################################################################
//#                                                                           #
//#  Copyright (C) <2015>  <IMS MAXIMS>                                       #
//#                                                                           #
//#  This program is free software: you can redistribute it and/or modify     #
//#  it under the terms of the GNU Affero General Public License as           #
//#  published by the Free Software Foundation, either version 3 of the       #
//#  License, or (at your option) any later version.                          # 
//#                                                                           #
//#  This program is distributed in the hope that it will be useful,          #
//#  but WITHOUT ANY WARRANTY; without even the implied warranty of           #
//#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            #
//#  GNU Affero General Public License for more details.                      #
//#                                                                           #
//#  You should have received a copy of the GNU Affero General Public License #
//#  along with this program.  If not, see <http://www.gnu.org/licenses/>.    #
//#                                                                           #
//#  IMS MAXIMS provides absolutely NO GUARANTEE OF THE CLINICAL SAFTEY of    #
//#  this program.  Users of this software do so entirely at their own risk.  #
//#  IMS MAXIMS only ensures the Clinical Safety of unaltered run-time        #
//#  software that it builds, deploys and maintains.                          #
//#                                                                           #
//#############################################################################
//#EOH
// This code was generated by Barbara Worwood using IMS Development Environment (version 1.80 build 5589.25814)
// Copyright (C) 1995-2015 IMS MAXIMS. All rights reserved.
// WARNING: DO NOT MODIFY the content of this file

package ims.core.vo.beans;

public class BayConfigVoBean extends ims.vo.ValueObjectBean
{
	public BayConfigVoBean()
	{
	}
	public BayConfigVoBean(ims.core.vo.BayConfigVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.bay = vo.getBay() == null ? null : (ims.core.vo.beans.LocationLiteVoBean)vo.getBay().getBean();
		this.isactive = vo.getIsActive();
		this.male = vo.getMale();
		this.female = vo.getFemale();
		this.paediatric = vo.getPaediatric();
		this.numofbeds = vo.getNumOfBeds();
		this.numofoccupiedbeds = vo.getNumOfOccupiedBeds();
		this.openingtime = vo.getOpeningTime() == null ? null : (ims.framework.utils.beans.TimeBean)vo.getOpeningTime().getBean();
		this.closingtime = vo.getClosingTime() == null ? null : (ims.framework.utils.beans.TimeBean)vo.getClosingTime().getBean();
		this.weekdaysonly = vo.getWeekdaysOnly();
		this.bayavailabilitystatus = vo.getBayAvailabilityStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getBayAvailabilityStatus().getBean();
		this.reopenoutofhours = vo.getReOpenOutOfHours() == null ? null : vo.getReOpenOutOfHours().getBeanCollection();
		this.temporarybaygender = vo.getTemporaryBayGender() == null ? null : (ims.vo.LookupInstanceBean)vo.getTemporaryBayGender().getBean();
		this.floorbedspacelayout = vo.getFloorBedSpaceLayout() == null ? null : (ims.core.vo.beans.FloorBedSpaceLayoutLiteVoBean)vo.getFloorBedSpaceLayout().getBean();
		this.dependency = vo.getDependency() == null ? null : (ims.vo.LookupInstanceBean)vo.getDependency().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.core.vo.BayConfigVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.bay = vo.getBay() == null ? null : (ims.core.vo.beans.LocationLiteVoBean)vo.getBay().getBean(map);
		this.isactive = vo.getIsActive();
		this.male = vo.getMale();
		this.female = vo.getFemale();
		this.paediatric = vo.getPaediatric();
		this.numofbeds = vo.getNumOfBeds();
		this.numofoccupiedbeds = vo.getNumOfOccupiedBeds();
		this.openingtime = vo.getOpeningTime() == null ? null : (ims.framework.utils.beans.TimeBean)vo.getOpeningTime().getBean();
		this.closingtime = vo.getClosingTime() == null ? null : (ims.framework.utils.beans.TimeBean)vo.getClosingTime().getBean();
		this.weekdaysonly = vo.getWeekdaysOnly();
		this.bayavailabilitystatus = vo.getBayAvailabilityStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getBayAvailabilityStatus().getBean();
		this.reopenoutofhours = vo.getReOpenOutOfHours() == null ? null : vo.getReOpenOutOfHours().getBeanCollection();
		this.temporarybaygender = vo.getTemporaryBayGender() == null ? null : (ims.vo.LookupInstanceBean)vo.getTemporaryBayGender().getBean();
		this.floorbedspacelayout = vo.getFloorBedSpaceLayout() == null ? null : (ims.core.vo.beans.FloorBedSpaceLayoutLiteVoBean)vo.getFloorBedSpaceLayout().getBean(map);
		this.dependency = vo.getDependency() == null ? null : (ims.vo.LookupInstanceBean)vo.getDependency().getBean();
	}

	public ims.core.vo.BayConfigVo buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

	public ims.core.vo.BayConfigVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.core.vo.BayConfigVo vo = null;
		if(map != null)
			vo = (ims.core.vo.BayConfigVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.core.vo.BayConfigVo();
			map.addValueObject(this, vo);
			vo.populate(map, this);
		}
		return vo;
	}

	public Integer getId()
	{
		return this.id;
	}
	public void setId(Integer value)
	{
		this.id = value;
	}
	public int getVersion()
	{
		return this.version;
	}
	public void setVersion(int value)
	{
		this.version = value;
	}
	public ims.core.vo.beans.LocationLiteVoBean getBay()
	{
		return this.bay;
	}
	public void setBay(ims.core.vo.beans.LocationLiteVoBean value)
	{
		this.bay = value;
	}
	public Boolean getIsActive()
	{
		return this.isactive;
	}
	public void setIsActive(Boolean value)
	{
		this.isactive = value;
	}
	public Boolean getMale()
	{
		return this.male;
	}
	public void setMale(Boolean value)
	{
		this.male = value;
	}
	public Boolean getFemale()
	{
		return this.female;
	}
	public void setFemale(Boolean value)
	{
		this.female = value;
	}
	public Boolean getPaediatric()
	{
		return this.paediatric;
	}
	public void setPaediatric(Boolean value)
	{
		this.paediatric = value;
	}
	public Integer getNumOfBeds()
	{
		return this.numofbeds;
	}
	public void setNumOfBeds(Integer value)
	{
		this.numofbeds = value;
	}
	public Integer getNumOfOccupiedBeds()
	{
		return this.numofoccupiedbeds;
	}
	public void setNumOfOccupiedBeds(Integer value)
	{
		this.numofoccupiedbeds = value;
	}
	public ims.framework.utils.beans.TimeBean getOpeningTime()
	{
		return this.openingtime;
	}
	public void setOpeningTime(ims.framework.utils.beans.TimeBean value)
	{
		this.openingtime = value;
	}
	public ims.framework.utils.beans.TimeBean getClosingTime()
	{
		return this.closingtime;
	}
	public void setClosingTime(ims.framework.utils.beans.TimeBean value)
	{
		this.closingtime = value;
	}
	public Boolean getWeekdaysOnly()
	{
		return this.weekdaysonly;
	}
	public void setWeekdaysOnly(Boolean value)
	{
		this.weekdaysonly = value;
	}
	public ims.vo.LookupInstanceBean getBayAvailabilityStatus()
	{
		return this.bayavailabilitystatus;
	}
	public void setBayAvailabilityStatus(ims.vo.LookupInstanceBean value)
	{
		this.bayavailabilitystatus = value;
	}
	public ims.core.vo.beans.ReopenBayOutOfHoursVoBean[] getReOpenOutOfHours()
	{
		return this.reopenoutofhours;
	}
	public void setReOpenOutOfHours(ims.core.vo.beans.ReopenBayOutOfHoursVoBean[] value)
	{
		this.reopenoutofhours = value;
	}
	public ims.vo.LookupInstanceBean getTemporaryBayGender()
	{
		return this.temporarybaygender;
	}
	public void setTemporaryBayGender(ims.vo.LookupInstanceBean value)
	{
		this.temporarybaygender = value;
	}
	public ims.core.vo.beans.FloorBedSpaceLayoutLiteVoBean getFloorBedSpaceLayout()
	{
		return this.floorbedspacelayout;
	}
	public void setFloorBedSpaceLayout(ims.core.vo.beans.FloorBedSpaceLayoutLiteVoBean value)
	{
		this.floorbedspacelayout = value;
	}
	public ims.vo.LookupInstanceBean getDependency()
	{
		return this.dependency;
	}
	public void setDependency(ims.vo.LookupInstanceBean value)
	{
		this.dependency = value;
	}

	private Integer id;
	private int version;
	private ims.core.vo.beans.LocationLiteVoBean bay;
	private Boolean isactive;
	private Boolean male;
	private Boolean female;
	private Boolean paediatric;
	private Integer numofbeds;
	private Integer numofoccupiedbeds;
	private ims.framework.utils.beans.TimeBean openingtime;
	private ims.framework.utils.beans.TimeBean closingtime;
	private Boolean weekdaysonly;
	private ims.vo.LookupInstanceBean bayavailabilitystatus;
	private ims.core.vo.beans.ReopenBayOutOfHoursVoBean[] reopenoutofhours;
	private ims.vo.LookupInstanceBean temporarybaygender;
	private ims.core.vo.beans.FloorBedSpaceLayoutLiteVoBean floorbedspacelayout;
	private ims.vo.LookupInstanceBean dependency;
}
