classifications = new ArrayList<Classification>();
KeyedReference[] keyrarr = cbag.getKeyedReferenceArray();
for (int i = 0; keyrarr != null && i < keyrarr.length; i++)
{
KeyedReference keyr = (KeyedReference)keyrarr[i];
Classification classification = new ClassificationImpl(lcm);
classification.setValue(keyr.getKeyValue());
classification.setName(new InternationalStringImpl(keyr.getKeyName()));
String tmodelKey = keyr.getTModelKey();
if (tmodelKey != null) {
ClassificationScheme scheme = new ClassificationSchemeImpl(lcm);
scheme.setKey(new KeyImpl(tmodelKey));
classification.setClassificationScheme(scheme);
}
classifications.add(classification);
}
}
return classifications;