
org.bidib.cvexchange.SaveCV Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016.01.11 at 08:36:16 PM MEZ
//
package org.bidib.cvexchange;
import java.util.ArrayList;
import java.util.Collection;
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.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="MasterData" type="{http://www.bidib.org/cvexchange}MasterDataType"/>
* <element name="CVS" type="{http://www.bidib.org/cvexchange}CVSType" maxOccurs="unbounded"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"masterData",
"cvs"
})
@XmlRootElement(name = "SaveCV")
public class SaveCV {
@XmlElement(name = "MasterData", required = true)
protected MasterDataType masterData;
@XmlElement(name = "CVS", required = true)
protected List cvs;
/**
* Gets the value of the masterData property.
*
* @return
* possible object is
* {@link MasterDataType }
*
*/
public MasterDataType getMasterData() {
return masterData;
}
/**
* Sets the value of the masterData property.
*
* @param value
* allowed object is
* {@link MasterDataType }
*
*/
public void setMasterData(MasterDataType value) {
this.masterData = value;
}
/**
* Gets the value of the cvs property.
*
*
* 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 set
method for the cvs property.
*
*
* For example, to add a new item, do as follows:
*
* getCVS().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link CVSType }
*
*
*/
public List getCVS() {
if (cvs == null) {
cvs = new ArrayList();
}
return this.cvs;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
public SaveCV withMasterData(MasterDataType value) {
setMasterData(value);
return this;
}
public SaveCV withCVS(CVSType... values) {
if (values!= null) {
for (CVSType value: values) {
getCVS().add(value);
}
}
return this;
}
public SaveCV withCVS(Collection values) {
if (values!= null) {
getCVS().addAll(values);
}
return this;
}
}