
io.fixprotocol._2016.fixrepository.Groups 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="group" type="{http://fixprotocol.io/2016/fixrepository}groupType" maxOccurs="unbounded"/>
* </sequence>
* <attGroup ref="{http://fixprotocol.io/2016/fixrepository}containerAttribGrp"/>
* <attribute ref="{http://www.w3.org/XML/1998/namespace}base"/>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"group"
})
@XmlRootElement(name = "groups")
public class Groups implements Cloneable, CopyTo2
{
@XmlElement(required = true)
protected List group;
@XmlAttribute(name = "base", namespace = "http://www.w3.org/XML/1998/namespace")
@XmlSchemaType(name = "anyURI")
protected String base;
@XmlAttribute(name = "latestEP")
protected BigInteger latestEP;
/**
* Gets the value of the group 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 group property.
*
*
* For example, to add a new item, do as follows:
*
* getGroup().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link GroupType }
*
*
*/
public List getGroup() {
if (group == null) {
group = new ArrayList();
}
return this.group;
}
/**
* 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;
}
/**
* 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;
}
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 Groups) {
final Groups copy = ((Groups) draftCopy);
{
Boolean groupShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, ((this.group!= null)&&(!this.group.isEmpty())));
if (groupShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceGroup;
sourceGroup = (((this.group!= null)&&(!this.group.isEmpty()))?this.getGroup():null);
@SuppressWarnings("unchecked")
List copyGroup = ((List ) strategy.copy(LocatorUtils.property(locator, "group", sourceGroup), sourceGroup, ((this.group!= null)&&(!this.group.isEmpty()))));
copy.group = null;
if (copyGroup!= null) {
List uniqueGroupl = copy.getGroup();
uniqueGroupl.addAll(copyGroup);
}
} else {
if (groupShouldBeCopiedAndSet == Boolean.FALSE) {
copy.group = 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;
}
}
}
{
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;
}
}
}
}
return draftCopy;
}
public Object createNewInstance() {
return new Groups();
}
}