Map<ItemType, GroupType> parentMap = new HashMap<ItemType, GroupType>();
public XCCDFDocumentImpl(SourceContext sourceContext) throws XmlException, IOException {
super(sourceContext);
SourceContent sourceContent = sourceContext.getSourceContent();
XmlBeansInstance xmlBeansInstance = sourceContent.getXmlBeansInstance();
if (xmlBeansInstance.isDocumentType()) {
this.data = ((BenchmarkDocument)xmlBeansInstance.getXmlObject().copy()).getBenchmark();
} else {
this.data = (Benchmark)xmlBeansInstance.getXmlObject().copy();
}
log.info("parsing checklist "+sourceContent.getId());
// Parse CPE Applicability Statements
if (data.isSetPlatformSpecification2()) {
XmlBeansPlatformSpecification spec = new XmlBeansPlatformSpecification(sourceContext, data.getPlatformSpecification2());
setPlatformSpecification(spec);
}