2009-05-31 04:56:32 +02:00
|
|
|
--- src/jaxme/org/apache/ws/jaxme/impl/JMMarshallerImpl.java
|
|
|
|
+++ src/jaxme/org/apache/ws/jaxme/impl/JMMarshallerImpl.java
|
2017-09-12 10:11:14 +02:00
|
|
|
@@ -21,16 +21,22 @@
|
|
|
|
import java.io.OutputStreamWriter;
|
|
|
|
import java.io.UnsupportedEncodingException;
|
|
|
|
import java.io.Writer;
|
|
|
|
+import java.io.File;
|
|
|
|
|
|
|
|
import javax.xml.bind.JAXBException;
|
|
|
|
import javax.xml.bind.MarshalException;
|
|
|
|
import javax.xml.bind.Marshaller;
|
|
|
|
import javax.xml.bind.PropertyException;
|
|
|
|
+import javax.xml.bind.attachment.AttachmentMarshaller;
|
|
|
|
+import javax.xml.bind.annotation.adapters.XmlAdapter;
|
|
|
|
import javax.xml.namespace.QName;
|
|
|
|
import javax.xml.transform.Result;
|
|
|
|
import javax.xml.transform.dom.DOMResult;
|
|
|
|
import javax.xml.transform.sax.SAXResult;
|
|
|
|
import javax.xml.transform.stream.StreamResult;
|
|
|
|
+import javax.xml.stream.XMLStreamWriter;
|
|
|
|
+import javax.xml.stream.XMLEventWriter;
|
|
|
|
+import javax.xml.validation.Schema;
|
2009-05-31 04:56:32 +02:00
|
|
|
|
2017-09-12 10:11:14 +02:00
|
|
|
import org.apache.ws.jaxme.*;
|
|
|
|
import org.apache.ws.jaxme.JMElement;
|
|
|
|
@@ -430,4 +436,55 @@
|
2009-05-31 04:56:32 +02:00
|
|
|
public Node getNode(java.lang.Object contentTree) throws JAXBException {
|
2017-09-12 10:11:14 +02:00
|
|
|
throw new UnsupportedOperationException("JaxMe doesn't support live DOM views");
|
2009-05-31 04:56:32 +02:00
|
|
|
}
|
|
|
|
+
|
|
|
|
+
|
2017-09-12 10:11:14 +02:00
|
|
|
+// added to support JDK6
|
2009-05-31 04:56:32 +02:00
|
|
|
+
|
2017-09-12 10:11:14 +02:00
|
|
|
+ public void marshal(Object jaxbElement, File output) throws JAXBException {
|
|
|
|
+ throw new UnsupportedOperationException();
|
|
|
|
+ }
|
2009-05-31 04:56:32 +02:00
|
|
|
+
|
2017-09-12 10:11:14 +02:00
|
|
|
+ public void marshal(Object jaxbElement, XMLStreamWriter writer) throws JAXBException {
|
|
|
|
+ throw new UnsupportedOperationException();
|
|
|
|
+ }
|
2009-05-31 04:56:32 +02:00
|
|
|
+
|
2017-09-12 10:11:14 +02:00
|
|
|
+ public void marshal(Object jaxbElement, XMLEventWriter writer) throws JAXBException {
|
|
|
|
+ throw new UnsupportedOperationException();
|
|
|
|
+ }
|
2009-05-31 04:56:32 +02:00
|
|
|
+
|
2017-09-12 10:11:14 +02:00
|
|
|
+ public void setAdapter(XmlAdapter adapter) {
|
|
|
|
+ throw new UnsupportedOperationException();
|
|
|
|
+ }
|
2009-05-31 04:56:32 +02:00
|
|
|
+
|
2017-09-12 10:11:14 +02:00
|
|
|
+ public void setAdapter(Class type, XmlAdapter adapter) {
|
|
|
|
+ throw new UnsupportedOperationException();
|
|
|
|
+ }
|
2009-05-31 04:56:32 +02:00
|
|
|
+
|
2017-09-12 10:11:14 +02:00
|
|
|
+ public XmlAdapter getAdapter(Class type) {
|
|
|
|
+ throw new UnsupportedOperationException();
|
|
|
|
+ }
|
2009-05-31 04:56:32 +02:00
|
|
|
+
|
2017-09-12 10:11:14 +02:00
|
|
|
+ public void setAttachmentMarshaller(AttachmentMarshaller am) {
|
|
|
|
+ throw new UnsupportedOperationException();
|
|
|
|
+ }
|
2009-05-31 04:56:32 +02:00
|
|
|
+
|
2017-09-12 10:11:14 +02:00
|
|
|
+ public AttachmentMarshaller getAttachmentMarshaller() {
|
|
|
|
+ throw new UnsupportedOperationException();
|
|
|
|
+ }
|
2009-05-31 04:56:32 +02:00
|
|
|
+
|
2017-09-12 10:11:14 +02:00
|
|
|
+ public void setSchema(Schema schema) {
|
|
|
|
+ throw new UnsupportedOperationException();
|
|
|
|
+ }
|
2009-05-31 04:56:32 +02:00
|
|
|
+
|
2017-09-12 10:11:14 +02:00
|
|
|
+ public Schema getSchema() {
|
|
|
|
+ throw new UnsupportedOperationException();
|
|
|
|
+ }
|
2009-05-31 04:56:32 +02:00
|
|
|
+
|
2017-09-12 10:11:14 +02:00
|
|
|
+ public void setListener(Listener listener) {
|
|
|
|
+ throw new UnsupportedOperationException();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public Listener getListener() {
|
|
|
|
+ throw new UnsupportedOperationException();
|
|
|
|
+ }
|
2009-05-31 04:56:32 +02:00
|
|
|
}
|
|
|
|
--- src/jaxme/org/apache/ws/jaxme/impl/JMUnmarshallerImpl.java
|
|
|
|
+++ src/jaxme/org/apache/ws/jaxme/impl/JMUnmarshallerImpl.java
|
2017-09-12 10:11:14 +02:00
|
|
|
@@ -26,6 +26,10 @@
|
|
|
|
import javax.xml.bind.JAXBException;
|
|
|
|
import javax.xml.bind.UnmarshalException;
|
|
|
|
import javax.xml.bind.UnmarshallerHandler;
|
|
|
|
+import javax.xml.bind.JAXBElement;
|
|
|
|
+import javax.xml.bind.Unmarshaller;
|
|
|
|
+import javax.xml.bind.attachment.AttachmentUnmarshaller;
|
|
|
|
+import javax.xml.bind.annotation.adapters.XmlAdapter;
|
|
|
|
import javax.xml.parsers.ParserConfigurationException;
|
|
|
|
import javax.xml.parsers.SAXParser;
|
|
|
|
import javax.xml.parsers.SAXParserFactory;
|
|
|
|
@@ -33,6 +37,9 @@
|
|
|
|
import javax.xml.transform.dom.DOMSource;
|
|
|
|
import javax.xml.transform.sax.SAXSource;
|
|
|
|
import javax.xml.transform.stream.StreamSource;
|
|
|
|
+import javax.xml.stream.XMLStreamReader;
|
|
|
|
+import javax.xml.stream.XMLEventReader;
|
|
|
|
+import javax.xml.validation.Schema;
|
|
|
|
|
|
|
|
import org.apache.ws.jaxme.JMUnmarshaller;
|
|
|
|
import org.apache.ws.jaxme.util.DOMSerializer;
|
|
|
|
@@ -177,4 +184,71 @@
|
2009-05-31 04:56:32 +02:00
|
|
|
public UnmarshallerHandler getUnmarshallerHandler() {
|
|
|
|
return new JMUnmarshallerHandlerImpl(this);
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+
|
2017-09-12 10:11:14 +02:00
|
|
|
+// added to support JDK6
|
|
|
|
+
|
|
|
|
+ public Object unmarshal(Reader reader) throws JAXBException {
|
|
|
|
+ throw new UnsupportedOperationException();
|
2009-05-31 04:56:32 +02:00
|
|
|
+ }
|
|
|
|
+
|
2017-09-12 10:11:14 +02:00
|
|
|
+ public JAXBElement unmarshal(Node node, Class declaredType) throws JAXBException {
|
|
|
|
+ throw new UnsupportedOperationException();
|
2009-05-31 04:56:32 +02:00
|
|
|
+ }
|
|
|
|
+
|
2017-09-12 10:11:14 +02:00
|
|
|
+ public JAXBElement unmarshal(Source source, Class declaredType) throws JAXBException {
|
|
|
|
+ throw new UnsupportedOperationException();
|
2009-05-31 04:56:32 +02:00
|
|
|
+ }
|
|
|
|
+
|
2017-09-12 10:11:14 +02:00
|
|
|
+ public Object unmarshal(XMLStreamReader reader) throws JAXBException {
|
|
|
|
+ throw new UnsupportedOperationException();
|
2009-05-31 04:56:32 +02:00
|
|
|
+ }
|
|
|
|
+
|
2017-09-12 10:11:14 +02:00
|
|
|
+ public JAXBElement unmarshal(XMLStreamReader reader, Class declaredType) throws JAXBException {
|
|
|
|
+ throw new UnsupportedOperationException();
|
2009-05-31 04:56:32 +02:00
|
|
|
+ }
|
|
|
|
+
|
2017-09-12 10:11:14 +02:00
|
|
|
+ public Object unmarshal(XMLEventReader reader) throws JAXBException {
|
|
|
|
+ throw new UnsupportedOperationException();
|
2009-05-31 04:56:32 +02:00
|
|
|
+ }
|
|
|
|
+
|
2017-09-12 10:11:14 +02:00
|
|
|
+ public JAXBElement unmarshal(XMLEventReader reader, Class declaredType) throws JAXBException {
|
|
|
|
+ throw new UnsupportedOperationException();
|
2009-05-31 04:56:32 +02:00
|
|
|
+ }
|
|
|
|
+
|
2017-09-12 10:11:14 +02:00
|
|
|
+ public void setSchema(Schema schema) {
|
|
|
|
+ throw new UnsupportedOperationException();
|
2009-05-31 04:56:32 +02:00
|
|
|
+ }
|
2017-09-12 10:11:14 +02:00
|
|
|
+
|
|
|
|
+ public Schema getSchema() {
|
|
|
|
+ throw new UnsupportedOperationException();
|
2009-05-31 04:56:32 +02:00
|
|
|
+ }
|
|
|
|
+
|
2017-09-12 10:11:14 +02:00
|
|
|
+ public void setAdapter(XmlAdapter adapter) {
|
|
|
|
+ throw new UnsupportedOperationException();
|
2009-05-31 04:56:32 +02:00
|
|
|
+ }
|
|
|
|
+
|
2017-09-12 10:11:14 +02:00
|
|
|
+ public void setAdapter(Class type, XmlAdapter adapter) {
|
|
|
|
+ throw new UnsupportedOperationException();
|
2009-05-31 04:56:32 +02:00
|
|
|
+ }
|
2017-09-12 10:11:14 +02:00
|
|
|
+
|
|
|
|
+ public XmlAdapter getAdapter(Class type) {
|
|
|
|
+ throw new UnsupportedOperationException();
|
2009-05-31 04:56:32 +02:00
|
|
|
+ }
|
|
|
|
+
|
2017-09-12 10:11:14 +02:00
|
|
|
+ public void setAttachmentUnmarshaller(AttachmentUnmarshaller au) {
|
|
|
|
+ throw new UnsupportedOperationException();
|
2009-05-31 04:56:32 +02:00
|
|
|
+ }
|
|
|
|
+
|
2017-09-12 10:11:14 +02:00
|
|
|
+ public AttachmentUnmarshaller getAttachmentUnmarshaller() {
|
|
|
|
+ throw new UnsupportedOperationException();
|
2009-05-31 04:56:32 +02:00
|
|
|
+ }
|
|
|
|
+
|
2017-09-12 10:11:14 +02:00
|
|
|
+ public void setListener(Listener listener) {
|
|
|
|
+ throw new UnsupportedOperationException();
|
2009-05-31 04:56:32 +02:00
|
|
|
+ }
|
|
|
|
+
|
2017-09-12 10:11:14 +02:00
|
|
|
+ public Listener getListener() {
|
|
|
|
+ throw new UnsupportedOperationException();
|
|
|
|
+ }
|
2009-05-31 04:56:32 +02:00
|
|
|
}
|