diff options
author | nash <nash@13f79535-47bb-0310-9956-ffa450edef68> | 2008-07-24 23:52:15 +0000 |
---|---|---|
committer | nash <nash@13f79535-47bb-0310-9956-ffa450edef68> | 2008-07-24 23:52:15 +0000 |
commit | f6acea6dfa2059450db3961d42ccf09502d4d273 (patch) | |
tree | da79ba023d53629474e050c5dbe89804882ec836 /java/sca/modules/databinding-jaxb/src | |
parent | 836eb414d618c507bb2540040e095d54db7fc08e (diff) |
Fix TUSCANY-2479
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@679617 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/databinding-jaxb/src')
-rw-r--r-- | java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBTypeHelper.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBTypeHelper.java b/java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBTypeHelper.java index f5189345f7..8f8e907a31 100644 --- a/java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBTypeHelper.java +++ b/java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBTypeHelper.java @@ -23,6 +23,8 @@ import java.beans.Introspector; import java.io.IOException; import java.io.StringReader; import java.io.StringWriter; +import java.net.URI; +import java.net.URISyntaxException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -188,6 +190,13 @@ public class JAXBTypeHelper implements XMLTypeHelper { definition.setUnresolved(true); definition.setDocument((Document)entry.getValue().getNode()); definition.setNamespace(entry.getKey()); + URI location = null; + try { + location = new URI(entry.getValue().getSystemId()); + } catch (URISyntaxException e) { + // ignore: use null value + } + definition.setLocation(location); definitions.add(definition); } } |