ingenias.editor.persistence.RelationshipSave Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sociaalmled Show documentation
Show all versions of sociaalmled Show documentation
A editor for modelling scenarios for PHAT simulator
/**
* Copyright (C) 2010 Jorge J. Gomez-Sanz over original code from Ruben Fuentes
*
*
*
* This file is part of the INGENME tool. INGENME is an open source meta-editor
* which produces customized editors for user-defined modeling languages
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation version 3 of the License
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see
**/
package ingenias.editor.persistence;
import java.lang.reflect.*;
import javax.swing.tree.*;
import org.apache.xerces.parsers.DOMParser;
import org.xml.sax.InputSource;
import java.awt.Color;
import java.awt.Point;
import java.awt.Rectangle;
import java.io.OutputStreamWriter;
import java.io.*;
import javax.swing.tree.DefaultMutableTreeNode;
import java.util.*;
import java.util.Map;
import java.util.Hashtable;
import java.util.ArrayList;
import javax.xml.parsers.*;
import org.jgraph.JGraph;
import org.jgraph.graph.*;
import org.w3c.dom.*;
import org.w3c.dom.Document;
import org.w3c.dom.DOMImplementation;/**
* Copyright (C) 2010 Jorge J. Gomez-Sanz over original code from Ruben Fuentes
*
* Modifications over original code from jgraph.sourceforge.net
*
* This file is part of the INGENME tool. INGENME is an open source meta-editor
* which produces customized editors for user-defined modeling languages
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation version 3 of the License
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see
**/
import ingenias.editor.entities.*;
import ingenias.exception.*;
import ingenias.editor.cell.*;
import ingenias.editor.*;
public class RelationshipSave extends RelationshipSaveAbs{
protected void saveRole(ingenias.editor.entities.RoleEntity en,
OutputStreamWriter os) throws
IOException {
// os.write("\n");
Enumeration enumeration = null;
if (en.getClass().equals(ingenias.editor.entities.FPreconditionsourceRole.class)){
ingenias.editor.entities.FPreconditionsourceRole nen=(ingenias.editor.entities.FPreconditionsourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.FPreconditiontargetRole.class)){
ingenias.editor.entities.FPreconditiontargetRole nen=(ingenias.editor.entities.FPreconditiontargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.AndroidDeviceInitializationsourceRole.class)){
ingenias.editor.entities.AndroidDeviceInitializationsourceRole nen=(ingenias.editor.entities.AndroidDeviceInitializationsourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.EmulatorMRtargetRole.class)){
ingenias.editor.entities.EmulatorMRtargetRole nen=(ingenias.editor.entities.EmulatorMRtargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.ConditionNeededsourceRole.class)){
ingenias.editor.entities.ConditionNeededsourceRole nen=(ingenias.editor.entities.ConditionNeededsourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.ConditionNeededtargetRole.class)){
ingenias.editor.entities.ConditionNeededtargetRole nen=(ingenias.editor.entities.ConditionNeededtargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.FilterNodeMRsourceRole.class)){
ingenias.editor.entities.FilterNodeMRsourceRole nen=(ingenias.editor.entities.FilterNodeMRsourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.FilterNodeMRtargetRole.class)){
ingenias.editor.entities.FilterNodeMRtargetRole nen=(ingenias.editor.entities.FilterNodeMRtargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.InitialDatesourceRole.class)){
ingenias.editor.entities.InitialDatesourceRole nen=(ingenias.editor.entities.InitialDatesourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.InitialDatetargetRole.class)){
ingenias.editor.entities.InitialDatetargetRole nen=(ingenias.editor.entities.InitialDatetargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.SActivityNodesourceRole.class)){
ingenias.editor.entities.SActivityNodesourceRole nen=(ingenias.editor.entities.SActivityNodesourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.TActivityNodetargetRole.class)){
ingenias.editor.entities.TActivityNodetargetRole nen=(ingenias.editor.entities.TActivityNodetargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.ConnectssourceRole.class)){
ingenias.editor.entities.ConnectssourceRole nen=(ingenias.editor.entities.ConnectssourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.ConnectstargetRole.class)){
ingenias.editor.entities.ConnectstargetRole nen=(ingenias.editor.entities.ConnectstargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.FlowControlMRsourceRole.class)){
ingenias.editor.entities.FlowControlMRsourceRole nen=(ingenias.editor.entities.FlowControlMRsourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.TargetFlowControltargetRole.class)){
ingenias.editor.entities.TargetFlowControltargetRole nen=(ingenias.editor.entities.TargetFlowControltargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.AllowedTasksourceRole.class)){
ingenias.editor.entities.AllowedTasksourceRole nen=(ingenias.editor.entities.AllowedTasksourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.AllowedTasktargetRole.class)){
ingenias.editor.entities.AllowedTasktargetRole nen=(ingenias.editor.entities.AllowedTasktargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.FilterNodeMRsourceRole.class)){
ingenias.editor.entities.FilterNodeMRsourceRole nen=(ingenias.editor.entities.FilterNodeMRsourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.FilterNodeMRtargetRole.class)){
ingenias.editor.entities.FilterNodeMRtargetRole nen=(ingenias.editor.entities.FilterNodeMRtargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.TaskNodesourceRole.class)){
ingenias.editor.entities.TaskNodesourceRole nen=(ingenias.editor.entities.TaskNodesourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.TaskNodetargetRole.class)){
ingenias.editor.entities.TaskNodetargetRole nen=(ingenias.editor.entities.TaskNodetargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.LiveInsourceRole.class)){
ingenias.editor.entities.LiveInsourceRole nen=(ingenias.editor.entities.LiveInsourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.LiveIntargetRole.class)){
ingenias.editor.entities.LiveIntargetRole nen=(ingenias.editor.entities.LiveIntargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.FlowControlMRsourceRole.class)){
ingenias.editor.entities.FlowControlMRsourceRole nen=(ingenias.editor.entities.FlowControlMRsourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.TargetFlowControltargetRole.class)){
ingenias.editor.entities.TargetFlowControltargetRole nen=(ingenias.editor.entities.TargetFlowControltargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.InitializedSymptomsourceRole.class)){
ingenias.editor.entities.InitializedSymptomsourceRole nen=(ingenias.editor.entities.InitializedSymptomsourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.InitializedSymptomtargetRole.class)){
ingenias.editor.entities.InitializedSymptomtargetRole nen=(ingenias.editor.entities.InitializedSymptomtargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.PreCondSymptomMRsourceRole.class)){
ingenias.editor.entities.PreCondSymptomMRsourceRole nen=(ingenias.editor.entities.PreCondSymptomMRsourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.PostCondSymptomMRtargetRole.class)){
ingenias.editor.entities.PostCondSymptomMRtargetRole nen=(ingenias.editor.entities.PostCondSymptomMRtargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.medsourceRole.class)){
ingenias.editor.entities.medsourceRole nen=(ingenias.editor.entities.medsourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.medtargetRole.class)){
ingenias.editor.entities.medtargetRole nen=(ingenias.editor.entities.medtargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.DStageMRsourceRole.class)){
ingenias.editor.entities.DStageMRsourceRole nen=(ingenias.editor.entities.DStageMRsourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.SymptomMRtargetRole.class)){
ingenias.editor.entities.SymptomMRtargetRole nen=(ingenias.editor.entities.SymptomMRtargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.EmulatorMRsourceRole.class)){
ingenias.editor.entities.EmulatorMRsourceRole nen=(ingenias.editor.entities.EmulatorMRsourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.AndroidExecutabletargetRole.class)){
ingenias.editor.entities.AndroidExecutabletargetRole nen=(ingenias.editor.entities.AndroidExecutabletargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.SocialSourceMRsourceRole.class)){
ingenias.editor.entities.SocialSourceMRsourceRole nen=(ingenias.editor.entities.SocialSourceMRsourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.SocialTargetMRtargetRole.class)){
ingenias.editor.entities.SocialTargetMRtargetRole nen=(ingenias.editor.entities.SocialTargetMRtargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.SymptomMRsourceRole.class)){
ingenias.editor.entities.SymptomMRsourceRole nen=(ingenias.editor.entities.SymptomMRsourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.TaskFilterMRtargetRole.class)){
ingenias.editor.entities.TaskFilterMRtargetRole nen=(ingenias.editor.entities.TaskFilterMRtargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.ActionHappeningAfterwardssourceRole.class)){
ingenias.editor.entities.ActionHappeningAfterwardssourceRole nen=(ingenias.editor.entities.ActionHappeningAfterwardssourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.ActionHappeningAfterwardstargetRole.class)){
ingenias.editor.entities.ActionHappeningAfterwardstargetRole nen=(ingenias.editor.entities.ActionHappeningAfterwardstargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.toolsourceRole.class)){
ingenias.editor.entities.toolsourceRole nen=(ingenias.editor.entities.toolsourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.tooltargetRole.class)){
ingenias.editor.entities.tooltargetRole nen=(ingenias.editor.entities.tooltargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.SocialSourceMRsourceRole.class)){
ingenias.editor.entities.SocialSourceMRsourceRole nen=(ingenias.editor.entities.SocialSourceMRsourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.SocialTargetMRtargetRole.class)){
ingenias.editor.entities.SocialTargetMRtargetRole nen=(ingenias.editor.entities.SocialTargetMRtargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.SocialSourceMRsourceRole.class)){
ingenias.editor.entities.SocialSourceMRsourceRole nen=(ingenias.editor.entities.SocialSourceMRsourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.SocialTargetMRtargetRole.class)){
ingenias.editor.entities.SocialTargetMRtargetRole nen=(ingenias.editor.entities.SocialTargetMRtargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.aeas_op2sourceRole.class)){
ingenias.editor.entities.aeas_op2sourceRole nen=(ingenias.editor.entities.aeas_op2sourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.aeas_op2targetRole.class)){
ingenias.editor.entities.aeas_op2targetRole nen=(ingenias.editor.entities.aeas_op2targetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.aeas_op1sourceRole.class)){
ingenias.editor.entities.aeas_op1sourceRole nen=(ingenias.editor.entities.aeas_op1sourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.aeas_op1targetRole.class)){
ingenias.editor.entities.aeas_op1targetRole nen=(ingenias.editor.entities.aeas_op1targetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.RolesourceRole.class)){
ingenias.editor.entities.RolesourceRole nen=(ingenias.editor.entities.RolesourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.RoletargetRole.class)){
ingenias.editor.entities.RoletargetRole nen=(ingenias.editor.entities.RoletargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.WorkAssourceRole.class)){
ingenias.editor.entities.WorkAssourceRole nen=(ingenias.editor.entities.WorkAssourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.WorkAstargetRole.class)){
ingenias.editor.entities.WorkAstargetRole nen=(ingenias.editor.entities.WorkAstargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.InitializesSymptomsourceRole.class)){
ingenias.editor.entities.InitializesSymptomsourceRole nen=(ingenias.editor.entities.InitializesSymptomsourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.InitializesSymptomtargetRole.class)){
ingenias.editor.entities.InitializesSymptomtargetRole nen=(ingenias.editor.entities.InitializesSymptomtargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.ActionResponsiblesourceRole.class)){
ingenias.editor.entities.ActionResponsiblesourceRole nen=(ingenias.editor.entities.ActionResponsiblesourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.ActionResponsibletargetRole.class)){
ingenias.editor.entities.ActionResponsibletargetRole nen=(ingenias.editor.entities.ActionResponsibletargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.ActivityAttachedsourceRole.class)){
ingenias.editor.entities.ActivityAttachedsourceRole nen=(ingenias.editor.entities.ActivityAttachedsourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.ActivityAttachedtargetRole.class)){
ingenias.editor.entities.ActivityAttachedtargetRole nen=(ingenias.editor.entities.ActivityAttachedtargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.InitialActivitysourceRole.class)){
ingenias.editor.entities.InitialActivitysourceRole nen=(ingenias.editor.entities.InitialActivitysourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.InitialActivitytargetRole.class)){
ingenias.editor.entities.InitialActivitytargetRole nen=(ingenias.editor.entities.InitialActivitytargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.AffectedActionsourceRole.class)){
ingenias.editor.entities.AffectedActionsourceRole nen=(ingenias.editor.entities.AffectedActionsourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.AffectedActiontargetRole.class)){
ingenias.editor.entities.AffectedActiontargetRole nen=(ingenias.editor.entities.AffectedActiontargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.socialRelationssourceRole.class)){
ingenias.editor.entities.socialRelationssourceRole nen=(ingenias.editor.entities.socialRelationssourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.socialRelationstargetRole.class)){
ingenias.editor.entities.socialRelationstargetRole nen=(ingenias.editor.entities.socialRelationstargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.AndroidDeviceInitializationsourceRole.class)){
ingenias.editor.entities.AndroidDeviceInitializationsourceRole nen=(ingenias.editor.entities.AndroidDeviceInitializationsourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.DeviceLocationtargetRole.class)){
ingenias.editor.entities.DeviceLocationtargetRole nen=(ingenias.editor.entities.DeviceLocationtargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.DeonticAssignementsourceRole.class)){
ingenias.editor.entities.DeonticAssignementsourceRole nen=(ingenias.editor.entities.DeonticAssignementsourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.DeonticAssignementtargetRole.class)){
ingenias.editor.entities.DeonticAssignementtargetRole nen=(ingenias.editor.entities.DeonticAssignementtargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.ProducesEventsourceRole.class)){
ingenias.editor.entities.ProducesEventsourceRole nen=(ingenias.editor.entities.ProducesEventsourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.ProducesEventtargetRole.class)){
ingenias.editor.entities.ProducesEventtargetRole nen=(ingenias.editor.entities.ProducesEventtargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.CameraFaceToHumansourceRole.class)){
ingenias.editor.entities.CameraFaceToHumansourceRole nen=(ingenias.editor.entities.CameraFaceToHumansourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.CameraFaceToHumantargetRole.class)){
ingenias.editor.entities.CameraFaceToHumantargetRole nen=(ingenias.editor.entities.CameraFaceToHumantargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.SocialSourceMRsourceRole.class)){
ingenias.editor.entities.SocialSourceMRsourceRole nen=(ingenias.editor.entities.SocialSourceMRsourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.SocialTargetMRtargetRole.class)){
ingenias.editor.entities.SocialTargetMRtargetRole nen=(ingenias.editor.entities.SocialTargetMRtargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.RelatedEventsourceRole.class)){
ingenias.editor.entities.RelatedEventsourceRole nen=(ingenias.editor.entities.RelatedEventsourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.RelatedEventtargetRole.class)){
ingenias.editor.entities.RelatedEventtargetRole nen=(ingenias.editor.entities.RelatedEventtargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.aemd_op2sourceRole.class)){
ingenias.editor.entities.aemd_op2sourceRole nen=(ingenias.editor.entities.aemd_op2sourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.aemd_op2targetRole.class)){
ingenias.editor.entities.aemd_op2targetRole nen=(ingenias.editor.entities.aemd_op2targetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.aemd_op1sourceRole.class)){
ingenias.editor.entities.aemd_op1sourceRole nen=(ingenias.editor.entities.aemd_op1sourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.aemd_op1targetRole.class)){
ingenias.editor.entities.aemd_op1targetRole nen=(ingenias.editor.entities.aemd_op1targetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.MedicationTimeMRsourceRole.class)){
ingenias.editor.entities.MedicationTimeMRsourceRole nen=(ingenias.editor.entities.MedicationTimeMRsourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.MedicineMRtargetRole.class)){
ingenias.editor.entities.MedicineMRtargetRole nen=(ingenias.editor.entities.MedicineMRtargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.condsourceRole.class)){
ingenias.editor.entities.condsourceRole nen=(ingenias.editor.entities.condsourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.condtargetRole.class)){
ingenias.editor.entities.condtargetRole nen=(ingenias.editor.entities.condtargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.InitialLocationsourceRole.class)){
ingenias.editor.entities.InitialLocationsourceRole nen=(ingenias.editor.entities.InitialLocationsourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.InitialLocationtargetRole.class)){
ingenias.editor.entities.InitialLocationtargetRole nen=(ingenias.editor.entities.InitialLocationtargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.SocialSourceMRsourceRole.class)){
ingenias.editor.entities.SocialSourceMRsourceRole nen=(ingenias.editor.entities.SocialSourceMRsourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.SocialTargetMRtargetRole.class)){
ingenias.editor.entities.SocialTargetMRtargetRole nen=(ingenias.editor.entities.SocialTargetMRtargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.RelatedHumansourceRole.class)){
ingenias.editor.entities.RelatedHumansourceRole nen=(ingenias.editor.entities.RelatedHumansourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.RelatedHumantargetRole.class)){
ingenias.editor.entities.RelatedHumantargetRole nen=(ingenias.editor.entities.RelatedHumantargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.ListTimeIntervalNodesourceRole.class)){
ingenias.editor.entities.ListTimeIntervalNodesourceRole nen=(ingenias.editor.entities.ListTimeIntervalNodesourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.ListTimeIntervalNodetargetRole.class)){
ingenias.editor.entities.ListTimeIntervalNodetargetRole nen=(ingenias.editor.entities.ListTimeIntervalNodetargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.IntervalClockTimesourceRole.class)){
ingenias.editor.entities.IntervalClockTimesourceRole nen=(ingenias.editor.entities.IntervalClockTimesourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.IntervalClockTimetargetRole.class)){
ingenias.editor.entities.IntervalClockTimetargetRole nen=(ingenias.editor.entities.IntervalClockTimetargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.SRoomMRsourceRole.class)){
ingenias.editor.entities.SRoomMRsourceRole nen=(ingenias.editor.entities.SRoomMRsourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.SRoomMRtargetRole.class)){
ingenias.editor.entities.SRoomMRtargetRole nen=(ingenias.editor.entities.SRoomMRtargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.aeinv_opsourceRole.class)){
ingenias.editor.entities.aeinv_opsourceRole nen=(ingenias.editor.entities.aeinv_opsourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.aeinv_optargetRole.class)){
ingenias.editor.entities.aeinv_optargetRole nen=(ingenias.editor.entities.aeinv_optargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.ProfileOfsourceRole.class)){
ingenias.editor.entities.ProfileOfsourceRole nen=(ingenias.editor.entities.ProfileOfsourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.ProfileOftargetRole.class)){
ingenias.editor.entities.ProfileOftargetRole nen=(ingenias.editor.entities.ProfileOftargetRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.SBhasFloorsourceRole.class)){
ingenias.editor.entities.SBhasFloorsourceRole nen=(ingenias.editor.entities.SBhasFloorsourceRole)en;
}
if (en.getClass().equals(ingenias.editor.entities.SBhasFloortargetRole.class)){
ingenias.editor.entities.SBhasFloortargetRole nen=(ingenias.editor.entities.SBhasFloortargetRole)en;
}
Hashtable ht = new Hashtable();
en.toMap(ht);
ObjectSave.saveMap(ht, os);
// os.write(" \n");
}
}