cursor.dispose();
directives.setGenerator(OVALCheckSystem.getGenerator(config));
DefaultDirectivesType defaultDirectivesData = directives.addNewDirectives();
defaultDirectivesData.setIncludeSourceDefinitions(includeSourceDefinitions);
for (Map.Entry<ResultEnumeration.Enum, DirectiveType> entry : defaultDirectives.entrySet()) {
switch (entry.getKey().intValue()) {
case ResultEnumeration.INT_TRUE:
defaultDirectivesData.setDefinitionTrue(entry.getValue());
break;
case ResultEnumeration.INT_FALSE:
defaultDirectivesData.setDefinitionFalse(entry.getValue());
break;
case ResultEnumeration.INT_ERROR:
defaultDirectivesData.setDefinitionError(entry.getValue());
break;
case ResultEnumeration.INT_NOT_APPLICABLE:
defaultDirectivesData.setDefinitionNotApplicable(entry.getValue());
break;
case ResultEnumeration.INT_NOT_EVALUATED:
defaultDirectivesData.setDefinitionNotEvaluated(entry.getValue());
break;
case ResultEnumeration.INT_UNKNOWN:
defaultDirectivesData.setDefinitionUnknown(entry.getValue());
break;
}
}
return retval;
}