All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ingenias.editor.persistence.RelationshipSave Maven / Gradle / Ivy

The newest version!



/** 
 * 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.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.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.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.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.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.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.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.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.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.useObjVarsourceRole.class)){
      ingenias.editor.entities.useObjVarsourceRole nen=(ingenias.editor.entities.useObjVarsourceRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.useObjVartargetRole.class)){
      ingenias.editor.entities.useObjVartargetRole nen=(ingenias.editor.entities.useObjVartargetRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.PreCondProgTransitionsourceRole.class)){
      ingenias.editor.entities.PreCondProgTransitionsourceRole nen=(ingenias.editor.entities.PreCondProgTransitionsourceRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.PostCondProgTransitiontargetRole.class)){
      ingenias.editor.entities.PostCondProgTransitiontargetRole nen=(ingenias.editor.entities.PostCondProgTransitiontargetRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.leaveObjVarsourceRole.class)){
      ingenias.editor.entities.leaveObjVarsourceRole nen=(ingenias.editor.entities.leaveObjVarsourceRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.leaveObjVartargetRole.class)){
      ingenias.editor.entities.leaveObjVartargetRole nen=(ingenias.editor.entities.leaveObjVartargetRole)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.TIStartTimesourceRole.class)){
      ingenias.editor.entities.TIStartTimesourceRole nen=(ingenias.editor.entities.TIStartTimesourceRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.TIStartTimetargetRole.class)){
      ingenias.editor.entities.TIStartTimetargetRole nen=(ingenias.editor.entities.TIStartTimetargetRole)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.SFiltersourceRole.class)){
      ingenias.editor.entities.SFiltersourceRole nen=(ingenias.editor.entities.SFiltersourceRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.TFiltertargetRole.class)){
      ingenias.editor.entities.TFiltertargetRole nen=(ingenias.editor.entities.TFiltertargetRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.putOnWearableVarsourceRole.class)){
      ingenias.editor.entities.putOnWearableVarsourceRole nen=(ingenias.editor.entities.putOnWearableVarsourceRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.putOnWearableVartargetRole.class)){
      ingenias.editor.entities.putOnWearableVartargetRole nen=(ingenias.editor.entities.putOnWearableVartargetRole)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.openObjVarsourceRole.class)){
      ingenias.editor.entities.openObjVarsourceRole nen=(ingenias.editor.entities.openObjVarsourceRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.openObjVartargetRole.class)){
      ingenias.editor.entities.openObjVartargetRole nen=(ingenias.editor.entities.openObjVartargetRole)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.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.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.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.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.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.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.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.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.switchRoomVarsourceRole.class)){
      ingenias.editor.entities.switchRoomVarsourceRole nen=(ingenias.editor.entities.switchRoomVarsourceRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.switchRoomVartargetRole.class)){
      ingenias.editor.entities.switchRoomVartargetRole nen=(ingenias.editor.entities.switchRoomVartargetRole)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.goToBodyVarsourceRole.class)){
      ingenias.editor.entities.goToBodyVarsourceRole nen=(ingenias.editor.entities.goToBodyVarsourceRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.goToBodyVartargetRole.class)){
      ingenias.editor.entities.goToBodyVartargetRole nen=(ingenias.editor.entities.goToBodyVartargetRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.closeObjVarsourceRole.class)){
      ingenias.editor.entities.closeObjVarsourceRole nen=(ingenias.editor.entities.closeObjVarsourceRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.closeObjVartargetRole.class)){
      ingenias.editor.entities.closeObjVartargetRole nen=(ingenias.editor.entities.closeObjVartargetRole)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.messageVarsourceRole.class)){
      ingenias.editor.entities.messageVarsourceRole nen=(ingenias.editor.entities.messageVarsourceRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.messageVartargetRole.class)){
      ingenias.editor.entities.messageVartargetRole nen=(ingenias.editor.entities.messageVartargetRole)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.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.ParametrizableRolesourceRole.class)){
      ingenias.editor.entities.ParametrizableRolesourceRole nen=(ingenias.editor.entities.ParametrizableRolesourceRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.ParamRoletargetRole.class)){
      ingenias.editor.entities.ParamRoletargetRole nen=(ingenias.editor.entities.ParamRoletargetRole)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.putOffWearableVarsourceRole.class)){
      ingenias.editor.entities.putOffWearableVarsourceRole nen=(ingenias.editor.entities.putOffWearableVarsourceRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.putOffWearableVartargetRole.class)){
      ingenias.editor.entities.putOffWearableVartargetRole nen=(ingenias.editor.entities.putOffWearableVartargetRole)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.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.tapDeviceVarsourceRole.class)){
      ingenias.editor.entities.tapDeviceVarsourceRole nen=(ingenias.editor.entities.tapDeviceVarsourceRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.tapDeviceVartargetRole.class)){
      ingenias.editor.entities.tapDeviceVartargetRole nen=(ingenias.editor.entities.tapDeviceVartargetRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.tapXVarsourceRole.class)){
      ingenias.editor.entities.tapXVarsourceRole nen=(ingenias.editor.entities.tapXVarsourceRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.tapXVartargetRole.class)){
      ingenias.editor.entities.tapXVartargetRole nen=(ingenias.editor.entities.tapXVartargetRole)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;
      
      


    }
    
     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.tapYVarsourceRole.class)){
      ingenias.editor.entities.tapYVarsourceRole nen=(ingenias.editor.entities.tapYVarsourceRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.tapYVartargetRole.class)){
      ingenias.editor.entities.tapYVartargetRole nen=(ingenias.editor.entities.tapYVartargetRole)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.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.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.SFiltersourceRole.class)){
      ingenias.editor.entities.SFiltersourceRole nen=(ingenias.editor.entities.SFiltersourceRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.TFiltertargetRole.class)){
      ingenias.editor.entities.TFiltertargetRole nen=(ingenias.editor.entities.TFiltertargetRole)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.durationVarsourceRole.class)){
      ingenias.editor.entities.durationVarsourceRole nen=(ingenias.editor.entities.durationVarsourceRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.durationVartargetRole.class)){
      ingenias.editor.entities.durationVartargetRole nen=(ingenias.editor.entities.durationVartargetRole)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.dropObjVarsourceRole.class)){
      ingenias.editor.entities.dropObjVarsourceRole nen=(ingenias.editor.entities.dropObjVarsourceRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.dropObjVartargetRole.class)){
      ingenias.editor.entities.dropObjVartargetRole nen=(ingenias.editor.entities.dropObjVartargetRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.relatedConditionsourceRole.class)){
      ingenias.editor.entities.relatedConditionsourceRole nen=(ingenias.editor.entities.relatedConditionsourceRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.relatedConditiontargetRole.class)){
      ingenias.editor.entities.relatedConditiontargetRole nen=(ingenias.editor.entities.relatedConditiontargetRole)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.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.devicesourceRole.class)){
      ingenias.editor.entities.devicesourceRole nen=(ingenias.editor.entities.devicesourceRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.devicetargetRole.class)){
      ingenias.editor.entities.devicetargetRole nen=(ingenias.editor.entities.devicetargetRole)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.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.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.sitDownOnSeatVarsourceRole.class)){
      ingenias.editor.entities.sitDownOnSeatVarsourceRole nen=(ingenias.editor.entities.sitDownOnSeatVarsourceRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.sitDownOnSeatVartargetRole.class)){
      ingenias.editor.entities.sitDownOnSeatVartargetRole nen=(ingenias.editor.entities.sitDownOnSeatVartargetRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.DeviceActionLauncherRolesourceRole.class)){
      ingenias.editor.entities.DeviceActionLauncherRolesourceRole nen=(ingenias.editor.entities.DeviceActionLauncherRolesourceRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.DeviceActionRoletargetRole.class)){
      ingenias.editor.entities.DeviceActionRoletargetRole nen=(ingenias.editor.entities.DeviceActionRoletargetRole)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.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.goToBodySpeedVarsourceRole.class)){
      ingenias.editor.entities.goToBodySpeedVarsourceRole nen=(ingenias.editor.entities.goToBodySpeedVarsourceRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.goToBodySpeedVartargetRole.class)){
      ingenias.editor.entities.goToBodySpeedVartargetRole nen=(ingenias.editor.entities.goToBodySpeedVartargetRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.waitForHumanVarsourceRole.class)){
      ingenias.editor.entities.waitForHumanVarsourceRole nen=(ingenias.editor.entities.waitForHumanVarsourceRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.waitForHumanVartargetRole.class)){
      ingenias.editor.entities.waitForHumanVartargetRole nen=(ingenias.editor.entities.waitForHumanVartargetRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.animVarsourceRole.class)){
      ingenias.editor.entities.animVarsourceRole nen=(ingenias.editor.entities.animVarsourceRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.animVartargetRole.class)){
      ingenias.editor.entities.animVartargetRole nen=(ingenias.editor.entities.animVartargetRole)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.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.goToSpeedVarsourceRole.class)){
      ingenias.editor.entities.goToSpeedVarsourceRole nen=(ingenias.editor.entities.goToSpeedVarsourceRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.goToSpeedVartargetRole.class)){
      ingenias.editor.entities.goToSpeedVartargetRole nen=(ingenias.editor.entities.goToSpeedVartargetRole)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.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.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.leaveObjDestinyVarsourceRole.class)){
      ingenias.editor.entities.leaveObjDestinyVarsourceRole nen=(ingenias.editor.entities.leaveObjDestinyVarsourceRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.leaveObjDestinyVartargetRole.class)){
      ingenias.editor.entities.leaveObjDestinyVartargetRole nen=(ingenias.editor.entities.leaveObjDestinyVartargetRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.pickUpObjVarsourceRole.class)){
      ingenias.editor.entities.pickUpObjVarsourceRole nen=(ingenias.editor.entities.pickUpObjVarsourceRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.pickUpObjVartargetRole.class)){
      ingenias.editor.entities.pickUpObjVartargetRole nen=(ingenias.editor.entities.pickUpObjVartargetRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.goToPlaceVarsourceRole.class)){
      ingenias.editor.entities.goToPlaceVarsourceRole nen=(ingenias.editor.entities.goToPlaceVarsourceRole)en;
      
      


    }
    
     if (en.getClass().equals(ingenias.editor.entities.goToPlaceVartargetRole.class)){
      ingenias.editor.entities.goToPlaceVartargetRole nen=(ingenias.editor.entities.goToPlaceVartargetRole)en;
      
      


    }
    


    Hashtable ht = new Hashtable();

    en.toMap(ht);
    ObjectSave.saveMap(ht, os);
//    os.write("\n");
  }

 

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy