/**
 * 
 */
package gov.nih.nci.calab.dto.characterization.physical;

import gov.nih.nci.calab.domain.Measurement;
import gov.nih.nci.calab.domain.nano.characterization.physical.SurfaceChemistry;

/**
 * @author zengje
 *
 */
public class SurfaceChemistryBean {
	private String id;
	private String moleculeName;
	private String numberOfMolecule;

	/**
	 * 
	 */
	public SurfaceChemistryBean(){
		super();
	}
	
	public SurfaceChemistryBean(SurfaceChemistry surfaceChemistry) {
		this.id = surfaceChemistry.getId().toString();
		this.moleculeName = surfaceChemistry.getMoleculeName();
	}
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	
	public String getMoleculeName() {
		return moleculeName;
	}
	public void setMoleculeName(String molecule) {
		this.moleculeName = molecule;
	}
	
	public SurfaceChemistry getDomainObj() {
		SurfaceChemistry surfaceChemistry = new SurfaceChemistry();
		surfaceChemistry.setNumberOfMolecule(new Integer(getNumberOfMolecule()));
		surfaceChemistry.setMoleculeName(getMoleculeName());
		if (getId()!=null&&getId().length() > 0) {
			surfaceChemistry.setId(new Long(getId()));
		}
		return surfaceChemistry;
	}

	public String getNumberOfMolecule() {
		return numberOfMolecule;
	}

	public void setNumberOfMolecule(String numberOfMolecule) {
		this.numberOfMolecule = numberOfMolecule;
	}

}

@@ -67,53 +67,8 @@
 l;%0A%0A
-import gov.nih.nci.calab.domain.Measurement;%0A
 impo
@@ -143,16 +143,67 @@
 emistry;
+%0Aimport gov.nih.nci.calab.service.util.StringUtils;
 %0A%0A/**%0A *
@@ -397,19 +397,8 @@
 ()%7B%0A
-%09%09super();%0A
 %09%7D%0A%09
@@ -571,16 +571,93 @@
 Name();%0A
+%09%09this.numberOfMolecule = surfaceChemistry.getNumberOfMolecule().toString();%0A
 %09%7D%0A%09%0A%09pu
@@ -1042,19 +1042,55 @@
 ule(
-new Integer
+(getNumberOfMolecule()!= null)?Integer.parseInt
 (get
@@ -1108,16 +1108,21 @@
 ecule())
+:null
 );%0A%09%09sur

Add "numberOfMolecule"