#include "UmlClassInstance.h"
#include "FileOut.h"
#include "UmlClass.h"
#include "UmlAttribute.h"
#include "UmlRelation.h"
void UmlClassInstance::write(FileOut & out) {
const char * k = (_uml_20) ? "ownedMember" : "packagedElement";
out.indent();
out << "<" << k << " xmi:type=\"uml:InstanceSpecification\"";
out.id(this);
out << " name=\"";
out.quote(name());
out << "\">\n";
out.indent(+1);
out.indent();
out << "\n";
static UmlItem * slot_rank = 0;
static UmlItem * value_rank = 0;
QValueList attrs;
QValueList::Iterator a_iter;
attributesValue(attrs);
for (a_iter = attrs.begin(); a_iter != attrs.end(); ++a_iter) {
SlotAttribute & slot = *a_iter;
out.indent();
out << "\n";
out.indent();
out << "\t\n";
out.indent();
out << "\n";
}
QValueList rels;
QValueList::Iterator r_iter;
relationsValue(rels);
for (r_iter = rels.begin(); r_iter != rels.end(); ++r_iter) {
SlotRelation & slot = *r_iter;
out.indent();
out << "\n";
}
write_description_properties(out);
out.indent(-1);
out.indent();
out << "" << k << ">\n";
unload();
}