/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/clinical/vo/beans/OutpatientClinicListSearchCriteriaVoBean.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.clinical.vo.beans;

public class OutpatientClinicListSearchCriteriaVoBean extends ims.vo.ValueObjectBean
{
	public OutpatientClinicListSearchCriteriaVoBean()
	{
	}
	public OutpatientClinicListSearchCriteriaVoBean(ims.clinical.vo.OutpatientClinicListSearchCriteriaVo vo)
	{
		this.hospital = vo.getHospital() == null ? null : (ims.core.vo.beans.LocationLiteVoBean)vo.getHospital().getBean();
		this.clinic = vo.getClinic() == null ? null : (ims.scheduling.vo.beans.SessionShortVoBean)vo.getClinic().getBean();
		this.date = vo.getDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDate().getBean();
		this.service = vo.getService() == null ? null : (ims.core.vo.beans.ServiceLiteVoBean)vo.getService().getBean();
		this.listowners = vo.getListOwners() == null ? null : vo.getListOwners().getBeanCollection();
		this.listtype = vo.getListType() == null ? null : vo.getListType().getBeanCollection();
		this.outpatientlocation = vo.getOutPatientLocation() == null ? null : (ims.core.vo.beans.LocationLiteVoBean)vo.getOutPatientLocation().getBean();
		this.wastimeron = vo.getWasTimerOn();
		this.timefrom = vo.getTimeFrom() == null ? null : (ims.framework.utils.beans.TimeBean)vo.getTimeFrom().getBean();
		this.timeto = vo.getTimeTo() == null ? null : (ims.framework.utils.beans.TimeBean)vo.getTimeTo().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.clinical.vo.OutpatientClinicListSearchCriteriaVo vo)
	{
		this.hospital = vo.getHospital() == null ? null : (ims.core.vo.beans.LocationLiteVoBean)vo.getHospital().getBean(map);
		this.clinic = vo.getClinic() == null ? null : (ims.scheduling.vo.beans.SessionShortVoBean)vo.getClinic().getBean(map);
		this.date = vo.getDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getDate().getBean();
		this.service = vo.getService() == null ? null : (ims.core.vo.beans.ServiceLiteVoBean)vo.getService().getBean(map);
		this.listowners = vo.getListOwners() == null ? null : vo.getListOwners().getBeanCollection();
		this.listtype = vo.getListType() == null ? null : vo.getListType().getBeanCollection();
		this.outpatientlocation = vo.getOutPatientLocation() == null ? null : (ims.core.vo.beans.LocationLiteVoBean)vo.getOutPatientLocation().getBean(map);
		this.wastimeron = vo.getWasTimerOn();
		this.timefrom = vo.getTimeFrom() == null ? null : (ims.framework.utils.beans.TimeBean)vo.getTimeFrom().getBean();
		this.timeto = vo.getTimeTo() == null ? null : (ims.framework.utils.beans.TimeBean)vo.getTimeTo().getBean();
	}

	public ims.clinical.vo.OutpatientClinicListSearchCriteriaVo buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

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

	public ims.core.vo.beans.LocationLiteVoBean getHospital()
	{
		return this.hospital;
	}
	public void setHospital(ims.core.vo.beans.LocationLiteVoBean value)
	{
		this.hospital = value;
	}
	public ims.scheduling.vo.beans.SessionShortVoBean getClinic()
	{
		return this.clinic;
	}
	public void setClinic(ims.scheduling.vo.beans.SessionShortVoBean value)
	{
		this.clinic = value;
	}
	public ims.framework.utils.beans.DateBean getDate()
	{
		return this.date;
	}
	public void setDate(ims.framework.utils.beans.DateBean value)
	{
		this.date = value;
	}
	public ims.core.vo.beans.ServiceLiteVoBean getService()
	{
		return this.service;
	}
	public void setService(ims.core.vo.beans.ServiceLiteVoBean value)
	{
		this.service = value;
	}
	public ims.core.vo.beans.HcpLiteVoBean[] getListOwners()
	{
		return this.listowners;
	}
	public void setListOwners(ims.core.vo.beans.HcpLiteVoBean[] value)
	{
		this.listowners = value;
	}
	public java.util.Collection getListType()
	{
		return this.listtype;
	}
	public void setListType(java.util.Collection value)
	{
		this.listtype = value;
	}
	public void addListType(java.util.Collection value)
	{
		if(this.listtype == null)
			this.listtype = new java.util.ArrayList();
		this.listtype.add(value);
	}
	public ims.core.vo.beans.LocationLiteVoBean getOutPatientLocation()
	{
		return this.outpatientlocation;
	}
	public void setOutPatientLocation(ims.core.vo.beans.LocationLiteVoBean value)
	{
		this.outpatientlocation = value;
	}
	public Boolean getWasTimerOn()
	{
		return this.wastimeron;
	}
	public void setWasTimerOn(Boolean value)
	{
		this.wastimeron = value;
	}
	public ims.framework.utils.beans.TimeBean getTimeFrom()
	{
		return this.timefrom;
	}
	public void setTimeFrom(ims.framework.utils.beans.TimeBean value)
	{
		this.timefrom = value;
	}
	public ims.framework.utils.beans.TimeBean getTimeTo()
	{
		return this.timeto;
	}
	public void setTimeTo(ims.framework.utils.beans.TimeBean value)
	{
		this.timeto = value;
	}

	private ims.core.vo.beans.LocationLiteVoBean hospital;
	private ims.scheduling.vo.beans.SessionShortVoBean clinic;
	private ims.framework.utils.beans.DateBean date;
	private ims.core.vo.beans.ServiceLiteVoBean service;
	private ims.core.vo.beans.HcpLiteVoBean[] listowners;
	private java.util.Collection listtype;
	private ims.core.vo.beans.LocationLiteVoBean outpatientlocation;
	private Boolean wastimeron;
	private ims.framework.utils.beans.TimeBean timefrom;
	private ims.framework.utils.beans.TimeBean timeto;
}
