java.lang.Object
de.grogra.ext.exchangegraph.XEGImport
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected Reader
protected XEGImportContext
boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateGroimpNodeTypes
(de.grogra.ext.exchangegraph.xmlbeans.Graph graph) void
doImport()
protected int
getEdgeBit
(String type) Returns the GroIMP specific edge bits for a given xml edge type.protected boolean
propertyMatchField
(de.grogra.ext.exchangegraph.xmlbeans.Property p, Field field) 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.protected boolean
typeMatchType
(Type type, de.grogra.ext.exchangegraph.xmlbeans.Type xegtype)
-
Field Details
-
graphReader
-
source
-
modelTypes
-
asProject
protected boolean asProject -
useInstantation
public boolean useInstantation -
toVisitXEGNodeType
-
-
Constructor Details
-
XEGImport
public XEGImport(Reader graphReader, HashMap<String, Type> modelTypes, XEGImportContext source, boolean asProject) Constructor called by GroIMP (Object->Insert File).- Throws:
IOException
-
-
Method Details
-
doImport
- Throws:
IOException
-
typeMatchList
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
-
propertyMatchField
-
createGroimpNodeTypes
-
getEdgeBit
Returns the GroIMP specific edge bits for a given xml edge type.- Parameters:
type
-- Returns:
-