/*
 * <p>Title: SpecimenArrayAppletUtil.java</p>
 * <p>Description:	This class initializes the fields of SpecimenArrayAppletUtil.java</p>
 * Copyright: Copyright (c) year 2006
 * Company: Washington University, School of Medicine, St. Louis.
 * @version 1.1
 * Created on Sep 19, 2006
 */
/**
 * 
 */
package edu.wustl.catissuecore.applet.util;

import edu.wustl.catissuecore.applet.AppletConstants;

/**
 * <p>This class initializes the fields of SpecimenArrayAppletUtil.java</p>
 * @author Ashwin Gupta
 * @version 1.1
 */

public final class SpecimenArrayAppletUtil {

	/**
	 * Get Array map key
	 * @param row row number
	 * @param col column number
	 * @param columnCount column count
	 * @param attributeIndex attribute index
	 * @return string -- map key
	 */
	public static String getArrayMapKey(int row,int col,int columnCount,int attributeIndex) {
		String mapKey = null;
		int position = (row * columnCount) + col;
		mapKey = new String(AppletConstants.ARRAY_CONTENT_KEY_PREFIX + position + AppletConstants.delimiter + AppletConstants.ARRAY_CONTENT_ATTRIBUTE_NAMES[attributeIndex]);
		return mapKey;
	}
}

@@ -406,16 +406,70 @@
 stants;%0D
+%0Aimport edu.wustl.catissuecore.util.global.Constants;%0D
 %0A%0D%0A/**%0D%0A
@@ -1198,11 +1198,432 @@
 y;%0D%0A%09%7D%0D%0A
+%09%0D%0A%09/**%0D%0A%09 * check whether a specimen class is type of molecular%0D%0A%09 * @param specimenClass specimen class%0D%0A%09 * @return true if molecular specimen%0D%0A%09 */%0D%0A%09public static boolean isMolecularSpecimen(String specimenClass) %7B%0D%0A%09%09boolean molecularSpecimen = false;%0D%0A%09%09if ((specimenClass != null) && (specimenClass.equalsIgnoreCase(Constants.MOLECULAR)))%0D%0A%09%09%7B%0D%0A%09%09%09molecularSpecimen = true;%0D%0A%09%09%7D%0D%0A%09%09return molecularSpecimen;%0D%0A%09%7D%0D%0A
 %7D%0D%0A

update for applet util