diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2008-10-15 16:06:49 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2008-10-15 16:06:49 +0000 |
commit | 5dd2ce8d6ab5905fb4b4366d1063c6161f91c261 (patch) | |
tree | 55fabb1b06d81b5ed3b26f35a298c9d653e47d9a /branches/sca-equinox/modules/databinding-jaxb-axiom/src/main/java/org/apache/tuscany/sca/databinding/jaxb/axiom/ext/XMLStringDataSource.java | |
parent | d2fba70e65ea81a4f87d9fdfa0306bad66565c5b (diff) |
Update to axiom 1.2.7 OMDataSourceExt
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@704946 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-equinox/modules/databinding-jaxb-axiom/src/main/java/org/apache/tuscany/sca/databinding/jaxb/axiom/ext/XMLStringDataSource.java')
-rw-r--r-- | branches/sca-equinox/modules/databinding-jaxb-axiom/src/main/java/org/apache/tuscany/sca/databinding/jaxb/axiom/ext/XMLStringDataSource.java | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/branches/sca-equinox/modules/databinding-jaxb-axiom/src/main/java/org/apache/tuscany/sca/databinding/jaxb/axiom/ext/XMLStringDataSource.java b/branches/sca-equinox/modules/databinding-jaxb-axiom/src/main/java/org/apache/tuscany/sca/databinding/jaxb/axiom/ext/XMLStringDataSource.java index a2a68c8eb0..e8e3193e24 100644 --- a/branches/sca-equinox/modules/databinding-jaxb-axiom/src/main/java/org/apache/tuscany/sca/databinding/jaxb/axiom/ext/XMLStringDataSource.java +++ b/branches/sca-equinox/modules/databinding-jaxb-axiom/src/main/java/org/apache/tuscany/sca/databinding/jaxb/axiom/ext/XMLStringDataSource.java @@ -27,18 +27,15 @@ import java.io.Writer; import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamReader; +import org.apache.axiom.om.OMDataSourceExt; import org.apache.axiom.om.OMOutputFormat; +import org.apache.axiom.om.ds.OMDataSourceExtBase; import org.apache.axiom.om.util.StAXUtils; /** * OMDataSource backed by a string containing xml data */ -// FIXME: To be refectored into databinding-axiom -public class XMLStringDataSource - -//FIXME: [rfeng] Re-enable it after we move to AXIOM 1.2.7 -// extends OMDataSourceExtBase -{ +public class XMLStringDataSource extends OMDataSourceExtBase { private String data; public XMLStringDataSource(String data) { @@ -49,10 +46,9 @@ public class XMLStringDataSource public void close() { } - // FIXME: [rfeng] Re-enable it after we move to AXIOM 1.2.7 - // public OMDataSourceExt copy() { - // return new XMLStringDataSource(data); - // } + public OMDataSourceExt copy() { + return new XMLStringDataSource(data); + } public Object getObject() { return data; |