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