for (int i = 0; i < node.getChildCount(); i++) {
child = getChildAt(node, i);
if (child.getId() == GrammarConstants.PRODUCTION_ATOM) {
for (int j = 0; j < child.getValueCount(); j++) {
elem = (ProductionPatternElement) getValue(child, j);
alt.addElement(elem);
}
} else if (child.getId() == GrammarConstants.PRODUCTION) {
node.addValues(child.getAllValues());
}
}