Class LogDiagramUtil.LogDiagramElement<S extends org.eclipse.emf.ecore.EObject>

  • Type Parameters:
    S - The MDWorkbench metaclass
    All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    LogDiagramUtil.LogDiagram, LogDiagramUtil.LogGraphElement
    Enclosing class:
    LogDiagramUtil

    public abstract static class LogDiagramUtil.LogDiagramElement<S extends org.eclipse.emf.ecore.EObject>
    extends java.lang.Object
    implements java.io.Serializable
    Simplified representation of a Rhapsody Diagram Element Is public for deserialization purposes.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected S extract​(Model model, java.util.Map<java.lang.Object,​org.eclipse.emf.ecore.EObject> extractMap)
      Extract a Rhapsody Diagram Element from this, and insert it in the model
      protected abstract void extract​(S object, Model model, java.util.Map<java.lang.Object,​org.eclipse.emf.ecore.EObject> extractMap)
      Extract nested properties of this to an already created Rhapsody Element
      protected abstract java.lang.String getMetaclass()  
      protected <T extends LogDiagramUtil.LogDiagramElement<?>>
      T
      simplify​(java.lang.Object object, java.util.Map<java.lang.Object,​LogDiagramUtil.LogDiagramElement> map)
      Convert a Rhapsody Element to a simplified version using LogDiagramElement
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LogDiagramElement

        public LogDiagramElement()
    • Method Detail

      • extract

        protected S extract​(Model model,
                            java.util.Map<java.lang.Object,​org.eclipse.emf.ecore.EObject> extractMap)
                     throws java.io.IOException
        Extract a Rhapsody Diagram Element from this, and insert it in the model
        Parameters:
        model - into which the extracted element should be added
        extractMap - keeps links between LogDiagramElements and Rhapsody Diagram Elements
        Returns:
        the extracted Rhapsody Element
        Throws:
        java.io.IOException
      • simplify

        protected <T extends LogDiagramUtil.LogDiagramElement<?>> T simplify​(java.lang.Object object,
                                                                             java.util.Map<java.lang.Object,​LogDiagramUtil.LogDiagramElement> map)
        Convert a Rhapsody Element to a simplified version using LogDiagramElement
        Parameters:
        object - the Rhapsody Element to simplify
        map - keeps links between Rhapsody Element and LogDiagramElements
        Returns:
        the LogDiagramElement representing object
      • extract

        protected abstract void extract​(S object,
                                        Model model,
                                        java.util.Map<java.lang.Object,​org.eclipse.emf.ecore.EObject> extractMap)
                                 throws java.io.IOException
        Extract nested properties of this to an already created Rhapsody Element
        Parameters:
        object - the Rhapsody Element already created
        model - the model containing object
        extractMap - keeps links between LogDiagramElement and extracted Rhapsody Element
        Throws:
        java.io.IOException
      • getMetaclass

        protected abstract java.lang.String getMetaclass()
        Returns:
        the Rhapsody metaclass name represented by this LogDiagramElement