// is enforced by rules. We just have to handle things differently for single versus
// multi-valued attributes.
if (attribute.getAttributeInfo().valueType == ValueTypeEnum.SINGLE){
DmcTypeAttributeDefinitionREFSV refsv = (DmcTypeAttributeDefinitionREFSV) attribute;
AttributeDefinitionREF ref = refsv.getSV();
try {
checkReferencedAttribute(obj, attribute, ref.getObjectName().getNameString());
} catch (DmcRuleException e) {
rc = new DmcRuleExceptionSet();
rc.add(e);
}
}
else{
for(int i=0; i<attribute.getMVSize(); i++){
AttributeDefinitionREF ref = (AttributeDefinitionREF) attribute.getMVnth(i);
try {
checkReferencedAttribute(obj, attribute, ref.getObjectName().getNameString());
} catch (DmcRuleException e) {
if (rc == null)
rc = new DmcRuleExceptionSet();
rc.add(e);
}