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

/**
 * Linked to dto_move.Profile business object (ID: 1105100019).
 */
public class ProfileVo extends ims.dto_move.vo.ProfileRefVo implements ims.vo.ImsCloneable, Comparable
{
	private static final long serialVersionUID = 1L;

	public ProfileVo()
	{
	}
	public ProfileVo(Integer id, int version)
	{
		super(id, version);
	}
	public ProfileVo(ims.dtomove.vo.beans.ProfileVoBean bean)
	{
		this.id = bean.getId();
		this.version = bean.getVersion();
		this.activitygroup = bean.getActivityGroup() == null ? null : new ims.dto_move.vo.ActivityGroupRefVo(new Integer(bean.getActivityGroup().getId()), bean.getActivityGroup().getVersion());
		this.location = bean.getLocation() == null ? null : new ims.dto_move.vo.InternalLocationRefVo(new Integer(bean.getLocation().getId()), bean.getLocation().getVersion());
		this.name = bean.getName();
		this.schedulecategory = bean.getScheduleCategory();
		this.starttime = bean.getStartTime() == null ? null : bean.getStartTime().buildTime();
		this.endtime = bean.getEndTime() == null ? null : bean.getEndTime().buildTime();
		this.efffrm = bean.getEffFrm() == null ? null : bean.getEffFrm().buildDate();
		this.effto = bean.getEffTo() == null ? null : bean.getEffTo().buildDate();
		this.maxnoappts = bean.getMaxNoAppts();
		this.intervaltype = bean.getIntervalType();
		this.intervalsize = bean.getIntervalSize();
		this.schedulingtype = bean.getSchedulingType();
		this.lastappinterval = bean.getLastAppInterval();
		this.cmdextvalue = bean.getCmdExtValue();
		this.specclinic = bean.getSpecClinic();
		this.roundatttime = bean.getRoundAttTime();
		this.lastgendate = bean.getLastGenDate() == null ? null : bean.getLastGenDate().buildDate();
		this.isschmon = bean.getIsSchMon();
		this.isschtue = bean.getIsSchTue();
		this.isschwed = bean.getIsSchWed();
		this.isschthur = bean.getIsSchThur();
		this.isschfri = bean.getIsSchFri();
		this.isschsat = bean.getIsSchSat();
		this.isschsun = bean.getIsSchSun();
		this.isweek1 = bean.getIsWeek1();
		this.isweek2 = bean.getIsWeek2();
		this.isweek3 = bean.getIsWeek3();
		this.isweek4 = bean.getIsWeek4();
		this.isweek5 = bean.getIsWeek5();
		this.isactive = bean.getIsActive();
		this.minint = bean.getMinInt();
		this.contarr = bean.getContArr();
		this.contlocation = bean.getContLocation();
		this.specialty = bean.getSpecialty();
		if(bean.getProfileDetails() != null)
		{
			this.profiledetails = new ims.dto_move.vo.ProfileDetailRefVoCollection();
			for(int profiledetails_i = 0; profiledetails_i < bean.getProfileDetails().length; profiledetails_i++)
			{
				this.profiledetails.add(new ims.dto_move.vo.ProfileDetailRefVo(new Integer(bean.getProfileDetails()[profiledetails_i].getId()), bean.getProfileDetails()[profiledetails_i].getVersion()));
			}
		}
		if(bean.getProfileListOwner() != null)
		{
			this.profilelistowner = new ims.dto_move.vo.ProfileListOwnerRefVoCollection();
			for(int profilelistowner_i = 0; profilelistowner_i < bean.getProfileListOwner().length; profilelistowner_i++)
			{
				this.profilelistowner.add(new ims.dto_move.vo.ProfileListOwnerRefVo(new Integer(bean.getProfileListOwner()[profilelistowner_i].getId()), bean.getProfileListOwner()[profilelistowner_i].getVersion()));
			}
		}
		if(bean.getProfileUsers() != null)
		{
			this.profileusers = new ims.dto_move.vo.ProfileUserRefVoCollection();
			for(int profileusers_i = 0; profileusers_i < bean.getProfileUsers().length; profileusers_i++)
			{
				this.profileusers.add(new ims.dto_move.vo.ProfileUserRefVo(new Integer(bean.getProfileUsers()[profileusers_i].getId()), bean.getProfileUsers()[profileusers_i].getVersion()));
			}
		}
		if(bean.getExclusionDates() != null)
		{
			this.exclusiondates = new ims.dto_move.vo.ProfileExclusionDateRefVoCollection();
			for(int exclusiondates_i = 0; exclusiondates_i < bean.getExclusionDates().length; exclusiondates_i++)
			{
				this.exclusiondates.add(new ims.dto_move.vo.ProfileExclusionDateRefVo(new Integer(bean.getExclusionDates()[exclusiondates_i].getId()), bean.getExclusionDates()[exclusiondates_i].getVersion()));
			}
		}
		if(bean.getExclusionTimes() != null)
		{
			this.exclusiontimes = new ims.dto_move.vo.ProfileExclusionTimeRefVoCollection();
			for(int exclusiontimes_i = 0; exclusiontimes_i < bean.getExclusionTimes().length; exclusiontimes_i++)
			{
				this.exclusiontimes.add(new ims.dto_move.vo.ProfileExclusionTimeRefVo(new Integer(bean.getExclusionTimes()[exclusiontimes_i].getId()), bean.getExclusionTimes()[exclusiontimes_i].getVersion()));
			}
		}
		if(bean.getActions() != null)
		{
			this.actions = new ims.dto_move.vo.ProfileActionRefVoCollection();
			for(int actions_i = 0; actions_i < bean.getActions().length; actions_i++)
			{
				this.actions.add(new ims.dto_move.vo.ProfileActionRefVo(new Integer(bean.getActions()[actions_i].getId()), bean.getActions()[actions_i].getVersion()));
			}
		}
	}
	public void populate(ims.vo.ValueObjectBeanMap map, ims.dtomove.vo.beans.ProfileVoBean bean)
	{
		this.id = bean.getId();
		this.version = bean.getVersion();
		this.activitygroup = bean.getActivityGroup() == null ? null : new ims.dto_move.vo.ActivityGroupRefVo(new Integer(bean.getActivityGroup().getId()), bean.getActivityGroup().getVersion());
		this.location = bean.getLocation() == null ? null : new ims.dto_move.vo.InternalLocationRefVo(new Integer(bean.getLocation().getId()), bean.getLocation().getVersion());
		this.name = bean.getName();
		this.schedulecategory = bean.getScheduleCategory();
		this.starttime = bean.getStartTime() == null ? null : bean.getStartTime().buildTime();
		this.endtime = bean.getEndTime() == null ? null : bean.getEndTime().buildTime();
		this.efffrm = bean.getEffFrm() == null ? null : bean.getEffFrm().buildDate();
		this.effto = bean.getEffTo() == null ? null : bean.getEffTo().buildDate();
		this.maxnoappts = bean.getMaxNoAppts();
		this.intervaltype = bean.getIntervalType();
		this.intervalsize = bean.getIntervalSize();
		this.schedulingtype = bean.getSchedulingType();
		this.lastappinterval = bean.getLastAppInterval();
		this.cmdextvalue = bean.getCmdExtValue();
		this.specclinic = bean.getSpecClinic();
		this.roundatttime = bean.getRoundAttTime();
		this.lastgendate = bean.getLastGenDate() == null ? null : bean.getLastGenDate().buildDate();
		this.isschmon = bean.getIsSchMon();
		this.isschtue = bean.getIsSchTue();
		this.isschwed = bean.getIsSchWed();
		this.isschthur = bean.getIsSchThur();
		this.isschfri = bean.getIsSchFri();
		this.isschsat = bean.getIsSchSat();
		this.isschsun = bean.getIsSchSun();
		this.isweek1 = bean.getIsWeek1();
		this.isweek2 = bean.getIsWeek2();
		this.isweek3 = bean.getIsWeek3();
		this.isweek4 = bean.getIsWeek4();
		this.isweek5 = bean.getIsWeek5();
		this.isactive = bean.getIsActive();
		this.minint = bean.getMinInt();
		this.contarr = bean.getContArr();
		this.contlocation = bean.getContLocation();
		this.specialty = bean.getSpecialty();
		if(bean.getProfileDetails() != null)
		{
			this.profiledetails = new ims.dto_move.vo.ProfileDetailRefVoCollection();
			for(int profiledetails_i = 0; profiledetails_i < bean.getProfileDetails().length; profiledetails_i++)
			{
				this.profiledetails.add(new ims.dto_move.vo.ProfileDetailRefVo(new Integer(bean.getProfileDetails()[profiledetails_i].getId()), bean.getProfileDetails()[profiledetails_i].getVersion()));
			}
		}
		if(bean.getProfileListOwner() != null)
		{
			this.profilelistowner = new ims.dto_move.vo.ProfileListOwnerRefVoCollection();
			for(int profilelistowner_i = 0; profilelistowner_i < bean.getProfileListOwner().length; profilelistowner_i++)
			{
				this.profilelistowner.add(new ims.dto_move.vo.ProfileListOwnerRefVo(new Integer(bean.getProfileListOwner()[profilelistowner_i].getId()), bean.getProfileListOwner()[profilelistowner_i].getVersion()));
			}
		}
		if(bean.getProfileUsers() != null)
		{
			this.profileusers = new ims.dto_move.vo.ProfileUserRefVoCollection();
			for(int profileusers_i = 0; profileusers_i < bean.getProfileUsers().length; profileusers_i++)
			{
				this.profileusers.add(new ims.dto_move.vo.ProfileUserRefVo(new Integer(bean.getProfileUsers()[profileusers_i].getId()), bean.getProfileUsers()[profileusers_i].getVersion()));
			}
		}
		if(bean.getExclusionDates() != null)
		{
			this.exclusiondates = new ims.dto_move.vo.ProfileExclusionDateRefVoCollection();
			for(int exclusiondates_i = 0; exclusiondates_i < bean.getExclusionDates().length; exclusiondates_i++)
			{
				this.exclusiondates.add(new ims.dto_move.vo.ProfileExclusionDateRefVo(new Integer(bean.getExclusionDates()[exclusiondates_i].getId()), bean.getExclusionDates()[exclusiondates_i].getVersion()));
			}
		}
		if(bean.getExclusionTimes() != null)
		{
			this.exclusiontimes = new ims.dto_move.vo.ProfileExclusionTimeRefVoCollection();
			for(int exclusiontimes_i = 0; exclusiontimes_i < bean.getExclusionTimes().length; exclusiontimes_i++)
			{
				this.exclusiontimes.add(new ims.dto_move.vo.ProfileExclusionTimeRefVo(new Integer(bean.getExclusionTimes()[exclusiontimes_i].getId()), bean.getExclusionTimes()[exclusiontimes_i].getVersion()));
			}
		}
		if(bean.getActions() != null)
		{
			this.actions = new ims.dto_move.vo.ProfileActionRefVoCollection();
			for(int actions_i = 0; actions_i < bean.getActions().length; actions_i++)
			{
				this.actions.add(new ims.dto_move.vo.ProfileActionRefVo(new Integer(bean.getActions()[actions_i].getId()), bean.getActions()[actions_i].getVersion()));
			}
		}
	}
	public ims.vo.ValueObjectBean getBean()
	{
		return this.getBean(new ims.vo.ValueObjectBeanMap());
	}
	public ims.vo.ValueObjectBean getBean(ims.vo.ValueObjectBeanMap map)
	{
		ims.dtomove.vo.beans.ProfileVoBean bean = null;
		if(map != null)
			bean = (ims.dtomove.vo.beans.ProfileVoBean)map.getValueObjectBean(this);
		if (bean == null)
		{
			bean = new ims.dtomove.vo.beans.ProfileVoBean();
			map.addValueObjectBean(this, bean);
			bean.populate(map, this);
		}
		return bean;
	}
	public Object getFieldValueByFieldName(String fieldName)
	{
		if(fieldName == null)
			throw new ims.framework.exceptions.CodingRuntimeException("Invalid field name");
		fieldName = fieldName.toUpperCase();
		if(fieldName.equals("ACTIVITYGROUP"))
			return getActivityGroup();
		if(fieldName.equals("LOCATION"))
			return getLocation();
		if(fieldName.equals("NAME"))
			return getName();
		if(fieldName.equals("SCHEDULECATEGORY"))
			return getScheduleCategory();
		if(fieldName.equals("STARTTIME"))
			return getStartTime();
		if(fieldName.equals("ENDTIME"))
			return getEndTime();
		if(fieldName.equals("EFFFRM"))
			return getEffFrm();
		if(fieldName.equals("EFFTO"))
			return getEffTo();
		if(fieldName.equals("MAXNOAPPTS"))
			return getMaxNoAppts();
		if(fieldName.equals("INTERVALTYPE"))
			return getIntervalType();
		if(fieldName.equals("INTERVALSIZE"))
			return getIntervalSize();
		if(fieldName.equals("SCHEDULINGTYPE"))
			return getSchedulingType();
		if(fieldName.equals("LASTAPPINTERVAL"))
			return getLastAppInterval();
		if(fieldName.equals("CMDEXTVALUE"))
			return getCmdExtValue();
		if(fieldName.equals("SPECCLINIC"))
			return getSpecClinic();
		if(fieldName.equals("ROUNDATTTIME"))
			return getRoundAttTime();
		if(fieldName.equals("LASTGENDATE"))
			return getLastGenDate();
		if(fieldName.equals("ISSCHMON"))
			return getIsSchMon();
		if(fieldName.equals("ISSCHTUE"))
			return getIsSchTue();
		if(fieldName.equals("ISSCHWED"))
			return getIsSchWed();
		if(fieldName.equals("ISSCHTHUR"))
			return getIsSchThur();
		if(fieldName.equals("ISSCHFRI"))
			return getIsSchFri();
		if(fieldName.equals("ISSCHSAT"))
			return getIsSchSat();
		if(fieldName.equals("ISSCHSUN"))
			return getIsSchSun();
		if(fieldName.equals("ISWEEK1"))
			return getIsWeek1();
		if(fieldName.equals("ISWEEK2"))
			return getIsWeek2();
		if(fieldName.equals("ISWEEK3"))
			return getIsWeek3();
		if(fieldName.equals("ISWEEK4"))
			return getIsWeek4();
		if(fieldName.equals("ISWEEK5"))
			return getIsWeek5();
		if(fieldName.equals("ISACTIVE"))
			return getIsActive();
		if(fieldName.equals("MININT"))
			return getMinInt();
		if(fieldName.equals("CONTARR"))
			return getContArr();
		if(fieldName.equals("CONTLOCATION"))
			return getContLocation();
		if(fieldName.equals("SPECIALTY"))
			return getSpecialty();
		if(fieldName.equals("PROFILEDETAILS"))
			return getProfileDetails();
		if(fieldName.equals("PROFILELISTOWNER"))
			return getProfileListOwner();
		if(fieldName.equals("PROFILEUSERS"))
			return getProfileUsers();
		if(fieldName.equals("EXCLUSIONDATES"))
			return getExclusionDates();
		if(fieldName.equals("EXCLUSIONTIMES"))
			return getExclusionTimes();
		if(fieldName.equals("ACTIONS"))
			return getActions();
		return super.getFieldValueByFieldName(fieldName);
	}
	public boolean getActivityGroupIsNotNull()
	{
		return this.activitygroup != null;
	}
	public ims.dto_move.vo.ActivityGroupRefVo getActivityGroup()
	{
		return this.activitygroup;
	}
	public void setActivityGroup(ims.dto_move.vo.ActivityGroupRefVo value)
	{
		this.isValidated = false;
		this.activitygroup = value;
	}
	public boolean getLocationIsNotNull()
	{
		return this.location != null;
	}
	public ims.dto_move.vo.InternalLocationRefVo getLocation()
	{
		return this.location;
	}
	public void setLocation(ims.dto_move.vo.InternalLocationRefVo value)
	{
		this.isValidated = false;
		this.location = value;
	}
	public boolean getNameIsNotNull()
	{
		return this.name != null;
	}
	public String getName()
	{
		return this.name;
	}
	public static int getNameMaxLength()
	{
		return 255;
	}
	public void setName(String value)
	{
		this.isValidated = false;
		this.name = value;
	}
	public boolean getScheduleCategoryIsNotNull()
	{
		return this.schedulecategory != null;
	}
	public Integer getScheduleCategory()
	{
		return this.schedulecategory;
	}
	public void setScheduleCategory(Integer value)
	{
		this.isValidated = false;
		this.schedulecategory = value;
	}
	public boolean getStartTimeIsNotNull()
	{
		return this.starttime != null;
	}
	public ims.framework.utils.Time getStartTime()
	{
		return this.starttime;
	}
	public void setStartTime(ims.framework.utils.Time value)
	{
		this.isValidated = false;
		this.starttime = value;
	}
	public boolean getEndTimeIsNotNull()
	{
		return this.endtime != null;
	}
	public ims.framework.utils.Time getEndTime()
	{
		return this.endtime;
	}
	public void setEndTime(ims.framework.utils.Time value)
	{
		this.isValidated = false;
		this.endtime = value;
	}
	public boolean getEffFrmIsNotNull()
	{
		return this.efffrm != null;
	}
	public ims.framework.utils.Date getEffFrm()
	{
		return this.efffrm;
	}
	public void setEffFrm(ims.framework.utils.Date value)
	{
		this.isValidated = false;
		this.efffrm = value;
	}
	public boolean getEffToIsNotNull()
	{
		return this.effto != null;
	}
	public ims.framework.utils.Date getEffTo()
	{
		return this.effto;
	}
	public void setEffTo(ims.framework.utils.Date value)
	{
		this.isValidated = false;
		this.effto = value;
	}
	public boolean getMaxNoApptsIsNotNull()
	{
		return this.maxnoappts != null;
	}
	public Integer getMaxNoAppts()
	{
		return this.maxnoappts;
	}
	public void setMaxNoAppts(Integer value)
	{
		this.isValidated = false;
		this.maxnoappts = value;
	}
	public boolean getIntervalTypeIsNotNull()
	{
		return this.intervaltype != null;
	}
	public Integer getIntervalType()
	{
		return this.intervaltype;
	}
	public void setIntervalType(Integer value)
	{
		this.isValidated = false;
		this.intervaltype = value;
	}
	public boolean getIntervalSizeIsNotNull()
	{
		return this.intervalsize != null;
	}
	public Integer getIntervalSize()
	{
		return this.intervalsize;
	}
	public void setIntervalSize(Integer value)
	{
		this.isValidated = false;
		this.intervalsize = value;
	}
	public boolean getSchedulingTypeIsNotNull()
	{
		return this.schedulingtype != null;
	}
	public Integer getSchedulingType()
	{
		return this.schedulingtype;
	}
	public void setSchedulingType(Integer value)
	{
		this.isValidated = false;
		this.schedulingtype = value;
	}
	public boolean getLastAppIntervalIsNotNull()
	{
		return this.lastappinterval != null;
	}
	public Integer getLastAppInterval()
	{
		return this.lastappinterval;
	}
	public void setLastAppInterval(Integer value)
	{
		this.isValidated = false;
		this.lastappinterval = value;
	}
	public boolean getCmdExtValueIsNotNull()
	{
		return this.cmdextvalue != null;
	}
	public String getCmdExtValue()
	{
		return this.cmdextvalue;
	}
	public static int getCmdExtValueMaxLength()
	{
		return 20;
	}
	public void setCmdExtValue(String value)
	{
		this.isValidated = false;
		this.cmdextvalue = value;
	}
	public boolean getSpecClinicIsNotNull()
	{
		return this.specclinic != null;
	}
	public String getSpecClinic()
	{
		return this.specclinic;
	}
	public static int getSpecClinicMaxLength()
	{
		return 20;
	}
	public void setSpecClinic(String value)
	{
		this.isValidated = false;
		this.specclinic = value;
	}
	public boolean getRoundAttTimeIsNotNull()
	{
		return this.roundatttime != null;
	}
	public Integer getRoundAttTime()
	{
		return this.roundatttime;
	}
	public void setRoundAttTime(Integer value)
	{
		this.isValidated = false;
		this.roundatttime = value;
	}
	public boolean getLastGenDateIsNotNull()
	{
		return this.lastgendate != null;
	}
	public ims.framework.utils.Date getLastGenDate()
	{
		return this.lastgendate;
	}
	public void setLastGenDate(ims.framework.utils.Date value)
	{
		this.isValidated = false;
		this.lastgendate = value;
	}
	public boolean getIsSchMonIsNotNull()
	{
		return this.isschmon != null;
	}
	public String getIsSchMon()
	{
		return this.isschmon;
	}
	public static int getIsSchMonMaxLength()
	{
		return 1;
	}
	public void setIsSchMon(String value)
	{
		this.isValidated = false;
		this.isschmon = value;
	}
	public boolean getIsSchTueIsNotNull()
	{
		return this.isschtue != null;
	}
	public String getIsSchTue()
	{
		return this.isschtue;
	}
	public static int getIsSchTueMaxLength()
	{
		return 1;
	}
	public void setIsSchTue(String value)
	{
		this.isValidated = false;
		this.isschtue = value;
	}
	public boolean getIsSchWedIsNotNull()
	{
		return this.isschwed != null;
	}
	public String getIsSchWed()
	{
		return this.isschwed;
	}
	public static int getIsSchWedMaxLength()
	{
		return 1;
	}
	public void setIsSchWed(String value)
	{
		this.isValidated = false;
		this.isschwed = value;
	}
	public boolean getIsSchThurIsNotNull()
	{
		return this.isschthur != null;
	}
	public String getIsSchThur()
	{
		return this.isschthur;
	}
	public static int getIsSchThurMaxLength()
	{
		return 1;
	}
	public void setIsSchThur(String value)
	{
		this.isValidated = false;
		this.isschthur = value;
	}
	public boolean getIsSchFriIsNotNull()
	{
		return this.isschfri != null;
	}
	public String getIsSchFri()
	{
		return this.isschfri;
	}
	public static int getIsSchFriMaxLength()
	{
		return 1;
	}
	public void setIsSchFri(String value)
	{
		this.isValidated = false;
		this.isschfri = value;
	}
	public boolean getIsSchSatIsNotNull()
	{
		return this.isschsat != null;
	}
	public String getIsSchSat()
	{
		return this.isschsat;
	}
	public static int getIsSchSatMaxLength()
	{
		return 1;
	}
	public void setIsSchSat(String value)
	{
		this.isValidated = false;
		this.isschsat = value;
	}
	public boolean getIsSchSunIsNotNull()
	{
		return this.isschsun != null;
	}
	public String getIsSchSun()
	{
		return this.isschsun;
	}
	public static int getIsSchSunMaxLength()
	{
		return 1;
	}
	public void setIsSchSun(String value)
	{
		this.isValidated = false;
		this.isschsun = value;
	}
	public boolean getIsWeek1IsNotNull()
	{
		return this.isweek1 != null;
	}
	public String getIsWeek1()
	{
		return this.isweek1;
	}
	public static int getIsWeek1MaxLength()
	{
		return 1;
	}
	public void setIsWeek1(String value)
	{
		this.isValidated = false;
		this.isweek1 = value;
	}
	public boolean getIsWeek2IsNotNull()
	{
		return this.isweek2 != null;
	}
	public String getIsWeek2()
	{
		return this.isweek2;
	}
	public static int getIsWeek2MaxLength()
	{
		return 1;
	}
	public void setIsWeek2(String value)
	{
		this.isValidated = false;
		this.isweek2 = value;
	}
	public boolean getIsWeek3IsNotNull()
	{
		return this.isweek3 != null;
	}
	public String getIsWeek3()
	{
		return this.isweek3;
	}
	public static int getIsWeek3MaxLength()
	{
		return 1;
	}
	public void setIsWeek3(String value)
	{
		this.isValidated = false;
		this.isweek3 = value;
	}
	public boolean getIsWeek4IsNotNull()
	{
		return this.isweek4 != null;
	}
	public String getIsWeek4()
	{
		return this.isweek4;
	}
	public static int getIsWeek4MaxLength()
	{
		return 1;
	}
	public void setIsWeek4(String value)
	{
		this.isValidated = false;
		this.isweek4 = value;
	}
	public boolean getIsWeek5IsNotNull()
	{
		return this.isweek5 != null;
	}
	public String getIsWeek5()
	{
		return this.isweek5;
	}
	public static int getIsWeek5MaxLength()
	{
		return 1;
	}
	public void setIsWeek5(String value)
	{
		this.isValidated = false;
		this.isweek5 = value;
	}
	public boolean getIsActiveIsNotNull()
	{
		return this.isactive != null;
	}
	public String getIsActive()
	{
		return this.isactive;
	}
	public static int getIsActiveMaxLength()
	{
		return 1;
	}
	public void setIsActive(String value)
	{
		this.isValidated = false;
		this.isactive = value;
	}
	public boolean getMinIntIsNotNull()
	{
		return this.minint != null;
	}
	public Integer getMinInt()
	{
		return this.minint;
	}
	public void setMinInt(Integer value)
	{
		this.isValidated = false;
		this.minint = value;
	}
	public boolean getContArrIsNotNull()
	{
		return this.contarr != null;
	}
	public String getContArr()
	{
		return this.contarr;
	}
	public static int getContArrMaxLength()
	{
		return 1;
	}
	public void setContArr(String value)
	{
		this.isValidated = false;
		this.contarr = value;
	}
	public boolean getContLocationIsNotNull()
	{
		return this.contlocation != null;
	}
	public Integer getContLocation()
	{
		return this.contlocation;
	}
	public void setContLocation(Integer value)
	{
		this.isValidated = false;
		this.contlocation = value;
	}
	public boolean getSpecialtyIsNotNull()
	{
		return this.specialty != null;
	}
	public Integer getSpecialty()
	{
		return this.specialty;
	}
	public void setSpecialty(Integer value)
	{
		this.isValidated = false;
		this.specialty = value;
	}
	public boolean getProfileDetailsIsNotNull()
	{
		return this.profiledetails != null;
	}
	public ims.dto_move.vo.ProfileDetailRefVoCollection getProfileDetails()
	{
		return this.profiledetails;
	}
	public void setProfileDetails(ims.dto_move.vo.ProfileDetailRefVoCollection value)
	{
		this.isValidated = false;
		this.profiledetails = value;
	}
	public boolean getProfileListOwnerIsNotNull()
	{
		return this.profilelistowner != null;
	}
	public ims.dto_move.vo.ProfileListOwnerRefVoCollection getProfileListOwner()
	{
		return this.profilelistowner;
	}
	public void setProfileListOwner(ims.dto_move.vo.ProfileListOwnerRefVoCollection value)
	{
		this.isValidated = false;
		this.profilelistowner = value;
	}
	public boolean getProfileUsersIsNotNull()
	{
		return this.profileusers != null;
	}
	public ims.dto_move.vo.ProfileUserRefVoCollection getProfileUsers()
	{
		return this.profileusers;
	}
	public void setProfileUsers(ims.dto_move.vo.ProfileUserRefVoCollection value)
	{
		this.isValidated = false;
		this.profileusers = value;
	}
	public boolean getExclusionDatesIsNotNull()
	{
		return this.exclusiondates != null;
	}
	public ims.dto_move.vo.ProfileExclusionDateRefVoCollection getExclusionDates()
	{
		return this.exclusiondates;
	}
	public void setExclusionDates(ims.dto_move.vo.ProfileExclusionDateRefVoCollection value)
	{
		this.isValidated = false;
		this.exclusiondates = value;
	}
	public boolean getExclusionTimesIsNotNull()
	{
		return this.exclusiontimes != null;
	}
	public ims.dto_move.vo.ProfileExclusionTimeRefVoCollection getExclusionTimes()
	{
		return this.exclusiontimes;
	}
	public void setExclusionTimes(ims.dto_move.vo.ProfileExclusionTimeRefVoCollection value)
	{
		this.isValidated = false;
		this.exclusiontimes = value;
	}
	public boolean getActionsIsNotNull()
	{
		return this.actions != null;
	}
	public ims.dto_move.vo.ProfileActionRefVoCollection getActions()
	{
		return this.actions;
	}
	public void setActions(ims.dto_move.vo.ProfileActionRefVoCollection value)
	{
		this.isValidated = false;
		this.actions = value;
	}
	public boolean isValidated()
	{
		if(this.isBusy)
			return true;
		this.isBusy = true;
	
		if(!this.isValidated)
		{
			this.isBusy = false;
			return false;
		}
		this.isBusy = false;
		return true;
	}
	public String[] validate()
	{
		return validate(null);
	}
	public String[] validate(String[] existingErrors)
	{
		if(this.isBusy)
			return null;
		this.isBusy = true;
	
		java.util.ArrayList<String> listOfErrors = new java.util.ArrayList<String>();
		if(existingErrors != null)
		{
			for(int x = 0; x < existingErrors.length; x++)
			{
				listOfErrors.add(existingErrors[x]);
			}
		}
		if(this.name == null || this.name.length() == 0)
			listOfErrors.add("Name is mandatory");
		else if(this.name.length() > 255)
			listOfErrors.add("The length of the field [name] in the value object [ims.dtomove.vo.ProfileVo] is too big. It should be less or equal to 255");
		if(this.efffrm == null)
			listOfErrors.add("EffFrm is mandatory");
		if(this.cmdextvalue != null)
			if(this.cmdextvalue.length() > 20)
				listOfErrors.add("The length of the field [cmdextvalue] in the value object [ims.dtomove.vo.ProfileVo] is too big. It should be less or equal to 20");
		if(this.specclinic != null)
			if(this.specclinic.length() > 20)
				listOfErrors.add("The length of the field [specclinic] in the value object [ims.dtomove.vo.ProfileVo] is too big. It should be less or equal to 20");
		if(this.isschmon != null)
			if(this.isschmon.length() > 1)
				listOfErrors.add("The length of the field [isschmon] in the value object [ims.dtomove.vo.ProfileVo] is too big. It should be less or equal to 1");
		if(this.isschtue != null)
			if(this.isschtue.length() > 1)
				listOfErrors.add("The length of the field [isschtue] in the value object [ims.dtomove.vo.ProfileVo] is too big. It should be less or equal to 1");
		if(this.isschwed != null)
			if(this.isschwed.length() > 1)
				listOfErrors.add("The length of the field [isschwed] in the value object [ims.dtomove.vo.ProfileVo] is too big. It should be less or equal to 1");
		if(this.isschthur != null)
			if(this.isschthur.length() > 1)
				listOfErrors.add("The length of the field [isschthur] in the value object [ims.dtomove.vo.ProfileVo] is too big. It should be less or equal to 1");
		if(this.isschfri != null)
			if(this.isschfri.length() > 1)
				listOfErrors.add("The length of the field [isschfri] in the value object [ims.dtomove.vo.ProfileVo] is too big. It should be less or equal to 1");
		if(this.isschsat != null)
			if(this.isschsat.length() > 1)
				listOfErrors.add("The length of the field [isschsat] in the value object [ims.dtomove.vo.ProfileVo] is too big. It should be less or equal to 1");
		if(this.isschsun != null)
			if(this.isschsun.length() > 1)
				listOfErrors.add("The length of the field [isschsun] in the value object [ims.dtomove.vo.ProfileVo] is too big. It should be less or equal to 1");
		if(this.isweek1 != null)
			if(this.isweek1.length() > 1)
				listOfErrors.add("The length of the field [isweek1] in the value object [ims.dtomove.vo.ProfileVo] is too big. It should be less or equal to 1");
		if(this.isweek2 != null)
			if(this.isweek2.length() > 1)
				listOfErrors.add("The length of the field [isweek2] in the value object [ims.dtomove.vo.ProfileVo] is too big. It should be less or equal to 1");
		if(this.isweek3 != null)
			if(this.isweek3.length() > 1)
				listOfErrors.add("The length of the field [isweek3] in the value object [ims.dtomove.vo.ProfileVo] is too big. It should be less or equal to 1");
		if(this.isweek4 != null)
			if(this.isweek4.length() > 1)
				listOfErrors.add("The length of the field [isweek4] in the value object [ims.dtomove.vo.ProfileVo] is too big. It should be less or equal to 1");
		if(this.isweek5 != null)
			if(this.isweek5.length() > 1)
				listOfErrors.add("The length of the field [isweek5] in the value object [ims.dtomove.vo.ProfileVo] is too big. It should be less or equal to 1");
		if(this.isactive != null)
			if(this.isactive.length() > 1)
				listOfErrors.add("The length of the field [isactive] in the value object [ims.dtomove.vo.ProfileVo] is too big. It should be less or equal to 1");
		if(this.contarr != null)
			if(this.contarr.length() > 1)
				listOfErrors.add("The length of the field [contarr] in the value object [ims.dtomove.vo.ProfileVo] is too big. It should be less or equal to 1");
		int errorCount = listOfErrors.size();
		if(errorCount == 0)
		{
			this.isBusy = false;
			this.isValidated = true;
			return null;
		}
		String[] result = new String[errorCount];
		for(int x = 0; x < errorCount; x++)
			result[x] = (String)listOfErrors.get(x);
		this.isBusy = false;
		this.isValidated = false;
		return result;
	}
	public void clearIDAndVersion()
	{
		this.id = null;
		this.version = 0;
	}
	public Object clone()
	{
		if(this.isBusy)
			return this;
		this.isBusy = true;
	
		ProfileVo clone = new ProfileVo(this.id, this.version);
		
		clone.activitygroup = this.activitygroup;
		clone.location = this.location;
		clone.name = this.name;
		clone.schedulecategory = this.schedulecategory;
		if(this.starttime == null)
			clone.starttime = null;
		else
			clone.starttime = (ims.framework.utils.Time)this.starttime.clone();
		if(this.endtime == null)
			clone.endtime = null;
		else
			clone.endtime = (ims.framework.utils.Time)this.endtime.clone();
		if(this.efffrm == null)
			clone.efffrm = null;
		else
			clone.efffrm = (ims.framework.utils.Date)this.efffrm.clone();
		if(this.effto == null)
			clone.effto = null;
		else
			clone.effto = (ims.framework.utils.Date)this.effto.clone();
		clone.maxnoappts = this.maxnoappts;
		clone.intervaltype = this.intervaltype;
		clone.intervalsize = this.intervalsize;
		clone.schedulingtype = this.schedulingtype;
		clone.lastappinterval = this.lastappinterval;
		clone.cmdextvalue = this.cmdextvalue;
		clone.specclinic = this.specclinic;
		clone.roundatttime = this.roundatttime;
		if(this.lastgendate == null)
			clone.lastgendate = null;
		else
			clone.lastgendate = (ims.framework.utils.Date)this.lastgendate.clone();
		clone.isschmon = this.isschmon;
		clone.isschtue = this.isschtue;
		clone.isschwed = this.isschwed;
		clone.isschthur = this.isschthur;
		clone.isschfri = this.isschfri;
		clone.isschsat = this.isschsat;
		clone.isschsun = this.isschsun;
		clone.isweek1 = this.isweek1;
		clone.isweek2 = this.isweek2;
		clone.isweek3 = this.isweek3;
		clone.isweek4 = this.isweek4;
		clone.isweek5 = this.isweek5;
		clone.isactive = this.isactive;
		clone.minint = this.minint;
		clone.contarr = this.contarr;
		clone.contlocation = this.contlocation;
		clone.specialty = this.specialty;
		clone.profiledetails = this.profiledetails;
		clone.profilelistowner = this.profilelistowner;
		clone.profileusers = this.profileusers;
		clone.exclusiondates = this.exclusiondates;
		clone.exclusiontimes = this.exclusiontimes;
		clone.actions = this.actions;
		clone.isValidated = this.isValidated;
		
		this.isBusy = false;
		return clone;
	}
	public int compareTo(Object obj)
	{
		return compareTo(obj, true);
	}
	public int compareTo(Object obj, boolean caseInsensitive)
	{
		if (obj == null)
		{
			return -1;
		}
		if(caseInsensitive); // this is to avoid eclipse warning only.
		if (!(ProfileVo.class.isAssignableFrom(obj.getClass())))
		{
			throw new ClassCastException("A ProfileVo object cannot be compared an Object of type " + obj.getClass().getName());
		}
		if (this.id == null)
			return 1;
		if (((ProfileVo)obj).getBoId() == null)
			return -1;
		return this.id.compareTo(((ProfileVo)obj).getBoId());
	}
	public synchronized static int generateValueObjectUniqueID()
	{
		return ims.vo.ValueObject.generateUniqueID();
	}
	public int countFieldsWithValue()
	{
		int count = 0;
		if(this.activitygroup != null)
			count++;
		if(this.location != null)
			count++;
		if(this.name != null)
			count++;
		if(this.schedulecategory != null)
			count++;
		if(this.starttime != null)
			count++;
		if(this.endtime != null)
			count++;
		if(this.efffrm != null)
			count++;
		if(this.effto != null)
			count++;
		if(this.maxnoappts != null)
			count++;
		if(this.intervaltype != null)
			count++;
		if(this.intervalsize != null)
			count++;
		if(this.schedulingtype != null)
			count++;
		if(this.lastappinterval != null)
			count++;
		if(this.cmdextvalue != null)
			count++;
		if(this.specclinic != null)
			count++;
		if(this.roundatttime != null)
			count++;
		if(this.lastgendate != null)
			count++;
		if(this.isschmon != null)
			count++;
		if(this.isschtue != null)
			count++;
		if(this.isschwed != null)
			count++;
		if(this.isschthur != null)
			count++;
		if(this.isschfri != null)
			count++;
		if(this.isschsat != null)
			count++;
		if(this.isschsun != null)
			count++;
		if(this.isweek1 != null)
			count++;
		if(this.isweek2 != null)
			count++;
		if(this.isweek3 != null)
			count++;
		if(this.isweek4 != null)
			count++;
		if(this.isweek5 != null)
			count++;
		if(this.isactive != null)
			count++;
		if(this.minint != null)
			count++;
		if(this.contarr != null)
			count++;
		if(this.contlocation != null)
			count++;
		if(this.specialty != null)
			count++;
		if(this.profiledetails != null)
			count++;
		if(this.profilelistowner != null)
			count++;
		if(this.profileusers != null)
			count++;
		if(this.exclusiondates != null)
			count++;
		if(this.exclusiontimes != null)
			count++;
		if(this.actions != null)
			count++;
		return count;
	}
	public int countValueObjectFields()
	{
		return 40;
	}
	protected ims.dto_move.vo.ActivityGroupRefVo activitygroup;
	protected ims.dto_move.vo.InternalLocationRefVo location;
	protected String name;
	protected Integer schedulecategory;
	protected ims.framework.utils.Time starttime;
	protected ims.framework.utils.Time endtime;
	protected ims.framework.utils.Date efffrm;
	protected ims.framework.utils.Date effto;
	protected Integer maxnoappts;
	protected Integer intervaltype;
	protected Integer intervalsize;
	protected Integer schedulingtype;
	protected Integer lastappinterval;
	protected String cmdextvalue;
	protected String specclinic;
	protected Integer roundatttime;
	protected ims.framework.utils.Date lastgendate;
	protected String isschmon;
	protected String isschtue;
	protected String isschwed;
	protected String isschthur;
	protected String isschfri;
	protected String isschsat;
	protected String isschsun;
	protected String isweek1;
	protected String isweek2;
	protected String isweek3;
	protected String isweek4;
	protected String isweek5;
	protected String isactive;
	protected Integer minint;
	protected String contarr;
	protected Integer contlocation;
	protected Integer specialty;
	protected ims.dto_move.vo.ProfileDetailRefVoCollection profiledetails;
	protected ims.dto_move.vo.ProfileListOwnerRefVoCollection profilelistowner;
	protected ims.dto_move.vo.ProfileUserRefVoCollection profileusers;
	protected ims.dto_move.vo.ProfileExclusionDateRefVoCollection exclusiondates;
	protected ims.dto_move.vo.ProfileExclusionTimeRefVoCollection exclusiontimes;
	protected ims.dto_move.vo.ProfileActionRefVoCollection actions;
	private boolean isValidated = false;
	private boolean isBusy = false;
}
