
io.fixprotocol._2016.fixrepository.Fields Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0
// See https://javaee.github.io/jaxb-v2/
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2019.09.19 at 12:33:07 PM CDT
//
package io.fixprotocol._2016.fixrepository;
import java.math.BigInteger;
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.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.CopyStrategy2;
import org.jvnet.jaxb2_commons.lang.CopyTo2;
import org.jvnet.jaxb2_commons.lang.JAXBCopyStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
/**
* 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="field" type="{http://fixprotocol.io/2016/fixrepository}fieldType" maxOccurs="unbounded"/>
* </sequence>
* <attribute name="latestEP" type="{http://fixprotocol.io/2016/fixrepository}EP_t" />
* <attribute ref="{http://www.w3.org/XML/1998/namespace}base"/>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"field"
})
@XmlRootElement(name = "fields")
public class Fields implements Cloneable, CopyTo2
{
@XmlElement(required = true)
protected List field;
@XmlAttribute(name = "latestEP")
protected BigInteger latestEP;
@XmlAttribute(name = "base", namespace = "http://www.w3.org/XML/1998/namespace")
@XmlSchemaType(name = "anyURI")
protected String base;
/**
* Gets the value of the field 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 field property.
*
*
* For example, to add a new item, do as follows:
*
* getField().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link FieldType }
*
*
*/
public List getField() {
if (field == null) {
field = new ArrayList();
}
return this.field;
}
/**
* Gets the value of the latestEP property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getLatestEP() {
return latestEP;
}
/**
* Sets the value of the latestEP property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setLatestEP(BigInteger value) {
this.latestEP = value;
}
/**
* Gets the value of the base property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getBase() {
return base;
}
/**
* Sets the value of the base property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setBase(String value) {
this.base = value;
}
public Object clone() {
return copyTo(createNewInstance());
}
public Object copyTo(Object target) {
final CopyStrategy2 strategy = JAXBCopyStrategy.INSTANCE;
return copyTo(null, target, strategy);
}
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy2 strategy) {
final Object draftCopy = ((target == null)?createNewInstance():target);
if (draftCopy instanceof Fields) {
final Fields copy = ((Fields) draftCopy);
{
Boolean fieldShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, ((this.field!= null)&&(!this.field.isEmpty())));
if (fieldShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceField;
sourceField = (((this.field!= null)&&(!this.field.isEmpty()))?this.getField():null);
@SuppressWarnings("unchecked")
List copyField = ((List ) strategy.copy(LocatorUtils.property(locator, "field", sourceField), sourceField, ((this.field!= null)&&(!this.field.isEmpty()))));
copy.field = null;
if (copyField!= null) {
List uniqueFieldl = copy.getField();
uniqueFieldl.addAll(copyField);
}
} else {
if (fieldShouldBeCopiedAndSet == Boolean.FALSE) {
copy.field = null;
}
}
}
{
Boolean latestEPShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.latestEP!= null));
if (latestEPShouldBeCopiedAndSet == Boolean.TRUE) {
BigInteger sourceLatestEP;
sourceLatestEP = this.getLatestEP();
BigInteger copyLatestEP = ((BigInteger) strategy.copy(LocatorUtils.property(locator, "latestEP", sourceLatestEP), sourceLatestEP, (this.latestEP!= null)));
copy.setLatestEP(copyLatestEP);
} else {
if (latestEPShouldBeCopiedAndSet == Boolean.FALSE) {
copy.latestEP = null;
}
}
}
{
Boolean baseShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.base!= null));
if (baseShouldBeCopiedAndSet == Boolean.TRUE) {
String sourceBase;
sourceBase = this.getBase();
String copyBase = ((String) strategy.copy(LocatorUtils.property(locator, "base", sourceBase), sourceBase, (this.base!= null)));
copy.setBase(copyBase);
} else {
if (baseShouldBeCopiedAndSet == Boolean.FALSE) {
copy.base = null;
}
}
}
}
return draftCopy;
}
public Object createNewInstance() {
return new Fields();
}
}