version 1.55, 2002/08/27 23:38:44
|
version 1.56, 2002/09/13 21:40:42
|
|
|
// Reject addition of duplicate property name: | // Reject addition of duplicate property name: |
| |
if (findProperty(x.getName()) != PEG_NOT_FOUND) | if (findProperty(x.getName()) != PEG_NOT_FOUND) |
throw AlreadyExistsException("property \"" + x.getName() + "\""); |
throw AlreadyExistsException |
|
("property \"" + x.getName().getString () + "\""); |
| |
// Set the class origin: | // Set the class origin: |
// ATTN: put this check in other places: | // ATTN: put this check in other places: |
|
|
// Reject duplicate method names: | // Reject duplicate method names: |
| |
if (findMethod(x.getName()) != PEG_NOT_FOUND) | if (findMethod(x.getName()) != PEG_NOT_FOUND) |
throw AlreadyExistsException("method \"" + x.getName() + "\""); |
throw AlreadyExistsException |
|
("method \"" + x.getName().getString() + "\""); |
| |
// Add the method: | // Add the method: |
| |
|
|
| |
PEG_TRACE_STRING(TRC_OBJECTRESOLUTION, Tracer::LEVEL3, | PEG_TRACE_STRING(TRC_OBJECTRESOLUTION, Tracer::LEVEL3, |
String("CIMClassRep::resolve class = ") + | String("CIMClassRep::resolve class = ") + |
_reference.getClassName() + ", superclass = " + |
_reference.getClassName().getString() + ", superclass = " + |
_superClassName); |
_superClassName.getString()); |
| |
if (!_superClassName.isNull()) | if (!_superClassName.isNull()) |
{ | { |
|
|
= context->lookupClass(nameSpace, _superClassName); | = context->lookupClass(nameSpace, _superClassName); |
| |
if (superClass.isUninitialized()) | if (superClass.isUninitialized()) |
throw PEGASUS_CIM_EXCEPTION(CIM_ERR_INVALID_SUPERCLASS,_superClassName); |
throw PEGASUS_CIM_EXCEPTION(CIM_ERR_INVALID_SUPERCLASS, |
|
_superClassName.getString()); |
| |
#if 0 | #if 0 |
if (!superClass._rep->_resolved) | if (!superClass._rep->_resolved) |
|
|
if (!tmprep) | if (!tmprep) |
return false; | return false; |
| |
if (_superClassName != tmprep->_superClassName) |
if (!_superClassName.equal (tmprep->_superClassName)) |
return false; | return false; |
| |
// | // |
|
|
if (!tmp1[i].identical(tmp2[i])) | if (!tmp1[i].identical(tmp2[i])) |
return false; | return false; |
| |
if (tmp1[i].getClassOrigin() != tmp2[i].getClassOrigin()) |
if (!tmp1[i].getClassOrigin().equal (tmp2[i].getClassOrigin())) |
return false; | return false; |
| |
if (tmp1[i].getPropagated() != tmp2[i].getPropagated()) | if (tmp1[i].getPropagated() != tmp2[i].getPropagated()) |
|
|
CIMConstProperty property = getProperty(i); | CIMConstProperty property = getProperty(i); |
| |
Uint32 index; | Uint32 index; |
if ((index = property.findQualifier ("key")) != PEG_NOT_FOUND) |
if ((index = property.findQualifier (CIMName ("key"))) != PEG_NOT_FOUND) |
{ | { |
CIMValue value; | CIMValue value; |
value = property.getQualifier (index).getValue (); | value = property.getQualifier (index).getValue (); |
|
|
CIMConstProperty property = getProperty(i); | CIMConstProperty property = getProperty(i); |
| |
Uint32 index; | Uint32 index; |
if ((index = property.findQualifier ("key")) != PEG_NOT_FOUND) |
if ((index = property.findQualifier (CIMName ("key"))) != PEG_NOT_FOUND) |
{ | { |
CIMValue value; | CIMValue value; |
value = property.getQualifier (index).getValue (); | value = property.getQualifier (index).getValue (); |