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

import gov.nih.nci.calab.domain.nano.characterization.physical.SurfaceChemistry;
import gov.nih.nci.calab.service.util.StringUtils;

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

	/**
	 * 
	 */
	public SurfaceChemistryBean(){
	}
	
	public SurfaceChemistryBean(SurfaceChemistry surfaceChemistry) {
		this.id = surfaceChemistry.getId().toString();
		this.moleculeName = surfaceChemistry.getMoleculeName();
		this.numberOfMolecule = surfaceChemistry.getNumberOfMolecule().toString();
	}
	
	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((getNumberOfMolecule()!= null)?Integer.parseInt(getNumberOfMolecule()):null);
		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;
	}

}

@@ -147,59 +147,8 @@
 try;
-%0Aimport gov.nih.nci.calab.service.util.StringUtils;
 %0A%0A/*

update imports