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

public class RTAVoBean extends ims.vo.ValueObjectBean
{
	public RTAVoBean()
	{
	}
	public RTAVoBean(ims.emergency.vo.RTAVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.rtatype = vo.getRTAType() == null ? null : (ims.vo.LookupInstanceBean)vo.getRTAType().getBean();
		this.protectiondevice = vo.getProtectionDevice() == null ? null : (ims.vo.LookupInstanceBean)vo.getProtectionDevice().getBean();
		this.isdriverowner = vo.getIsDriverOwner();
		this.drivername = vo.getDriverName() == null ? null : (ims.core.vo.beans.PersonNameBean)vo.getDriverName().getBean();
		this.driveraddress = vo.getDriverAddress() == null ? null : (ims.core.vo.beans.PersonAddressBean)vo.getDriverAddress().getBean();
		this.notes = vo.getNotes();
		this.policeinvolved = vo.getPoliceInvolved();
		this.policeid = vo.getPoliceID();
		this.policestation = vo.getPoliceStation() == null ? null : (ims.vo.LookupInstanceBean)vo.getPoliceStation().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.emergency.vo.RTAVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.rtatype = vo.getRTAType() == null ? null : (ims.vo.LookupInstanceBean)vo.getRTAType().getBean();
		this.protectiondevice = vo.getProtectionDevice() == null ? null : (ims.vo.LookupInstanceBean)vo.getProtectionDevice().getBean();
		this.isdriverowner = vo.getIsDriverOwner();
		this.drivername = vo.getDriverName() == null ? null : (ims.core.vo.beans.PersonNameBean)vo.getDriverName().getBean(map);
		this.driveraddress = vo.getDriverAddress() == null ? null : (ims.core.vo.beans.PersonAddressBean)vo.getDriverAddress().getBean(map);
		this.notes = vo.getNotes();
		this.policeinvolved = vo.getPoliceInvolved();
		this.policeid = vo.getPoliceID();
		this.policestation = vo.getPoliceStation() == null ? null : (ims.vo.LookupInstanceBean)vo.getPoliceStation().getBean();
	}

	public ims.emergency.vo.RTAVo buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

	public ims.emergency.vo.RTAVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.emergency.vo.RTAVo vo = null;
		if(map != null)
			vo = (ims.emergency.vo.RTAVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.emergency.vo.RTAVo();
			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.vo.LookupInstanceBean getRTAType()
	{
		return this.rtatype;
	}
	public void setRTAType(ims.vo.LookupInstanceBean value)
	{
		this.rtatype = value;
	}
	public ims.vo.LookupInstanceBean getProtectionDevice()
	{
		return this.protectiondevice;
	}
	public void setProtectionDevice(ims.vo.LookupInstanceBean value)
	{
		this.protectiondevice = value;
	}
	public Boolean getIsDriverOwner()
	{
		return this.isdriverowner;
	}
	public void setIsDriverOwner(Boolean value)
	{
		this.isdriverowner = value;
	}
	public ims.core.vo.beans.PersonNameBean getDriverName()
	{
		return this.drivername;
	}
	public void setDriverName(ims.core.vo.beans.PersonNameBean value)
	{
		this.drivername = value;
	}
	public ims.core.vo.beans.PersonAddressBean getDriverAddress()
	{
		return this.driveraddress;
	}
	public void setDriverAddress(ims.core.vo.beans.PersonAddressBean value)
	{
		this.driveraddress = value;
	}
	public String getNotes()
	{
		return this.notes;
	}
	public void setNotes(String value)
	{
		this.notes = value;
	}
	public Boolean getPoliceInvolved()
	{
		return this.policeinvolved;
	}
	public void setPoliceInvolved(Boolean value)
	{
		this.policeinvolved = value;
	}
	public String getPoliceID()
	{
		return this.policeid;
	}
	public void setPoliceID(String value)
	{
		this.policeid = value;
	}
	public ims.vo.LookupInstanceBean getPoliceStation()
	{
		return this.policestation;
	}
	public void setPoliceStation(ims.vo.LookupInstanceBean value)
	{
		this.policestation = value;
	}

	private Integer id;
	private int version;
	private ims.vo.LookupInstanceBean rtatype;
	private ims.vo.LookupInstanceBean protectiondevice;
	private Boolean isdriverowner;
	private ims.core.vo.beans.PersonNameBean drivername;
	private ims.core.vo.beans.PersonAddressBean driveraddress;
	private String notes;
	private Boolean policeinvolved;
	private String policeid;
	private ims.vo.LookupInstanceBean policestation;
}
