All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.fixprotocol._2016.fixrepository.Messages Maven / Gradle / Ivy

The newest version!
//
// 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="message" type="{http://fixprotocol.io/2016/fixrepository}messageType" 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 = { "message" }) @XmlRootElement(name = "messages") public class Messages implements Cloneable, CopyTo2 { @XmlElement(required = true) protected List message; @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 message 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 message property. * *

* For example, to add a new item, do as follows: *

     *    getMessage().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link MessageType } * * */ public List getMessage() { if (message == null) { message = new ArrayList(); } return this.message; } /** * 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 Messages) { final Messages copy = ((Messages) draftCopy); { Boolean messageShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, ((this.message!= null)&&(!this.message.isEmpty()))); if (messageShouldBeCopiedAndSet == Boolean.TRUE) { List sourceMessage; sourceMessage = (((this.message!= null)&&(!this.message.isEmpty()))?this.getMessage():null); @SuppressWarnings("unchecked") List copyMessage = ((List ) strategy.copy(LocatorUtils.property(locator, "message", sourceMessage), sourceMessage, ((this.message!= null)&&(!this.message.isEmpty())))); copy.message = null; if (copyMessage!= null) { List uniqueMessagel = copy.getMessage(); uniqueMessagel.addAll(copyMessage); } } else { if (messageShouldBeCopiedAndSet == Boolean.FALSE) { copy.message = 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 Messages(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy