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

public class MyOrderChildComponentVoBean extends ims.vo.ValueObjectBean
{
	public MyOrderChildComponentVoBean()
	{
	}
	public MyOrderChildComponentVoBean(ims.ocrr.vo.MyOrderChildComponentVo vo)
	{
		this.id = vo.getID();
		this.componenttype = vo.getComponentType() == null ? null : (ims.vo.LookupInstanceBean)vo.getComponentType().getBean();
		this.text = vo.getText();
		this.tooltip = vo.getTooltip();
		this.category = vo.getCategory() == null ? null : (ims.vo.LookupInstanceBean)vo.getCategory().getBean();
		this.helptext = vo.getHelpText();
		this.additionallocationinfo = vo.getAdditionalLocationInfo();
		this.parentinvestigationid = vo.getParentInvestigationId();
		this.isaddon = vo.getIsAddon();
		this.requiressite = vo.getRequiresSite();
		this.serviceid = vo.getServiceID();
		this.minreorderperiod = vo.getMinReOrderPeriod() == null ? null : (ims.vo.LookupInstanceBean)vo.getMinReOrderPeriod().getBean();
		this.minreorderval = vo.getMinReOrderVal();
		this.minreorderfemaleperiod = vo.getMinReOrderFemalePeriod() == null ? null : (ims.vo.LookupInstanceBean)vo.getMinReOrderFemalePeriod().getBean();
		this.minreorderfemaleval = vo.getMinReOrderFemaleVal();
		this.genderspecific = vo.getGenderSpecific() == null ? null : (ims.vo.LookupInstanceBean)vo.getGenderSpecific().getBean();
		this.phlebmaycollect = vo.getPhlebMayCollect();
		this.reorderreason = vo.getReOrderReason();
		if(vo.getAssociatedInvestigations() != null)
		{
			this.associatedinvestigations = new ims.vo.RefVoBean[vo.getAssociatedInvestigations().size()];
			for(int associatedinvestigations_i = 0; associatedinvestigations_i < vo.getAssociatedInvestigations().size(); associatedinvestigations_i++)
			{
				this.associatedinvestigations[associatedinvestigations_i] = new ims.vo.RefVoBean(vo.getAssociatedInvestigations().get(associatedinvestigations_i).getBoId(),vo.getAssociatedInvestigations().get(associatedinvestigations_i).getBoVersion());
			}
		}
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.ocrr.vo.MyOrderChildComponentVo vo)
	{
		this.id = vo.getID();
		this.componenttype = vo.getComponentType() == null ? null : (ims.vo.LookupInstanceBean)vo.getComponentType().getBean();
		this.text = vo.getText();
		this.tooltip = vo.getTooltip();
		this.category = vo.getCategory() == null ? null : (ims.vo.LookupInstanceBean)vo.getCategory().getBean();
		this.helptext = vo.getHelpText();
		this.additionallocationinfo = vo.getAdditionalLocationInfo();
		this.parentinvestigationid = vo.getParentInvestigationId();
		this.isaddon = vo.getIsAddon();
		this.requiressite = vo.getRequiresSite();
		this.serviceid = vo.getServiceID();
		this.minreorderperiod = vo.getMinReOrderPeriod() == null ? null : (ims.vo.LookupInstanceBean)vo.getMinReOrderPeriod().getBean();
		this.minreorderval = vo.getMinReOrderVal();
		this.minreorderfemaleperiod = vo.getMinReOrderFemalePeriod() == null ? null : (ims.vo.LookupInstanceBean)vo.getMinReOrderFemalePeriod().getBean();
		this.minreorderfemaleval = vo.getMinReOrderFemaleVal();
		this.genderspecific = vo.getGenderSpecific() == null ? null : (ims.vo.LookupInstanceBean)vo.getGenderSpecific().getBean();
		this.phlebmaycollect = vo.getPhlebMayCollect();
		this.reorderreason = vo.getReOrderReason();
		if(vo.getAssociatedInvestigations() != null)
		{
			this.associatedinvestigations = new ims.vo.RefVoBean[vo.getAssociatedInvestigations().size()];
			for(int associatedinvestigations_i = 0; associatedinvestigations_i < vo.getAssociatedInvestigations().size(); associatedinvestigations_i++)
			{
				this.associatedinvestigations[associatedinvestigations_i] = new ims.vo.RefVoBean(vo.getAssociatedInvestigations().get(associatedinvestigations_i).getBoId(),vo.getAssociatedInvestigations().get(associatedinvestigations_i).getBoVersion());
			}
		}
	}

