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