Package org.mitre.oval.xmlSchema.ovaldi.evalids

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


        }
        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

Related Classes of org.mitre.oval.xmlSchema.ovaldi.evalids.EvalutationDefinitionIdsDocument

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.