예제 #1
0
 /** Create empty Variables. */
 Variables() {
   logger = JOVALMsg.getLogger();
   variables = new Hashtable<String, List<IType>>();
   comments = new Hashtable<String, String>();
   try {
     ctx = JAXBContext.newInstance(SchemaRegistry.lookup(SchemaRegistry.OVAL_VARIABLES));
   } catch (JAXBException e) {
     logger.error(JOVALMsg.getMessage(JOVALMsg.ERROR_EXCEPTION), e);
   }
 }
예제 #2
0
 /** Create a Results based on the specified Definitions and SystemCharacteristics. */
 public Results(IDefinitions definitions, ISystemCharacteristics sc) {
   this.definitions = definitions;
   this.sc = sc;
   logger = JOVALMsg.getLogger();
   definitionTable = new Hashtable<String, DefinitionType>();
   testTable = new Hashtable<String, TestType>();
   directives = new Directives();
   try {
     ctx = JAXBContext.newInstance(SchemaRegistry.lookup(SchemaRegistry.OVAL_RESULTS));
   } catch (JAXBException e) {
     logger.error(JOVALMsg.getMessage(JOVALMsg.ERROR_EXCEPTION), e);
   }
 }
예제 #3
0
 public StreamLogger(InputStream in, File outLog) throws IOException {
   this(null, in, outLog, JOVALMsg.getLogger());
 }