public static void fillFieldsfromXML( org.dom4j.Element el, ims.domain.DomainFactory factory, OrderSetComponent obj, java.util.HashMap domMap) throws Exception { org.dom4j.Element fldEl; fldEl = el.element("componentSeq"); if (fldEl != null) { obj.setComponentSeq(new Integer(fldEl.getTextTrim())); } fldEl = el.element("investigation"); if (fldEl != null) { fldEl = fldEl.element("class"); obj.setInvestigation( ims.ocrr.configuration.domain.objects.Investigation.getInvestigationfromXML( fldEl, factory, domMap)); } fldEl = el.element("orderSet"); if (fldEl != null) { fldEl = fldEl.element("class"); obj.setOrderSet( ims.ocrr.configuration.domain.objects.OrderSet.getOrderSetfromXML( fldEl, factory, domMap)); } }
public String toAuditString() { StringBuffer auditStr = new StringBuffer(); auditStr.append("\r\n*componentSeq* :"); auditStr.append(componentSeq); auditStr.append("; "); auditStr.append("\r\n*investigation* :"); if (investigation != null) { auditStr.append(toShortClassName(investigation)); auditStr.append(investigation.getId()); } auditStr.append("; "); auditStr.append("\r\n*orderSet* :"); if (orderSet != null) { auditStr.append(toShortClassName(orderSet)); auditStr.append(orderSet.getId()); } auditStr.append("; "); return auditStr.toString(); }