version 1.37, 2002/08/21 00:15:44
|
version 1.38, 2002/09/11 21:20:24
|
|
|
_propagated(propagated) | _propagated(propagated) |
{ | { |
if (arraySize && (!value.isArray() || value.getArraySize() != arraySize)) | if (arraySize && (!value.isArray() || value.getArraySize() != arraySize)) |
throw IncompatibleTypesException(); |
throw TypeMismatchException(); |
| |
// If referenceClassName exists, must be legal namd and CIMType REFERENCE. |
// If referenceClassName exists, must be CIMType REFERENCE. |
if (!referenceClassName.isNull()) | if (!referenceClassName.isNull()) |
{ | { |
if (_value.getType() != CIMTYPE_REFERENCE) | if (_value.getType() != CIMTYPE_REFERENCE) |
throw ExpectedReferenceValueException(); |
throw TypeMismatchException(); |
} | } |
else | else |
{ | { |
if (_value.getType() == CIMTYPE_REFERENCE) | if (_value.getType() == CIMTYPE_REFERENCE) |
throw MissingReferenceClassNameException(); |
throw TypeMismatchException(); |
} | } |
} | } |
| |
|
|
// CIMType of value is immutable: | // CIMType of value is immutable: |
| |
if (!value.typeCompatible(_value)) | if (!value.typeCompatible(_value)) |
throw IncompatibleTypesException(); |
throw TypeMismatchException(); |
| |
if (_arraySize && _arraySize != value.getArraySize()) | if (_arraySize && _arraySize != value.getArraySize()) |
throw IncompatibleTypesException(); |
throw TypeMismatchException(); |
| |
_value = value; | _value = value; |
} | } |