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

public class RemedialActivityVoBean extends ims.vo.ValueObjectBean
{
	public RemedialActivityVoBean()
	{
	}
	public RemedialActivityVoBean(ims.therapies.vo.RemedialActivityVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.activity = vo.getActivity() == null ? null : (ims.vo.LookupInstanceBean)vo.getActivity().getBean();
		this.patientposition = vo.getPatientPosition() == null ? null : (ims.vo.LookupInstanceBean)vo.getPatientPosition().getBean();
		this.activityposition = vo.getActivityPosition() == null ? null : (ims.vo.LookupInstanceBean)vo.getActivityPosition().getBean();
		this.sequence = vo.getSequence() == null ? null : (ims.vo.LookupInstanceBean)vo.getSequence().getBean();
		this.duration = vo.getDuration();
		this.activityheight = vo.getActivityHeight();
		this.numberpauses = vo.getNumberPauses();
		this.restperiod = vo.getRestPeriod();
		this.averagepause = vo.getAveragePause();
		this.independence = vo.getIndependence() == null ? null : (ims.vo.LookupInstanceBean)vo.getIndependence().getBean();
		this.subjectiveobs = vo.getSubjectiveObs() == null ? null : (ims.vo.LookupInstanceBean)vo.getSubjectiveObs().getBean();
		this.technique = vo.getTechnique() == null ? null : vo.getTechnique().getBeanCollection();
		this.material = vo.getMaterial() == null ? null : vo.getMaterial().getBeanCollection();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.therapies.vo.RemedialActivityVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.activity = vo.getActivity() == null ? null : (ims.vo.LookupInstanceBean)vo.getActivity().getBean();
		this.patientposition = vo.getPatientPosition() == null ? null : (ims.vo.LookupInstanceBean)vo.getPatientPosition().getBean();
		this.activityposition = vo.getActivityPosition() == null ? null : (ims.vo.LookupInstanceBean)vo.getActivityPosition().getBean();
		this.sequence = vo.getSequence() == null ? null : (ims.vo.LookupInstanceBean)vo.getSequence().getBean();
		this.duration = vo.getDuration();
		this.activityheight = vo.getActivityHeight();
		this.numberpauses = vo.getNumberPauses();
		this.restperiod = vo.getRestPeriod();
		this.averagepause = vo.getAveragePause();
		this.independence = vo.getIndependence() == null ? null : (ims.vo.LookupInstanceBean)vo.getIndependence().getBean();
		this.subjectiveobs = vo.getSubjectiveObs() == null ? null : (ims.vo.LookupInstanceBean)vo.getSubjectiveObs().getBean();
		this.technique = vo.getTechnique() == null ? null : vo.getTechnique().getBeanCollection();
		this.material = vo.getMaterial() == null ? null : vo.getMaterial().getBeanCollection();
	}

	public ims.therapies.vo.RemedialActivityVo buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

	public ims.therapies.vo.RemedialActivityVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.therapies.vo.RemedialActivityVo vo = null;
		if(map != null)
			vo = (ims.therapies.vo.RemedialActivityVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.therapies.vo.RemedialActivityVo();
			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 getActivity()
	{
		return this.activity;
	}
	public void setActivity(ims.vo.LookupInstanceBean value)
	{
		this.activity = value;
	}
	public ims.vo.LookupInstanceBean getPatientPosition()
	{
		return this.patientposition;
	}
	public void setPatientPosition(ims.vo.LookupInstanceBean value)
	{
		this.patientposition = value;
	}
	public ims.vo.LookupInstanceBean getActivityPosition()
	{
		return this.activityposition;
	}
	public void setActivityPosition(ims.vo.LookupInstanceBean value)
	{
		this.activityposition = value;
	}
	public ims.vo.LookupInstanceBean getSequence()
	{
		return this.sequence;
	}
	public void setSequence(ims.vo.LookupInstanceBean value)
	{
		this.sequence = value;
	}
	public Integer getDuration()
	{
		return this.duration;
	}
	public void setDuration(Integer value)
	{
		this.duration = value;
	}
	public Integer getActivityHeight()
	{
		return this.activityheight;
	}
	public void setActivityHeight(Integer value)
	{
		this.activityheight = value;
	}
	public String getNumberPauses()
	{
		return this.numberpauses;
	}
	public void setNumberPauses(String value)
	{
		this.numberpauses = value;
	}
	public Integer getRestPeriod()
	{
		return this.restperiod;
	}
	public void setRestPeriod(Integer value)
	{
		this.restperiod = value;
	}
	public Integer getAveragePause()
	{
		return this.averagepause;
	}
	public void setAveragePause(Integer value)
	{
		this.averagepause = value;
	}
	public ims.vo.LookupInstanceBean getIndependence()
	{
		return this.independence;
	}
	public void setIndependence(ims.vo.LookupInstanceBean value)
	{
		this.independence = value;
	}
	public ims.vo.LookupInstanceBean getSubjectiveObs()
	{
		return this.subjectiveobs;
	}
	public void setSubjectiveObs(ims.vo.LookupInstanceBean value)
	{
		this.subjectiveobs = value;
	}
	public java.util.Collection getTechnique()
	{
		return this.technique;
	}
	public void setTechnique(java.util.Collection value)
	{
		this.technique = value;
	}
	public void addTechnique(java.util.Collection value)
	{
		if(this.technique == null)
			this.technique = new java.util.ArrayList();
		this.technique.add(value);
	}
	public ims.therapies.vo.beans.RemedialMaterialVoBean[] getMaterial()
	{
		return this.material;
	}
	public void setMaterial(ims.therapies.vo.beans.RemedialMaterialVoBean[] value)
	{
		this.material = value;
	}

	private Integer id;
	private int version;
	private ims.vo.LookupInstanceBean activity;
	private ims.vo.LookupInstanceBean patientposition;
	private ims.vo.LookupInstanceBean activityposition;
	private ims.vo.LookupInstanceBean sequence;
	private Integer duration;
	private Integer activityheight;
	private String numberpauses;
	private Integer restperiod;
	private Integer averagepause;
	private ims.vo.LookupInstanceBean independence;
	private ims.vo.LookupInstanceBean subjectiveobs;
	private java.util.Collection technique;
	private ims.therapies.vo.beans.RemedialMaterialVoBean[] material;
}
