Examples of AttachmentParameter


Examples of inspector.jqcml.model.AttachmentParameter

      }
    }
   
    // check all AttachmentParameters in this QualityAssessment
    for(Iterator<AttachmentParameter> it = qa.getAttachmentParameterIterator(); it.hasNext(); ) {
      AttachmentParameter ap = it.next();
      if(ap.getCvRef() != null && ap.getCvRef().getPrimaryKey() == 0) {
        Integer key = cvIds.get(ap.getCvRef().getId());
        if(key != null)
          ap.getCvRef().setPrimaryKey(key);
      }
      if(ap.getUnitCvRef() != null && ap.getUnitCvRef().getPrimaryKey() == 0) {
        Integer key = cvIds.get(ap.getUnitCvRef().getId());
        if(key != null)
          ap.getUnitCvRef().setPrimaryKey(key);
      }
    }
  }
View Full Code Here

Examples of inspector.jqcml.model.AttachmentParameter

        else if(reader.getQualityAssessment(qcmlStr, qaStr).getAttachmentParameter(cmd.getOptionValue("ap")) == null) {
            logger.error("Invalid attachmentParameter specified: <{}>", cmd.getOptionValue("ap"));
            throw new IllegalArgumentException("Invalid attachmentParameter specified");
        }
        else {
            AttachmentParameter param = reader.getQualityAssessment(qcmlStr, qaStr).getAttachmentParameter(cmd.getOptionValue("ap"));
            sb.append("attachmentParameter <ID=").append(param.getId()).append(">\n");
            sb.append("\tname = ").append(param.getName()).append("\n");
            sb.append("\taccession = ").append(param.getAccession()).append("\n");
            sb.append("\tcv = ").append(param.getCvRef()).append("\n");
            if(param.getValue() != null)
                sb.append("\tvalue = ").append(param.getValue()).append("\n");
            if(param.getUnitName() != null)
                sb.append("\tunit name = ").append(param.getUnitName()).append("\n");
            if(param.getUnitAccession() != null)
                sb.append("\tunit accession = ").append(param.getUnitAccession()).append("\n");
            if(param.getUnitCvRef() != null)
                sb.append("\tunit cv = ").append(param.getUnitCvRef()).append("\n");
            if(param.getQualityParameterRef() != null)
                sb.append("\tqualityParameter = ").append(param.getQualityParameterRef()).append("\n");
            if(param.getBinary() != null)
                sb.append("\tbinary = ").append(param.getBinary()).append("\n");
            else if(param.getTable() != null)
                sb.append("\ttable = ").append(Arrays.deepToString(param.getTable().toArray())).append("\n");
        }

        // print result
        System.out.print(sb.toString());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.