Package gov.nist.scap.schema.ocil.x20

Examples of gov.nist.scap.schema.ocil.x20.ResultsType


    this.resultContext = resultContext;
    this.status = AssessmentResult.Status.SUCCESSFUL;
    this.statusMessage = null;

    OcilDocument document = resultContext.getResultContent().getXmlObject();
    OCILType ocil = document.getOcil();
    ResultsType results = ocil.getResults();
    QuestionnaireResultsType questionnaireResults = (results != null) ? results
        .getQuestionnaireResults()
        : null;

    int mapSize = (questionnaireResults != null) ? questionnaireResults
View Full Code Here


    private final Map<String, ExternalVariableType> variables;

  public OCILResolver(final File ocilQuestionnaireFile) throws XmlException,
      IOException {
    this.document = OcilDocument.Factory.parse(ocilQuestionnaireFile);
    OCILType ocil = document.getOcil();

      if (ocil.isSetVariables()) {
        List<VariableType> data = ocil.getVariables().getVariableList();
        variables = new HashMap<String, ExternalVariableType>(data.size());
        for (VariableType node : data) {
          if (node instanceof ExternalVariableType) {
            this.variables.put(node.getId(), (ExternalVariableType)node);
          }
View Full Code Here

    this.assessmentFile = assessmentFile;
    this.resultContext = resultContext;
    this.status = AssessmentResult.Status.SUCCESSFUL;
    this.statusMessage = null;

    OcilDocument document = resultContext.getResultContent().getXmlObject();
    OCILType ocil = document.getOcil();
    ResultsType results = ocil.getResults();
    QuestionnaireResultsType questionnaireResults = (results != null) ? results
        .getQuestionnaireResults()
        : null;
View Full Code Here

    this.statusMessage = null;

    OcilDocument document = resultContext.getResultContent().getXmlObject();
    OCILType ocil = document.getOcil();
    ResultsType results = ocil.getResults();
    QuestionnaireResultsType questionnaireResults = (results != null) ? results
        .getQuestionnaireResults()
        : null;

    int mapSize = (questionnaireResults != null) ? questionnaireResults
        .sizeOfQuestionnaireResultArray() : 0;

    if (mapSize > 0) {
      this.questionnaireResultMap = new HashMap<String, OCILQuestionnaireResult>(
          mapSize);
      List<QuestionnaireResultType> resultList = questionnaireResults
          .getQuestionnaireResultList();

      for (QuestionnaireResultType result : resultList) {
        OCILQuestionnaireResult ocilResult = new OCILQuestionnaireResult(result, this);
        questionnaireResultMap.put(result.getQuestionnaireRef(),
View Full Code Here

    this.status = AssessmentResult.Status.SUCCESSFUL;
    this.statusMessage = null;

    OcilDocument document = resultContext.getResultContent().getXmlObject();
    OCILType ocil = document.getOcil();
    ResultsType results = ocil.getResults();
    QuestionnaireResultsType questionnaireResults = (results != null) ? results
        .getQuestionnaireResults()
        : null;

    int mapSize = (questionnaireResults != null) ? questionnaireResults
        .sizeOfQuestionnaireResultArray() : 0;
View Full Code Here

    this.assessmentFile = assessmentFile;
    this.resultContext = resultContext;

    OvalResultsDocument document = resultContext.getResultContent().getXmlObject();
    OvalResultsDocument.OvalResults results = document.getOvalResults();
    ResultsType resultsType = results.getResults();
    List<SystemType> systems = resultsType.getSystemList();
    if (systems.size() != 1) {
      // TODO: P4: automatically resolve error?
      this.status = AssessmentResult.Status.ERROR;
      this.statusMessage = "OVAL result set contained results from multiple systems";
      definitionResultMap = Collections.emptyMap();
View Full Code Here

TOP

Related Classes of gov.nist.scap.schema.ocil.x20.ResultsType

Copyright © 2018 www.massapicom. 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.