Element decompositionElem = (Element) decompositionElems.get(i - 1);
_decompositionParser[i] = new YDecompositionParser(
decompositionElem,
this,
_specification.getBetaVersion());
YDecomposition decomposition = _decompositionParser[i].getDecomposition();
_specification.setDecomposition(decomposition);
}
} else {//must be beta3 or greater
_decompositionParser = new YDecompositionParser[decompositionElems.size()];
for (int i = 0; i < decompositionElems.size(); i++) {
Element decompositionElem = (Element) decompositionElems.get(i);
_decompositionParser[i] = new YDecompositionParser(
decompositionElem,
this,
_specification.getBetaVersion());
YDecomposition decomposition = _decompositionParser[i].getDecomposition();
_specification.setDecomposition(decomposition);
}
}
addSchema(specificationElem);
}