Exemplo n.º 1
0
  public String toAuditString() {
    StringBuffer auditStr = new StringBuffer();

    auditStr.append("\r\n*answerAll* :");
    auditStr.append(answerAll);
    auditStr.append("; ");
    auditStr.append("\r\n*appRole* :");
    if (appRole != null) {
      auditStr.append(toShortClassName(appRole));

      auditStr.append(appRole.getId());
    }
    auditStr.append("; ");
    return auditStr.toString();
  }
Exemplo n.º 2
0
 public static void fillFieldsfromXML(
     org.dom4j.Element el,
     ims.domain.DomainFactory factory,
     AssessmentRole obj,
     java.util.HashMap domMap)
     throws Exception {
   org.dom4j.Element fldEl;
   fldEl = el.element("answerAll");
   if (fldEl != null) {
     obj.setAnswerAll(new Boolean(fldEl.getTextTrim()));
   }
   fldEl = el.element("appRole");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setAppRole(
         ims.core.configuration.domain.objects.AppRole.getAppRolefromXML(fldEl, factory, domMap));
   }
 }