Class XEGImport

java.lang.Object
de.grogra.ext.exchangegraph.XEGImport

public class XEGImport extends Object
  • Field Details

    • graphReader

      protected Reader graphReader
    • source

      protected XEGImportContext source
    • modelTypes

      protected HashMap<String,Type> modelTypes
    • asProject

      protected boolean asProject
    • useInstantation

      public boolean useInstantation
    • toVisitXEGNodeType

      protected HashMap<String,de.grogra.ext.exchangegraph.xmlbeans.Type> toVisitXEGNodeType
  • Constructor Details

  • Method Details

    • doImport

      public void doImport() throws IOException
      Throws:
      IOException
    • typeMatchList

      protected boolean typeMatchList(Type type, List<de.grogra.ext.exchangegraph.xmlbeans.Type> list)
      Check if the given Type matches with one of the required xeg import type. e.g. The xeg file define a custom type A that extends Sphere and have one property: len- a float. The current model does have a module A, but it do not have a property len. Then, the xegType is added to the list as a new type.
      Parameters:
      var1 -
      var2 -
      Returns:
    • typeMatchType

      protected boolean typeMatchType(Type type, de.grogra.ext.exchangegraph.xmlbeans.Type xegtype)
    • propertyMatchField

      protected boolean propertyMatchField(de.grogra.ext.exchangegraph.xmlbeans.Property p, Field field)
    • createGroimpNodeTypes

      protected HashMap<String,Type> createGroimpNodeTypes(de.grogra.ext.exchangegraph.xmlbeans.Graph graph)
    • getEdgeBit

      protected int getEdgeBit(String type)
      Returns the GroIMP specific edge bits for a given xml edge type.
      Parameters:
      type -
      Returns: