(file) Return to CIMClassRep.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/CIMClassRep.cpp between version 1.90 and 1.93

version 1.90, 2008/12/01 17:49:47 version 1.93, 2011/02/16 18:15:47
Line 199 
Line 199 
                     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)
Line 363 
Line 362 
             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);
         }         }
  
         //----------------------------------------------------------------------         //----------------------------------------------------------------------
Line 446 
Line 459 
                                 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


Legend:
Removed from v.1.90  
changed lines
  Added in v.1.93

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2