private void saveMCD(PrintStream out) throws IOException
{
out.println("<mcd>");
for (Iterator<ZElement> e = mcd.enumElements(); e.hasNext();) {
MCDObjet o = (MCDObjet) e.next();
if (o instanceof MCDEntite)
out.println("<entite nom=\"" + o.getName() + "\" x=\""
+ o.getX() + "\" y=\"" + o.getY() + "\">");
else
out.println("<association nom=\"" + o.getName() + "\" x=\""
+ o.getX() + "\" y=\"" + o.getY() + "\">");
for (int i = 0; i < o.sizeInformation(); i++) {
out.println("<information code=\"" + o.getCodeInformation(i)
+ "\" />");
}
if (o instanceof MCDEntite)
out.println("</entite>");