throw(new IllegalStateException("Malformed DMPEvent. Missing modify attribute for a MODIFIED event."));
Iterator<Modifier> modifiers = getModifyAttribute().getMV();
if (modifiers != null){
while(modifiers.hasNext()){
Modifier mod = modifiers.next();
if (mod.getAttribute() == null){
if (mod.getModifyType() == ModifyTypeEnum.REM){
AttributeDefinition ad = DmwOmni.instance().getSchema().adef(mod.getAttributeName());
if (ad == null)
throw(new IllegalStateException("Malformed DMPEvent. Could not get definition for attribute: " + mod.getAttributeName()));
else
if (ad.getDataType() == DataTypeEnum.PERSISTENT){
rc = true;
break;
}
}
else if (mod.getModifyType() == ModifyTypeEnum.NTH){
AttributeDefinition ad = DmwOmni.instance().getSchema().adef(mod.getAttributeName());
if (ad == null)
throw(new IllegalStateException("Malformed DMPEvent. Could not get definition for attribute: " + mod.getAttributeName()));
else
if (ad.getDataType() == DataTypeEnum.PERSISTENT){
rc = true;
break;
}
}
else
throw(new IllegalStateException("Malformed DMPEvent. Missing attribute for a Modifier: " + mod.toString()));
}
else if (mod.getAttribute().getAttributeInfo().dataType == DataTypeEnum.PERSISTENT){
rc = true;
break;
}
}
}