* @throws ClassNotFoundException
* @throws ClassNotFoundException
*/
public DmcObject createObject(DmcUncheckedObject uco) throws ResultException, DmcValueException, ClassNotFoundException {
DmcObject dmo = null;
ClassDefinition cd = null;
AttributeDefinition ad = null;
if ((cd = schema.isClass((String)uco.classes.get(0))) == null){
ResultException ex = new ResultException();
ex.result.addResult(Result.ERROR,"Unknown class: " + uco.classes.get(0));
throw(ex);
}
// DebugInfo.debug(uco.toOIF(15));
dmo = cd.newDMOInstance();
// Add the object class
DmcTypeClassDefinitionREFMV cref = new DmcTypeClassDefinitionREFMV();
cref.add(cd.getObjectName());
dmo.add(DmcObject.__objectClass, cref);
// And add any auxiliary classes if we have them
for(int i=1; i<uco.classes.size(); i++){
if ((cd = schema.isClass((String)uco.classes.get(i))) == null){
ResultException ex = new ResultException();
ex.result.addResult(Result.ERROR,"Unknown class: " + uco.classes.get(i));
throw(ex);
}
cref.add(cd.getObjectName());
dmo.add("objectClass", cref);
}
Iterator<String> names = uco.getAttributeNames();
while(names.hasNext()){