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

public class ICPActionVoBean extends ims.vo.ValueObjectBean
{
	public ICPActionVoBean()
	{
	}
	public ICPActionVoBean(ims.icp.vo.ICPActionVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.description = vo.getDescription();
		this.sequence = vo.getSequence();
		this.helpurl = vo.getHelpURL();
		this.status = vo.getStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getStatus().getBean();
		this.discipline = vo.getDiscipline() == null ? null : vo.getDiscipline().getBeanCollection();
		this.linkedtype = vo.getLinkedType() == null ? null : (ims.vo.LookupInstanceBean)vo.getLinkedType().getBean();
		this.name = vo.getName();
		this.ismandatory = vo.getIsMandatory();
		this.linkedform = vo.getLinkedForm() == null ? null : (ims.admin.vo.beans.AppFormVoBean)vo.getLinkedForm().getBean();
		this.linkedassessment = vo.getLinkedAssessment() == null ? null : (ims.assessment.vo.beans.UserAssessmentVoBean)vo.getLinkedAssessment().getBean();
		this.linkedgraphicassessment = vo.getLinkedGraphicAssessment() == null ? null : (ims.assessment.vo.beans.GraphicAssessmentShortVoBean)vo.getLinkedGraphicAssessment().getBean();
		this.linkedorderentrytemplate = vo.getLinkedOrderEntryTemplate() == null ? null : (ims.ocrr.vo.beans.OrderEntryTemplateBaseVoBean)vo.getLinkedOrderEntryTemplate().getBean();
		this.isactivatedoninitiation = vo.getIsActivatedOnInitiation();
		this.requirescountersignature = vo.getRequiresCounterSignature();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.icp.vo.ICPActionVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.description = vo.getDescription();
		this.sequence = vo.getSequence();
		this.helpurl = vo.getHelpURL();
		this.status = vo.getStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getStatus().getBean();
		this.discipline = vo.getDiscipline() == null ? null : vo.getDiscipline().getBeanCollection();
		this.linkedtype = vo.getLinkedType() == null ? null : (ims.vo.LookupInstanceBean)vo.getLinkedType().getBean();
		this.name = vo.getName();
		this.ismandatory = vo.getIsMandatory();
		this.linkedform = vo.getLinkedForm() == null ? null : (ims.admin.vo.beans.AppFormVoBean)vo.getLinkedForm().getBean(map);
		this.linkedassessment = vo.getLinkedAssessment() == null ? null : (ims.assessment.vo.beans.UserAssessmentVoBean)vo.getLinkedAssessment().getBean(map);
		this.linkedgraphicassessment = vo.getLinkedGraphicAssessment() == null ? null : (ims.assessment.vo.beans.GraphicAssessmentShortVoBean)vo.getLinkedGraphicAssessment().getBean(map);
		this.linkedorderentrytemplate = vo.getLinkedOrderEntryTemplate() == null ? null : (ims.ocrr.vo.beans.OrderEntryTemplateBaseVoBean)vo.getLinkedOrderEntryTemplate().getBean(map);
		this.isactivatedoninitiation = vo.getIsActivatedOnInitiation();
		this.requirescountersignature = vo.getRequiresCounterSignature();
	}

	public ims.icp.vo.ICPActionVo buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

	public ims.icp.vo.ICPActionVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.icp.vo.ICPActionVo vo = null;
		if(map != null)
			vo = (ims.icp.vo.ICPActionVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.icp.vo.ICPActionVo();
			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 String getDescription()
	{
		return this.description;
	}
	public void setDescription(String value)
	{
		this.description = value;
	}
	public Integer getSequence()
	{
		return this.sequence;
	}
	public void setSequence(Integer value)
	{
		this.sequence = value;
	}
	public String getHelpURL()
	{
		return this.helpurl;
	}
	public void setHelpURL(String value)
	{
		this.helpurl = value;
	}
	public ims.vo.LookupInstanceBean getStatus()
	{
		return this.status;
	}
	public void setStatus(ims.vo.LookupInstanceBean value)
	{
		this.status = value;
	}
	public java.util.Collection getDiscipline()
	{
		return this.discipline;
	}
	public void setDiscipline(java.util.Collection value)
	{
		this.discipline = value;
	}
	public void addDiscipline(java.util.Collection value)
	{
		if(this.discipline == null)
			this.discipline = new java.util.ArrayList();
		this.discipline.add(value);
	}
	public ims.vo.LookupInstanceBean getLinkedType()
	{
		return this.linkedtype;
	}
	public void setLinkedType(ims.vo.LookupInstanceBean value)
	{
		this.linkedtype = value;
	}
	public String getName()
	{
		return this.name;
	}
	public void setName(String value)
	{
		this.name = value;
	}
	public Boolean getIsMandatory()
	{
		return this.ismandatory;
	}
	public void setIsMandatory(Boolean value)
	{
		this.ismandatory = value;
	}
	public ims.admin.vo.beans.AppFormVoBean getLinkedForm()
	{
		return this.linkedform;
	}
	public void setLinkedForm(ims.admin.vo.beans.AppFormVoBean value)
	{
		this.linkedform = value;
	}
	public ims.assessment.vo.beans.UserAssessmentVoBean getLinkedAssessment()
	{
		return this.linkedassessment;
	}
	public void setLinkedAssessment(ims.assessment.vo.beans.UserAssessmentVoBean value)
	{
		this.linkedassessment = value;
	}
	public ims.assessment.vo.beans.GraphicAssessmentShortVoBean getLinkedGraphicAssessment()
	{
		return this.linkedgraphicassessment;
	}
	public void setLinkedGraphicAssessment(ims.assessment.vo.beans.GraphicAssessmentShortVoBean value)
	{
		this.linkedgraphicassessment = value;
	}
	public ims.ocrr.vo.beans.OrderEntryTemplateBaseVoBean getLinkedOrderEntryTemplate()
	{
		return this.linkedorderentrytemplate;
	}
	public void setLinkedOrderEntryTemplate(ims.ocrr.vo.beans.OrderEntryTemplateBaseVoBean value)
	{
		this.linkedorderentrytemplate = value;
	}
	public Boolean getIsActivatedOnInitiation()
	{
		return this.isactivatedoninitiation;
	}
	public void setIsActivatedOnInitiation(Boolean value)
	{
		this.isactivatedoninitiation = value;
	}
	public Boolean getRequiresCounterSignature()
	{
		return this.requirescountersignature;
	}
	public void setRequiresCounterSignature(Boolean value)
	{
		this.requirescountersignature = value;
	}

	private Integer id;
	private int version;
	private String description;
	private Integer sequence;
	private String helpurl;
	private ims.vo.LookupInstanceBean status;
	private java.util.Collection discipline;
	private ims.vo.LookupInstanceBean linkedtype;
	private String name;
	private Boolean ismandatory;
	private ims.admin.vo.beans.AppFormVoBean linkedform;
	private ims.assessment.vo.beans.UserAssessmentVoBean linkedassessment;
	private ims.assessment.vo.beans.GraphicAssessmentShortVoBean linkedgraphicassessment;
	private ims.ocrr.vo.beans.OrderEntryTemplateBaseVoBean linkedorderentrytemplate;
	private Boolean isactivatedoninitiation;
	private Boolean requirescountersignature;
}
