From 87051c110f9f44898d26f9a3d13374ca6b75b125 Mon Sep 17 00:00:00 2001 From: luukkainen Date: Mon, 15 Feb 2016 15:34:45 +0000 Subject: [PATCH] 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 --- .../src/org/simantics/xml/sax/ImporterGenerator.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } } -- 2.45.2