Examples of EvalutationDefinitionIdsDocument


Examples of org.mitre.oval.xmlSchema.ovaldi.evalids.EvalutationDefinitionIdsDocument

                variablesDocumentContent = new FileResultContent(variablesFile);
            }

            Set<String> defList = getCheckedDefinitions();
            if (!defList.isEmpty()) {
                EvalutationDefinitionIdsDocument evaluatedDefinitionsDocument = getEvaluatedDefinitionsDocument(defList);
                if (evaluatedDefinitionsDocument != null) {
                    File evaluatedDefinitionsFile = resultContext.getAuxiliaryFile("oval-evaluation-ids_", ".xml");
                    evaluatedDefinitionsDocument.save(evaluatedDefinitionsFile, new XmlOptions().setSavePrettyPrint());
                    exec.setExternalEvaluatedDefinitionsFile(evaluatedDefinitionsFile);
                    evaluationIdsDocumentContent = new FileResultContent(evaluatedDefinitionsFile);
                }
            }
View Full Code Here

Examples of org.mitre.oval.xmlSchema.ovaldi.evalids.EvalutationDefinitionIdsDocument

        }
        return retval;
    }

    private EvalutationDefinitionIdsDocument getEvaluatedDefinitionsDocument(Set<String> definitions) {
        EvalutationDefinitionIdsDocument retval = EvalutationDefinitionIdsDocument.Factory.newInstance();
        EvalutationDefinitionIdsDocument.EvalutationDefinitionIds evaluationDefinitionIds = retval.addNewEvalutationDefinitionIds();

        File schema = new File("ovaldi/xml/evaluation-ids.xsd").getAbsoluteFile();
       
        XmlCursor cursor = evaluationDefinitionIds.newCursor();
        cursor.toNextToken();
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.