blob: 496848eaa0e8f870be9c0b4c24828d6a0d25c339 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel.component.dozer.example.abc;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="header">
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="status" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="customer-num" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="order-num" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* &lt;/element>
* &lt;element name="order-items">
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="item" maxOccurs="unbounded" minOccurs="0">
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="price" type="{http://www.w3.org/2001/XMLSchema}float"/>
* &lt;element name="quantity" type="{http://www.w3.org/2001/XMLSchema}short"/>
* &lt;/sequence>
* &lt;attribute name="id" type="{http://www.w3.org/2001/XMLSchema}string" />
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* &lt;/element>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* &lt;/element>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"header",
"orderItems"
})
@XmlRootElement(name = "ABCOrder")
public class ABCOrder {
@XmlElement(required = true)
protected ABCOrder.Header header;
@XmlElement(name = "order-items", required = true)
protected ABCOrder.OrderItems orderItems;
/**
* Gets the value of the header property.
*
* @return
* possible object is
* {@link ABCOrder.Header }
*
*/
public ABCOrder.Header getHeader() {
return header;
}
/**
* Sets the value of the header property.
*
* @param value
* allowed object is
* {@link ABCOrder.Header }
*
*/
public void setHeader(ABCOrder.Header value) {
this.header = value;
}
/**
* Gets the value of the orderItems property.
*
* @return
* possible object is
* {@link ABCOrder.OrderItems }
*
*/
public ABCOrder.OrderItems getOrderItems() {
return orderItems;
}
/**
* Sets the value of the orderItems property.
*
* @param value
* allowed object is
* {@link ABCOrder.OrderItems }
*
*/
public void setOrderItems(ABCOrder.OrderItems value) {
this.orderItems = value;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="status" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="customer-num" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="order-num" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"status",
"customerNum",
"orderNum"
})
public static class Header {
@XmlElement(required = true)
protected String status;
@XmlElement(name = "customer-num", required = true)
protected String customerNum;
@XmlElement(name = "order-num", required = true)
protected String orderNum;
/**
* Gets the value of the status property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getStatus() {
return status;
}
/**
* Sets the value of the status property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setStatus(String value) {
this.status = value;
}
/**
* Gets the value of the customerNum property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCustomerNum() {
return customerNum;
}
/**
* Sets the value of the customerNum property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCustomerNum(String value) {
this.customerNum = value;
}
/**
* Gets the value of the orderNum property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOrderNum() {
return orderNum;
}
/**
* Sets the value of the orderNum property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOrderNum(String value) {
this.orderNum = value;
}
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="item" maxOccurs="unbounded" minOccurs="0">
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="price" type="{http://www.w3.org/2001/XMLSchema}float"/>
* &lt;element name="quantity" type="{http://www.w3.org/2001/XMLSchema}short"/>
* &lt;/sequence>
* &lt;attribute name="id" type="{http://www.w3.org/2001/XMLSchema}string" />
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* &lt;/element>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"item"
})
public static class OrderItems {
protected List<ABCOrder.OrderItems.Item> item;
/**
* Gets the value of the item property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the item property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getItem().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link ABCOrder.OrderItems.Item }
*
*
*/
public List<ABCOrder.OrderItems.Item> getItem() {
if (item == null) {
item = new ArrayList<>();
}
return this.item;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="price" type="{http://www.w3.org/2001/XMLSchema}float"/>
* &lt;element name="quantity" type="{http://www.w3.org/2001/XMLSchema}short"/>
* &lt;/sequence>
* &lt;attribute name="id" type="{http://www.w3.org/2001/XMLSchema}string" />
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"price",
"quantity"
})
public static class Item {
protected float price;
protected short quantity;
@XmlAttribute(name = "id")
protected String id;
/**
* Gets the value of the price property.
*
*/
public float getPrice() {
return price;
}
/**
* Sets the value of the price property.
*
*/
public void setPrice(float value) {
this.price = value;
}
/**
* Gets the value of the quantity property.
*
*/
public short getQuantity() {
return quantity;
}
/**
* Sets the value of the quantity property.
*
*/
public void setQuantity(short value) {
this.quantity = value;
}
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setId(String value) {
this.id = value;
}
}
}
}