if (ruleDMO.basedOnValueContains(value)){
if (ruleDMO.getExcludeThisAttributeSize() > 0){
Iterator<AttributeDefinitionREF> refs = ruleDMO.getExcludeThisAttributeREFs();
while(refs.hasNext()){
DmcAttributeInfo ai = DmcOmni.instance().getAttributeInfo(refs.next().getObjectName().getNameString());
if (obj.get(ai) != null){
if (rc == null)
rc = new DmcRuleExceptionSet();
rc.add(new DmcRuleException(ruleDMO.getRuleTitle() + "\nCan't have: " + ai.name, this));
}
}
}
if (ruleDMO.getIncludeThisAttributeSize() > 0){
Iterator<AttributeDefinitionREF> refs = ruleDMO.getIncludeThisAttributeREFs();
while(refs.hasNext()){
DmcAttributeInfo ai = DmcOmni.instance().getAttributeInfo(refs.next().getObjectName().getNameString());
if (obj.get(ai) == null){
if (rc == null)
rc = new DmcRuleExceptionSet();
rc.add(new DmcRuleException(ruleDMO.getRuleTitle() + "\nMust have: " + ai.name, this));
}