]> gerrit.simantics Code Review - simantics/interop.git/commitdiff
Handling untyped attribute definitions by using String
authorluukkainen <luukkainen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Mon, 15 Feb 2016 15:34:45 +0000 (15:34 +0000)
committerMarko Luukkainen <marko.luukkainen@vtt.fi>
Thu, 2 Feb 2017 12:01:34 +0000 (14:01 +0200)
refs #6292

git-svn-id: https://www.simantics.org/svn/simantics/interoperability/trunk@32418 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.xml.sax/src/org/simantics/xml/sax/ImporterGenerator.java

index eb99b5324ab2eb7e5f786bd011564b359c5b8d7f..c312ab829d96afc952f6b5728cd5bc2494a2a510 100644 (file)
@@ -525,8 +525,10 @@ public class ImporterGenerator extends SchemaConversionBase{
                        String binding = getBindingFromPrimitiveType(base);\r
                        writeAttribute(fw, attrName, relationName, binding, isReference);\r
                } else {\r
+                       // TODO : using default String attribute should be configured with rules.\r
                        //throw new RuntimeException("Cannot resolve type for Attribute " + attrName + " -> " + primitiveType.getLocalPart());\r
-                       //writeAttribute(fw, attrName, relationName, binding, isReference);\r
+                       fw.writer.println("    //FIXME: Cannot resolve type for Attribute " + attrName + " Using default type String");\r
+                       writeAttribute(fw, attrName, relationName, "STRING", isReference);\r
                }\r
        }\r
        \r