package inner_element;
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.XmlElement;
import javax.xml.bind.annotation.XmlType;
import com.sun.tools.xjc.addon.xew.CommonBean;
/**
* <p>Java class for volumes complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="volumes">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="volume" maxOccurs="unbounded">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <all>
* <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="capacity" type="{http://www.w3.org/2001/XMLSchema}int"/>
* </all>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "volumes", propOrder = {
"volume"
})
public class Volumes
extends CommonBean
implements Cloneable
{
@XmlElement(required = true)
protected List<Volumes.Volume> volume;
/**
* Gets the value of the volume 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 volume property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getVolume().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Volumes.Volume }
*
*
*/
public List<Volumes.Volume> getVolume() {
if (volume == null) {
volume = new ArrayList<Volumes.Volume>();
}
return this.volume;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <all>
* <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="capacity" type="{http://www.w3.org/2001/XMLSchema}int"/>
* </all>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
})
public static class Volume
extends CommonBean
implements Cloneable
{
@XmlElement(required = true)
protected String name;
protected int capacity;
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
/**
* Gets the value of the capacity property.
*
*/
public int getCapacity() {
return capacity;
}
/**
* Sets the value of the capacity property.
*
*/
public void setCapacity(int value) {
this.capacity = value;
}
}
}