version 1.20, 2005/02/05 22:59:23
|
version 1.21, 2005/02/28 21:12:22
|
|
|
// <!ELEMENT PARAMVALUE (VALUE|VALUE.REFERENCE|VALUE.ARRAY|VALUE.REFARRAY)?> | // <!ELEMENT PARAMVALUE (VALUE|VALUE.REFERENCE|VALUE.ARRAY|VALUE.REFARRAY)?> |
// <!ATTLIST PARAMVALUE | // <!ATTLIST PARAMVALUE |
// %CIMName; | // %CIMName; |
|
// %EmbeddedObject; #IMPLIED |
// %ParamType;> | // %ParamType;> |
// | // |
//------------------------------------------------------------------------------ | //------------------------------------------------------------------------------ |
|
|
| |
if (_isTyped) | if (_isTyped) |
{ | { |
|
// If the property type is CIMObject, then |
|
// encode the property in CIM-XML as a string with the EMBEDDEDOBJECT attribute |
|
// (there is not currently a CIM-XML "object" datatype) |
|
// else |
|
// output the real type |
|
if (type == CIMTYPE_OBJECT) |
|
{ |
|
out << " PARAMTYPE=\"string\""; |
|
out << " EMBEDDEDOBJECT=\"object\""; |
|
} |
|
else |
|
{ |
out << " PARAMTYPE=\"" << cimTypeToString (type) << "\""; | out << " PARAMTYPE=\"" << cimTypeToString (type) << "\""; |
} | } |
|
} |
| |
out << ">\n"; | out << ">\n"; |
XmlWriter::appendValueElement(out, _value); | XmlWriter::appendValueElement(out, _value); |