private final OvalDefinitionsDocument.OvalDefinitions document;
private final Map<String, ExternalVariable> variables;
private final Map<String, DefinitionType> definitions;
public OVALResolver(SourceContent ovalDefinitionFile) throws XmlException, IOException {
XmlBeansInstance xmlBeansInstance = ovalDefinitionFile.getXmlBeansInstance();
if (xmlBeansInstance.isDocumentType()) {
document = ((OvalDefinitionsDocument)xmlBeansInstance.getXmlObject()).getOvalDefinitions();
} else {
document = (OvalDefinitionsDocument.OvalDefinitions)xmlBeansInstance.getXmlObject();
}
if (document.isSetVariables()) {
List<VariableType> data = document.getVariables().getVariableList();
variables = new HashMap<String, ExternalVariable>(data.size());