version 1.90, 2008/12/01 17:49:47
|
version 1.93, 2011/02/16 18:15:47
|
|
|
MessageLoaderParms( | MessageLoaderParms( |
"Common.CIMClassRep.NON_ASSOCIATION_CLASS_CONTAINS_" | "Common.CIMClassRep.NON_ASSOCIATION_CLASS_CONTAINS_" |
"REFERENCE_PROPERTY", | "REFERENCE_PROPERTY", |
"Non-assocation class contains reference property")); |
"Non-association class contains reference property")); |
} | } |
| |
|
|
Uint32 index = superClass.findProperty(property.getName()); | Uint32 index = superClass.findProperty(property.getName()); |
| |
if (index == PEG_NOT_FOUND) | if (index == PEG_NOT_FOUND) |
|
|
superClass._rep->_qualifiers, | superClass._rep->_qualifiers, |
true); | true); |
} | } |
else // No SuperClass exsts |
else // No SuperClass is defined |
{ | { |
//---------------------------------------------------------------------- | //---------------------------------------------------------------------- |
// Resolve each property: | // Resolve each property: |
//---------------------------------------------------------------------- | //---------------------------------------------------------------------- |
| |
|
Boolean isAssociationClass = isAssociation(); |
|
|
for (Uint32 i = 0, n = _properties.size(); i < n; i++) | for (Uint32 i = 0, n = _properties.size(); i < n; i++) |
{ | { |
|
CIMProperty& property = _properties[i]; |
|
|
|
if (!isAssociationClass && |
|
property.getValue().getType() == CIMTYPE_REFERENCE) |
|
{ |
|
throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_INVALID_PARAMETER, |
|
MessageLoaderParms( |
|
"Common.CIMClassRep.NON_ASSOCIATION_CLASS_CONTAINS_" |
|
"REFERENCE_PROPERTY", |
|
"Non-association class contains reference property")); |
|
} |
|
|
Resolver::resolveProperty( | Resolver::resolveProperty( |
_properties[i], context, nameSpace, false, true); |
property, context, nameSpace, false, true); |
_properties[i].setClassOrigin(getClassName()); |
property.setClassOrigin(getClassName()); |
_properties[i].setPropagated(false); |
property.setPropagated(false); |
} | } |
| |
//---------------------------------------------------------------------- | //---------------------------------------------------------------------- |
|
|
cp.getValue(), | cp.getValue(), |
cp.getArraySize(), | cp.getArraySize(), |
cp.getReferenceClassName(), | cp.getReferenceClassName(), |
cp.getClassOrigin()); |
cp.getClassOrigin(), |
|
cp.getPropagated()); |
} | } |
| |
// Delete class origin attribute if required | // Delete class origin attribute if required |