package gov.nih.nci.calab.dto.characterization.composition;

/**
 * This class represents the properties of a ComposingElement to be shown in the view page.
 * @author pansu
 *
 */
public class ComposingElementBean {
	private String chemicalName;
	private String elementType;
	private String description;
	
	public ComposingElementBean(){		
	}
	
	public String getChemicalName() {
		return chemicalName;
	}
	public void setChemicalName(String chemicalName) {
		this.chemicalName = chemicalName;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getElementType() {
		return elementType;
	}
	public void setElementType(String elementType) {
		this.elementType = elementType;
	}
}

package gov.nih.nci.calab.dto.characterization.composition;

import gov.nih.nci.calab.domain.nano.characterization.physical.composition.ComposingElement;

/**
 * This class represents the properties of a ComposingElement to be shown in the view page.
 * @author pansu
 *
 */
public class ComposingElementBean {
	private String chemicalName;
	private String elementType;
	private String description;
	
	public ComposingElementBean(){		
	}
	
	public String getChemicalName() {
		return chemicalName;
	}
	public void setChemicalName(String chemicalName) {
		this.chemicalName = chemicalName;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getElementType() {
		return elementType;
	}
	public void setElementType(String elementType) {
		this.elementType = elementType;
	}
	
	public ComposingElement getDomainObj() {
		ComposingElement element=new ComposingElement();
		element.setChemicalName(chemicalName);
		element.setDescription(description);
		element.setElementType(elementType);
		return element;
	}
}

add getDomainObj