version 1.35, 2002/08/14 22:44:39
|
version 1.36, 2002/08/20 17:39:37
|
|
|
_propagated(propagated) | _propagated(propagated) |
{ | { |
if (arraySize && (!value.isArray() || value.getArraySize() != arraySize)) | if (arraySize && (!value.isArray() || value.getArraySize() != arraySize)) |
throw IncompatibleTypes(); |
throw IncompatibleTypesException(); |
| |
if (_value.getType() == CIMTYPE_NONE) | if (_value.getType() == CIMTYPE_NONE) |
throw NullType(); | throw NullType(); |
|
|
if (!referenceClassName.isNull()) | if (!referenceClassName.isNull()) |
{ | { |
if (_value.getType() != CIMTYPE_REFERENCE) | if (_value.getType() != CIMTYPE_REFERENCE) |
throw ExpectedReferenceValue(); |
throw ExpectedReferenceValueException(); |
} | } |
else | else |
{ | { |
if (_value.getType() == CIMTYPE_REFERENCE) | if (_value.getType() == CIMTYPE_REFERENCE) |
throw MissingReferenceClassName(); |
throw MissingReferenceClassNameException(); |
} | } |
} | } |
| |
|
|
// Check the type: | // Check the type: |
| |
if (!inheritedProperty.getValue().typeCompatible(_value)) | if (!inheritedProperty.getValue().typeCompatible(_value)) |
throw TypeMismatch(); |
throw TypeMismatchException(); |
| |
// Validate the qualifiers of the property (according to | // Validate the qualifiers of the property (according to |
// superClass's property with the same name). This method | // superClass's property with the same name). This method |
|
|
// CIMType of value is immutable: | // CIMType of value is immutable: |
| |
if (!value.typeCompatible(_value)) | if (!value.typeCompatible(_value)) |
throw IncompatibleTypes(); |
throw IncompatibleTypesException(); |
| |
if (_arraySize && _arraySize != value.getArraySize()) | if (_arraySize && _arraySize != value.getArraySize()) |
throw IncompatibleTypes(); |
throw IncompatibleTypesException(); |
| |
_value = value; | _value = value; |
} | } |