	public ims.ocrr.vo.MyOrderChildComponentVo buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

	public ims.ocrr.vo.MyOrderChildComponentVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.ocrr.vo.MyOrderChildComponentVo vo = null;
		if(map != null)
			vo = (ims.ocrr.vo.MyOrderChildComponentVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.ocrr.vo.MyOrderChildComponentVo();
			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 ims.vo.LookupInstanceBean getComponentType()
	{
		return this.componenttype;
	}
	public void setComponentType(ims.vo.LookupInstanceBean value)
	{
		this.componenttype = value;
	}
	public String getText()
	{
		return this.text;
	}
	public void setText(String value)
	{
		this.text = value;
	}
	public String getTooltip()
	{
		return this.tooltip;
	}
	public void setTooltip(String value)
	{
		this.tooltip = value;
	}
	public ims.vo.LookupInstanceBean getCategory()
	{
		return this.category;
	}
	public void setCategory(ims.vo.LookupInstanceBean value)
	{
		this.category = value;
	}
	public String getHelpText()
	{
		return this.helptext;
	}
	public void setHelpText(String value)
	{
		this.helptext = value;
	}
	public String getAdditionalLocationInfo()
	{
		return this.additionallocationinfo;
	}
	public void setAdditionalLocationInfo(String value)
	{
		this.additionallocationinfo = value;
	}
	public Integer getParentInvestigationId()
	{
		return this.parentinvestigationid;
	}
	public void setParentInvestigationId(Integer value)
	{
		this.parentinvestigationid = value;
	}
	public Boolean getIsAddon()
	{
		return this.isaddon;
	}
	public void setIsAddon(Boolean value)
	{
		this.isaddon = value;
	}
	public Boolean getRequiresSite()
	{
		return this.requiressite;
	}
	public void setRequiresSite(Boolean value)
	{
		this.requiressite = value;
	}
	public Integer getServiceID()
	{
		return this.serviceid;
	}
	public void setServiceID(Integer value)
	{
		this.serviceid = value;
	}
	public ims.vo.LookupInstanceBean getMinReOrderPeriod()
	{
		return this.minreorderperiod;
	}
	public void setMinReOrderPeriod(ims.vo.LookupInstanceBean value)
	{
		this.minreorderperiod = value;
	}
	public Integer getMinReOrderVal()
	{
		return this.minreorderval;
	}
	public void setMinReOrderVal(Integer value)
	{
		this.minreorderval = value;
	}
	public ims.vo.LookupInstanceBean getMinReOrderFemalePeriod()
	{
		return this.minreorderfemaleperiod;
	}
	public void setMinReOrderFemalePeriod(ims.vo.LookupInstanceBean value)
	{
		this.minreorderfemaleperiod = value;
	}
	public Integer getMinReOrderFemaleVal()
	{
		return this.minreorderfemaleval;
	}
	public void setMinReOrderFemaleVal(Integer value)
	{
		this.minreorderfemaleval = value;
	}
	public ims.vo.LookupInstanceBean getGenderSpecific()
	{
		return this.genderspecific;
	}
	public void setGenderSpecific(ims.vo.LookupInstanceBean value)
	{
		this.genderspecific = value;
	}
	public Boolean getPhlebMayCollect()
	{
		return this.phlebmaycollect;
	}
	public void setPhlebMayCollect(Boolean value)
	{
		this.phlebmaycollect = value;
	}
	public String getReOrderReason()
	{
		return this.reorderreason;
	}
	public void setReOrderReason(String value)
	{
		this.reorderreason = value;
	}
	public ims.vo.RefVoBean[] getAssociatedInvestigations()
	{
		return this.associatedinvestigations;
	}
	public void setAssociatedInvestigations(ims.vo.RefVoBean[] value)
	{
		this.associatedinvestigations = value;
	}

	private Integer id;
	private ims.vo.LookupInstanceBean componenttype;
	private String text;
	private String tooltip;
	private ims.vo.LookupInstanceBean category;
	private String helptext;
	private String additionallocationinfo;
	private Integer parentinvestigationid;
	private Boolean isaddon;
	private Boolean requiressite;
	private Integer serviceid;
	private ims.vo.LookupInstanceBean minreorderperiod;
	private Integer minreorderval;
	private ims.vo.LookupInstanceBean minreorderfemaleperiod;
	private Integer minreorderfemaleval;
	private ims.vo.LookupInstanceBean genderspecific;
	private Boolean phlebmaycollect;
	private String reorderreason;
	private ims.vo.RefVoBean[] associatedinvestigations;
}
