
io.fixprotocol._2016.fixrepository.TimerSchedule 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 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.XmlType;
import javax.xml.datatype.Duration;
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 timerSchedule complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="timerSchedule">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="activity" type="{http://fixprotocol.io/2016/fixrepository}actionType"/>
* </sequence>
* <attribute name="actor" use="required" type="{http://fixprotocol.io/2016/fixrepository}Name_t" />
* <attribute name="name" use="required" type="{http://fixprotocol.io/2016/fixrepository}Name_t" />
* <attribute name="operation" use="required" type="{http://fixprotocol.io/2016/fixrepository}timerOperation" />
* <attribute name="interval" type="{http://www.w3.org/2001/XMLSchema}duration" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "timerSchedule", propOrder = {
"activity"
})
public class TimerSchedule implements Cloneable, CopyTo2
{
@XmlElement(required = true)
protected ActionType activity;
@XmlAttribute(name = "actor", required = true)
protected String actor;
@XmlAttribute(name = "name", required = true)
protected String name;
@XmlAttribute(name = "operation", required = true)
protected TimerOperation operation;
@XmlAttribute(name = "interval")
protected Duration interval;
/**
* Gets the value of the activity property.
*
* @return
* possible object is
* {@link ActionType }
*
*/
public ActionType getActivity() {
return activity;
}
/**
* Sets the value of the activity property.
*
* @param value
* allowed object is
* {@link ActionType }
*
*/
public void setActivity(ActionType value) {
this.activity = value;
}
/**
* Gets the value of the actor property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getActor() {
return actor;
}
/**
* Sets the value of the actor property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setActor(String value) {
this.actor = value;
}
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
/**
* Gets the value of the operation property.
*
* @return
* possible object is
* {@link TimerOperation }
*
*/
public TimerOperation getOperation() {
return operation;
}
/**
* Sets the value of the operation property.
*
* @param value
* allowed object is
* {@link TimerOperation }
*
*/
public void setOperation(TimerOperation value) {
this.operation = value;
}
/**
* Gets the value of the interval property.
*
* @return
* possible object is
* {@link Duration }
*
*/
public Duration getInterval() {
return interval;
}
/**
* Sets the value of the interval property.
*
* @param value
* allowed object is
* {@link Duration }
*
*/
public void setInterval(Duration value) {
this.interval = 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 TimerSchedule) {
final TimerSchedule copy = ((TimerSchedule) draftCopy);
{
Boolean activityShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.activity!= null));
if (activityShouldBeCopiedAndSet == Boolean.TRUE) {
ActionType sourceActivity;
sourceActivity = this.getActivity();
ActionType copyActivity = ((ActionType) strategy.copy(LocatorUtils.property(locator, "activity", sourceActivity), sourceActivity, (this.activity!= null)));
copy.setActivity(copyActivity);
} else {
if (activityShouldBeCopiedAndSet == Boolean.FALSE) {
copy.activity = null;
}
}
}
{
Boolean actorShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.actor!= null));
if (actorShouldBeCopiedAndSet == Boolean.TRUE) {
String sourceActor;
sourceActor = this.getActor();
String copyActor = ((String) strategy.copy(LocatorUtils.property(locator, "actor", sourceActor), sourceActor, (this.actor!= null)));
copy.setActor(copyActor);
} else {
if (actorShouldBeCopiedAndSet == Boolean.FALSE) {
copy.actor = null;
}
}
}
{
Boolean nameShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.name!= null));
if (nameShouldBeCopiedAndSet == Boolean.TRUE) {
String sourceName;
sourceName = this.getName();
String copyName = ((String) strategy.copy(LocatorUtils.property(locator, "name", sourceName), sourceName, (this.name!= null)));
copy.setName(copyName);
} else {
if (nameShouldBeCopiedAndSet == Boolean.FALSE) {
copy.name = null;
}
}
}
{
Boolean operationShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.operation!= null));
if (operationShouldBeCopiedAndSet == Boolean.TRUE) {
TimerOperation sourceOperation;
sourceOperation = this.getOperation();
TimerOperation copyOperation = ((TimerOperation) strategy.copy(LocatorUtils.property(locator, "operation", sourceOperation), sourceOperation, (this.operation!= null)));
copy.setOperation(copyOperation);
} else {
if (operationShouldBeCopiedAndSet == Boolean.FALSE) {
copy.operation = null;
}
}
}
{
Boolean intervalShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.interval!= null));
if (intervalShouldBeCopiedAndSet == Boolean.TRUE) {
Duration sourceInterval;
sourceInterval = this.getInterval();
Duration copyInterval = ((Duration) strategy.copy(LocatorUtils.property(locator, "interval", sourceInterval), sourceInterval, (this.interval!= null)));
copy.setInterval(copyInterval);
} else {
if (intervalShouldBeCopiedAndSet == Boolean.FALSE) {
copy.interval = null;
}
}
}
}
return draftCopy;
}
public Object createNewInstance() {
return new TimerSchedule();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy