version 1.21, 2002/07/30 16:14:53
|
version 1.25, 2002/08/21 00:15:44
|
|
|
_isArray(isArray), _arraySize(arraySize), | _isArray(isArray), _arraySize(arraySize), |
_referenceClassName(referenceClassName) | _referenceClassName(referenceClassName) |
{ | { |
if (!CIMName::legal(name)) |
|
throw IllegalName(); |
|
|
|
if (_type == CIMTYPE_NONE) |
|
throw NullType(); |
|
|
|
if (_arraySize && !_isArray) | if (_arraySize && !_isArray) |
throw IncompatibleTypes(); |
throw IncompatibleTypesException(); |
| |
if (!referenceClassName.isNull()) | if (!referenceClassName.isNull()) |
{ | { |
if (_type != CIMTYPE_REFERENCE) | if (_type != CIMTYPE_REFERENCE) |
{ | { |
throw ExpectedReferenceValue(); |
throw ExpectedReferenceValueException(); |
} | } |
} | } |
else | else |
|
|
// ATTN: revisit this later! | // ATTN: revisit this later! |
#if 0 | #if 0 |
if (_type == CIMTYPE_REFERENCE) | if (_type == CIMTYPE_REFERENCE) |
throw MissingReferenceClassName(); |
throw MissingReferenceClassNameException(); |
#endif | #endif |
} | } |
} | } |
|
|
| |
void CIMParameterRep::setName(const CIMName& name) | void CIMParameterRep::setName(const CIMName& name) |
{ | { |
if (!CIMName::legal(name)) |
|
throw IllegalName(); |
|
|
|
_name = name; | _name = name; |
} | } |
| |
|
void CIMParameterRep::removeQualifier(Uint32 pos) |
|
{ |
|
if (pos >= _qualifiers.getCount()) |
|
throw IndexOutOfBoundsException(); |
|
|
|
_qualifiers.removeQualifier (pos); |
|
} |
|
|
void CIMParameterRep::resolve( | void CIMParameterRep::resolve( |
DeclContext* declContext, | DeclContext* declContext, |
const CIMNamespaceName& nameSpace) | const CIMNamespaceName& nameSpace) |
|
|
| |
if (_referenceClassName.isNull() && _type == CIMTYPE_REFERENCE) | if (_referenceClassName.isNull() && _type == CIMTYPE_REFERENCE) |
{ | { |
throw MissingReferenceClassName(); |
throw MissingReferenceClassNameException(); |
} | } |
} | } |
| |