Examples of QualityAssessment


Examples of inspector.jqcml.model.QualityAssessment

        // manually calling the adapter is required because XmlJavaTypeAdapter can't be used on XmlRootElement
        // see: https://java.net/jira/browse/JAXB-117
        Object temp = unmarshaller.unmarshal(xmlSnippet);
        QualityAssessmentList qaList = (QualityAssessmentList) JAXBIntrospector.getValue(temp);
        QualityAssessmentAdapter adapter = new QualityAssessmentAdapter();
        QualityAssessment result = adapter.unmarshal(qaList);
       
        // resolve references to Cv's (unmarshal them if required)
        // use a cache of unmarshalled Cv's because we might encounter the same Cv multiple times
        HashMap<String, Cv> cvCache = new HashMap<>();
        adapter.resolveReferences(result, cvCache, index, unmarshaller);
       
        // set the isSet flag based on the element name
        if(unmarshaller.getIntrospector().getElementName(temp).getLocalPart().equals("setQuality"))
          result.setSet(true);
        else
          result.setSet(false);
       
        return result;
      } catch (Exception e) {
        logger.error("Unable to manually call the QualityAssessmentAdapter for XML snippet: {}\n{}", xmlSnippet.substring(0, xmlSnippet.indexOf('>')+1), e);
        throw new IllegalStateException("Unable to manually call the QualityAssessmentAdapter: " + e);
View Full Code Here

Examples of inspector.jqcml.model.QualityAssessment

   * @param qcml  the QcML object for which the duplicate QualityAssessments will be filtered.
   */
  @PostLoad
  private void filterDuplicateQA(QcML qcml) {
    for(Iterator<QualityAssessment> it = qcml.getRunQualityIterator(); it.hasNext(); ) {
      QualityAssessment qa = it.next();
      if(qa.isSet())
        it.remove();
    }
    for(Iterator<QualityAssessment> it = qcml.getSetQualityIterator(); it.hasNext(); ) {
      QualityAssessment qa = it.next();
      if(!qa.isSet())
        it.remove();
    }
  }
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.