List attributeModels = model.getAttributeModels();
int count = attributeModels.size();
for (int i = 0; i < count; i++)
{
AttributeModel am = (AttributeModel) attributeModels.get(i);
String name = am.getName();
_knownAttributes.add(name);
if (am.isRequired())
_requiredAttributes.add(name);
// If the attribute should be unique, add a map for that attribute
// to track unique values for that attribute.
if (am.isUnique())
_attributeValues.put(name, new HashMap());
if (name.equals(_keyAttribute))
{
_requiredAttributes.add(name);
_attributeValues.put(name, new HashMap());
}
_attributeTranslators.put(name, am.getTranslator());
}
}