You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by js...@apache.org on 2007/10/18 20:40:16 UTC
svn commit: r586064 -
/activemq/camel/trunk/components/camel-xstream/src/test/java/org/apache/camel/dataformat/xstream/PurchaseOrder.java
Author: jstrachan
Date: Thu Oct 18 11:40:16 2007
New Revision: 586064
URL: http://svn.apache.org/viewvc?rev=586064&view=rev
Log:
added support for XStream data format for https://issues.apache.org/activemq/browse/CAMEL-183
Added:
activemq/camel/trunk/components/camel-xstream/src/test/java/org/apache/camel/dataformat/xstream/PurchaseOrder.java
- copied, changed from r585168, activemq/camel/trunk/components/camel-jaxb/src/test/java/org/apache/camel/example/PurchaseOrder.java
Copied: activemq/camel/trunk/components/camel-xstream/src/test/java/org/apache/camel/dataformat/xstream/PurchaseOrder.java (from r585168, activemq/camel/trunk/components/camel-jaxb/src/test/java/org/apache/camel/example/PurchaseOrder.java)
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-xstream/src/test/java/org/apache/camel/dataformat/xstream/PurchaseOrder.java?p2=activemq/camel/trunk/components/camel-xstream/src/test/java/org/apache/camel/dataformat/xstream/PurchaseOrder.java&p1=activemq/camel/trunk/components/camel-jaxb/src/test/java/org/apache/camel/example/PurchaseOrder.java&r1=585168&r2=586064&rev=586064&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-jaxb/src/test/java/org/apache/camel/example/PurchaseOrder.java (original)
+++ activemq/camel/trunk/components/camel-xstream/src/test/java/org/apache/camel/dataformat/xstream/PurchaseOrder.java Thu Oct 18 11:40:16 2007
@@ -14,26 +14,16 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.camel.example;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlRootElement;
+package org.apache.camel.dataformat.xstream;
import org.apache.camel.util.ObjectHelper;
/**
* @version $Revision$
*/
-@XmlRootElement
-@XmlAccessorType(XmlAccessType.FIELD)
public class PurchaseOrder {
- @XmlAttribute
private String name;
- @XmlAttribute
private double price;
- @XmlAttribute
private double amount;
@Override
@@ -75,4 +65,4 @@
public void setPrice(double price) {
this.price = price;
}
-}
+}
\ No newline at end of file