gt: 				for(int x = 0; x < listOfOtherErrors.length; x++)
context: //#############################################################################
  //#                                                                           #
  //#  Copyright (C) <2014>  <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/>.    #
  //#                                                                           #
  //#############################################################################
  //#EOH
  // This code was generated by Barbara Worwood using IMS Development Environment (version 1.80 build 5007.25751)
  // Copyright (C) 1995-2014 IMS MAXIMS. All rights reserved.
  // WARNING: DO NOT MODIFY the content of this file
  
  package ims.nursing.vo;
  
  /**
   * Linked to nursing.PropertyChecklist business object (ID: 1009100012).
   */
  public class PropertyChecklistShortVo extends ims.nursing.vo.PropertyChecklistRefVo implements ims.vo.ImsCloneable, Comparable
  {
  	private static final long serialVersionUID = 1L;
  
  	public PropertyChecklistShortVo()
  	{
  	}
  	public PropertyChecklistShortVo(Integer id, int version)
  	{
  		super(id, version);
  	}
  	public PropertyChecklistShortVo(ims.nursing.vo.beans.PropertyChecklistShortVoBean bean)
  	{
  		this.id = bean.getId();
  		this.version = bean.getVersion();
  		this.movementtype = bean.getMovementType() == null ? null : ims.nursing.vo.lookups.MovementType.buildLookup(bean.getMovementType());
  		this.authoringdatetime = bean.getAuthoringDateTime() == null ? null : bean.getAuthoringDateTime().buildDateTime();
  		this.authoringhcp = bean.getAuthoringHCP() == null ? null : bean.getAuthoringHCP().buildVo();
  		this.ward = bean.getWard() == null ? null : bean.getWard().buildVo();
  	}
  	public void populate(ims.vo.ValueObjectBeanMap map, ims.nursing.vo.beans.PropertyChecklistShortVoBean bean)
  	{
  		this.id = bean.getId();
  		this.version = bean.getVersion();
  		this.movementtype = bean.getMovementType() == null ? null : ims.nursing.vo.lookups.MovementType.buildLookup(bean.getMovementType());
  		this.authoringdatetime = bean.getAuthoringDateTime() == null ? null : bean.getAuthoringDateTime().buildDateTime();
  		this.authoringhcp = bean.getAuthoringHCP() == null ? null : bean.getAuthoringHCP().buildVo(map);
  		this.ward = bean.getWard() == null ? null : bean.getWard().buildVo(map);
  	}
  	public ims.vo.ValueObjectBean getBean()
  	{
  		return this.getBean(new ims.vo.ValueObjectBeanMap());
  	}
  	public ims.vo.ValueObjectBean getBean(ims.vo.ValueObjectBeanMap map)
  	{
  		ims.nursing.vo.beans.PropertyChecklistShortVoBean bean = null;
  		if(map != null)
  			bean = (ims.nursing.vo.beans.PropertyChecklistShortVoBean)map.getValueObjectBean(this);
  		if (bean == null)
  		{
  			bean = new ims.nursing.vo.beans.PropertyChecklistShortVoBean();
  			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("MOVEMENTTYPE"))
  			return getMovementType();
  		if(fieldName.equals("AUTHORINGDATETIME"))
  			return getAuthoringDateTime();
  		if(fieldName.equals("AUTHORINGHCP"))
  			return getAuthoringHCP();
  		if(fieldName.equals("WARD"))
  			return getWard();
  		return super.getFieldValueByFieldName(fieldName);
  	}
  	public boolean getMovementTypeIsNotNull()
  	{
  		return this.movementtype != null;
  	}
  	public ims.nursing.vo.lookups.MovementType getMovementType()
  	{
  		return this.movementtype;
  	}
  	public void setMovementType(ims.nursing.vo.lookups.MovementType value)
  	{
  		this.isValidated = false;
  		this.movementtype = value;
  	}
  	public boolean getAuthoringDateTimeIsNotNull()
  	{
  		return this.authoringdatetime != null;
  	}
  	public ims.framework.utils.DateTime getAuthoringDateTime()
  	{
  		return this.authoringdatetime;
  	}
  	public void setAuthoringDateTime(ims.framework.utils.DateTime value)
  	{
  		this.isValidated = false;
  		this.authoringdatetime = value;
  	}
  	public boolean getAuthoringHCPIsNotNull()
  	{
  		return this.authoringhcp != null;
  	}
  	public ims.core.vo.HcpLiteVo getAuthoringHCP()
  	{
  		return this.authoringhcp;
  	}
  	public void setAuthoringHCP(ims.core.vo.HcpLiteVo value)
  	{
  		this.isValidated = false;
  		this.authoringhcp = value;
  	}
  	public boolean getWardIsNotNull()
  	{
  		return this.ward != null;
  	}
  	public ims.core.vo.LocShortVo getWard()
  	{
  		return this.ward;
  	}
  	public void setWard(ims.core.vo.LocShortVo value)
  	{
  		this.isValidated = false;
  		this.ward = value;
  	}
  	public boolean isValidated()
  	{
  		if(this.isBusy)
  			return true;
  		this.isBusy = true;
  	
  		if(!this.isValidated)
  		{
  			this.isBusy = false;
  			return false;
  		}
  		if(this.authoringhcp != null)
  		{
  			if(!this.authoringhcp.isValidated())
  			{
  				this.isBusy = false;
  				return false;
  			}
  		}
  		if(this.ward != null)
  		{
  			if(!this.ward.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.movementtype == null)
  			listOfErrors.add("MovementType is mandatory");
  		if(this.authoringdatetime == null)
  			listOfErrors.add("AuthoringDateTime is mandatory");
  		if(this.authoringhcp == null)
  			listOfErrors.add("AuthoringHCP is mandatory");
  		if(this.authoringhcp != null)
  		{
  			String[] listOfOtherErrors = this.authoringhcp.validate();
  			if(listOfOtherErrors != null)
  			{
  				for(int x = 0; x < listOfOtherErrors.length; x++)
  				{
  					listOfErrors.add(listOfOtherErrors[x]);
  				}
  			}
  		}
  		if(this.ward == null)
  			listOfErrors.add("Ward is mandatory");
  		if(this.ward != null)
  		{
  			String[] listOfOtherErrors = this.ward.validate();
  			if(listOfOtherErrors != null)
  			{
  