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

org.finra.herd.model.api.xml.NotificationMessageDefinition Maven / Gradle / Ivy

Go to download

This project contains the model API classes compiled for JDK 1.5 and above. This project depends on herd-model-api and should not contain any actual files.

There is a newer version: 0.160.0
Show newest version

package org.finra.herd.model.api.xml;

import java.io.Serializable;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlType;
import org.eclipse.persistence.oxm.annotations.XmlCDATA;
import org.jvnet.jaxb2_commons.lang.CopyStrategy2;
import org.jvnet.jaxb2_commons.lang.CopyTo2;
import org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.HashCode2;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy2;
import org.jvnet.jaxb2_commons.lang.JAXBCopyStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString2;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy2;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;


/**
 * 

Java class for notificationMessageDefinition complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="notificationMessageDefinition">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="messageType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="messageDestination" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="messageVelocityTemplate" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="messageHeaderDefinitions" type="{}messageHeaderDefinitions" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "notificationMessageDefinition", propOrder = { "messageType", "messageDestination", "messageVelocityTemplate", "messageHeaderDefinitions" }) public class NotificationMessageDefinition implements Serializable, Cloneable, CopyTo2, Equals2, HashCode2, ToString2 { private final static long serialVersionUID = -1L; protected String messageType; protected String messageDestination; @XmlCDATA protected String messageVelocityTemplate; @XmlElementWrapper @XmlElement(name = "messageHeaderDefinition") protected List messageHeaderDefinitions; /** * Default no-arg constructor * */ public NotificationMessageDefinition() { super(); } /** * Fully-initialising value constructor * */ public NotificationMessageDefinition(final String messageType, final String messageDestination, final String messageVelocityTemplate, final List messageHeaderDefinitions) { this.messageType = messageType; this.messageDestination = messageDestination; this.messageVelocityTemplate = messageVelocityTemplate; this.messageHeaderDefinitions = messageHeaderDefinitions; } /** * Gets the value of the messageType property. * * @return * possible object is * {@link String } * */ public String getMessageType() { return messageType; } /** * Sets the value of the messageType property. * * @param value * allowed object is * {@link String } * */ public void setMessageType(String value) { this.messageType = value; } /** * Gets the value of the messageDestination property. * * @return * possible object is * {@link String } * */ public String getMessageDestination() { return messageDestination; } /** * Sets the value of the messageDestination property. * * @param value * allowed object is * {@link String } * */ public void setMessageDestination(String value) { this.messageDestination = value; } /** * Gets the value of the messageVelocityTemplate property. * * @return * possible object is * {@link String } * */ public String getMessageVelocityTemplate() { return messageVelocityTemplate; } /** * Sets the value of the messageVelocityTemplate property. * * @param value * allowed object is * {@link String } * */ public void setMessageVelocityTemplate(String value) { this.messageVelocityTemplate = value; } public List getMessageHeaderDefinitions() { return messageHeaderDefinitions; } public void setMessageHeaderDefinitions(List messageHeaderDefinitions) { this.messageHeaderDefinitions = messageHeaderDefinitions; } public String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { String theMessageType; theMessageType = this.getMessageType(); strategy.appendField(locator, this, "messageType", buffer, theMessageType, (this.messageType!= null)); } { String theMessageDestination; theMessageDestination = this.getMessageDestination(); strategy.appendField(locator, this, "messageDestination", buffer, theMessageDestination, (this.messageDestination!= null)); } { String theMessageVelocityTemplate; theMessageVelocityTemplate = this.getMessageVelocityTemplate(); strategy.appendField(locator, this, "messageVelocityTemplate", buffer, theMessageVelocityTemplate, (this.messageVelocityTemplate!= null)); } { List theMessageHeaderDefinitions; theMessageHeaderDefinitions = ((this.messageHeaderDefinitions!= null)?this.getMessageHeaderDefinitions():null); strategy.appendField(locator, this, "messageHeaderDefinitions", buffer, theMessageHeaderDefinitions, (this.messageHeaderDefinitions!= null)); } return buffer; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } final NotificationMessageDefinition that = ((NotificationMessageDefinition) object); { String lhsMessageType; lhsMessageType = this.getMessageType(); String rhsMessageType; rhsMessageType = that.getMessageType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "messageType", lhsMessageType), LocatorUtils.property(thatLocator, "messageType", rhsMessageType), lhsMessageType, rhsMessageType, (this.messageType!= null), (that.messageType!= null))) { return false; } } { String lhsMessageDestination; lhsMessageDestination = this.getMessageDestination(); String rhsMessageDestination; rhsMessageDestination = that.getMessageDestination(); if (!strategy.equals(LocatorUtils.property(thisLocator, "messageDestination", lhsMessageDestination), LocatorUtils.property(thatLocator, "messageDestination", rhsMessageDestination), lhsMessageDestination, rhsMessageDestination, (this.messageDestination!= null), (that.messageDestination!= null))) { return false; } } { String lhsMessageVelocityTemplate; lhsMessageVelocityTemplate = this.getMessageVelocityTemplate(); String rhsMessageVelocityTemplate; rhsMessageVelocityTemplate = that.getMessageVelocityTemplate(); if (!strategy.equals(LocatorUtils.property(thisLocator, "messageVelocityTemplate", lhsMessageVelocityTemplate), LocatorUtils.property(thatLocator, "messageVelocityTemplate", rhsMessageVelocityTemplate), lhsMessageVelocityTemplate, rhsMessageVelocityTemplate, (this.messageVelocityTemplate!= null), (that.messageVelocityTemplate!= null))) { return false; } } { List lhsMessageHeaderDefinitions; lhsMessageHeaderDefinitions = ((this.messageHeaderDefinitions!= null)?this.getMessageHeaderDefinitions():null); List rhsMessageHeaderDefinitions; rhsMessageHeaderDefinitions = ((that.messageHeaderDefinitions!= null)?that.getMessageHeaderDefinitions():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "messageHeaderDefinitions", lhsMessageHeaderDefinitions), LocatorUtils.property(thatLocator, "messageHeaderDefinitions", rhsMessageHeaderDefinitions), lhsMessageHeaderDefinitions, rhsMessageHeaderDefinitions, (this.messageHeaderDefinitions!= null), (that.messageHeaderDefinitions!= null))) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); } public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { String theMessageType; theMessageType = this.getMessageType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "messageType", theMessageType), currentHashCode, theMessageType, (this.messageType!= null)); } { String theMessageDestination; theMessageDestination = this.getMessageDestination(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "messageDestination", theMessageDestination), currentHashCode, theMessageDestination, (this.messageDestination!= null)); } { String theMessageVelocityTemplate; theMessageVelocityTemplate = this.getMessageVelocityTemplate(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "messageVelocityTemplate", theMessageVelocityTemplate), currentHashCode, theMessageVelocityTemplate, (this.messageVelocityTemplate!= null)); } { List theMessageHeaderDefinitions; theMessageHeaderDefinitions = ((this.messageHeaderDefinitions!= null)?this.getMessageHeaderDefinitions():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "messageHeaderDefinitions", theMessageHeaderDefinitions), currentHashCode, theMessageHeaderDefinitions, (this.messageHeaderDefinitions!= null)); } return currentHashCode; } public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } 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 NotificationMessageDefinition) { final NotificationMessageDefinition copy = ((NotificationMessageDefinition) draftCopy); { Boolean messageTypeShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.messageType!= null)); if (messageTypeShouldBeCopiedAndSet == Boolean.TRUE) { String sourceMessageType; sourceMessageType = this.getMessageType(); String copyMessageType = ((String) strategy.copy(LocatorUtils.property(locator, "messageType", sourceMessageType), sourceMessageType, (this.messageType!= null))); copy.setMessageType(copyMessageType); } else { if (messageTypeShouldBeCopiedAndSet == Boolean.FALSE) { copy.messageType = null; } } } { Boolean messageDestinationShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.messageDestination!= null)); if (messageDestinationShouldBeCopiedAndSet == Boolean.TRUE) { String sourceMessageDestination; sourceMessageDestination = this.getMessageDestination(); String copyMessageDestination = ((String) strategy.copy(LocatorUtils.property(locator, "messageDestination", sourceMessageDestination), sourceMessageDestination, (this.messageDestination!= null))); copy.setMessageDestination(copyMessageDestination); } else { if (messageDestinationShouldBeCopiedAndSet == Boolean.FALSE) { copy.messageDestination = null; } } } { Boolean messageVelocityTemplateShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.messageVelocityTemplate!= null)); if (messageVelocityTemplateShouldBeCopiedAndSet == Boolean.TRUE) { String sourceMessageVelocityTemplate; sourceMessageVelocityTemplate = this.getMessageVelocityTemplate(); String copyMessageVelocityTemplate = ((String) strategy.copy(LocatorUtils.property(locator, "messageVelocityTemplate", sourceMessageVelocityTemplate), sourceMessageVelocityTemplate, (this.messageVelocityTemplate!= null))); copy.setMessageVelocityTemplate(copyMessageVelocityTemplate); } else { if (messageVelocityTemplateShouldBeCopiedAndSet == Boolean.FALSE) { copy.messageVelocityTemplate = null; } } } { Boolean messageHeaderDefinitionsShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.messageHeaderDefinitions!= null)); if (messageHeaderDefinitionsShouldBeCopiedAndSet == Boolean.TRUE) { List sourceMessageHeaderDefinitions; sourceMessageHeaderDefinitions = ((this.messageHeaderDefinitions!= null)?this.getMessageHeaderDefinitions():null); @SuppressWarnings("unchecked") List copyMessageHeaderDefinitions = ((List ) strategy.copy(LocatorUtils.property(locator, "messageHeaderDefinitions", sourceMessageHeaderDefinitions), sourceMessageHeaderDefinitions, (this.messageHeaderDefinitions!= null))); copy.messageHeaderDefinitions = null; if (copyMessageHeaderDefinitions!= null) { copy.setMessageHeaderDefinitions(copyMessageHeaderDefinitions); } } else { if (messageHeaderDefinitionsShouldBeCopiedAndSet == Boolean.FALSE) { copy.messageHeaderDefinitions = null; } } } } return draftCopy; } public Object createNewInstance() { return new NotificationMessageDefinition(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy