From: luukkainen Date: Mon, 15 Feb 2016 15:34:45 +0000 (+0000) Subject: Handling untyped attribute definitions by using String X-Git-Tag: v1.31.0~60 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=87051c110f9f44898d26f9a3d13374ca6b75b125;p=simantics%2Finterop.git Handling untyped attribute definitions by using String refs #6292 git-svn-id: https://www.simantics.org/svn/simantics/interoperability/trunk@32418 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.xml.sax/src/org/simantics/xml/sax/ImporterGenerator.java b/org.simantics.xml.sax/src/org/simantics/xml/sax/ImporterGenerator.java index eb99b53..c312ab8 100644 --- a/org.simantics.xml.sax/src/org/simantics/xml/sax/ImporterGenerator.java +++ b/org.simantics.xml.sax/src/org/simantics/xml/sax/ImporterGenerator.java @@ -525,8 +525,10 @@ public class ImporterGenerator extends SchemaConversionBase{ String binding = getBindingFromPrimitiveType(base); writeAttribute(fw, attrName, relationName, binding, isReference); } else { + // TODO : using default String attribute should be configured with rules. //throw new RuntimeException("Cannot resolve type for Attribute " + attrName + " -> " + primitiveType.getLocalPart()); - //writeAttribute(fw, attrName, relationName, binding, isReference); + fw.writer.println(" //FIXME: Cannot resolve type for Attribute " + attrName + " Using default type String"); + writeAttribute(fw, attrName, relationName, "STRING", isReference); } }