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

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

Go to download

This project contains the model API classes. This contains the herd XSD and generates Java POJO's from them. These classes are used for incoming and outgoing calls into the system (e.g. via REST).

There is a newer version: 0.160.0
Show newest version

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

import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
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.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 keyValuePairConfiguration complex type. * *

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

 * <complexType name="keyValuePairConfiguration">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <all>
 *         <element name="keyValueShortcut" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="attribKey" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="attribVal" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *       </all>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "keyValuePairConfiguration", propOrder = { }) public class KeyValuePairConfiguration implements Serializable, Cloneable, CopyTo2, Equals2, HashCode2, ToString2 { private final static long serialVersionUID = -1L; @XmlElement(required = true) protected String keyValueShortcut; @XmlElement(required = true) protected String attribKey; @XmlElement(required = true) protected String attribVal; /** * Default no-arg constructor * */ public KeyValuePairConfiguration() { super(); } /** * Fully-initialising value constructor * */ public KeyValuePairConfiguration(final String keyValueShortcut, final String attribKey, final String attribVal) { this.keyValueShortcut = keyValueShortcut; this.attribKey = attribKey; this.attribVal = attribVal; } /** * Gets the value of the keyValueShortcut property. * * @return * possible object is * {@link String } * */ public String getKeyValueShortcut() { return keyValueShortcut; } /** * Sets the value of the keyValueShortcut property. * * @param value * allowed object is * {@link String } * */ public void setKeyValueShortcut(String value) { this.keyValueShortcut = value; } /** * Gets the value of the attribKey property. * * @return * possible object is * {@link String } * */ public String getAttribKey() { return attribKey; } /** * Sets the value of the attribKey property. * * @param value * allowed object is * {@link String } * */ public void setAttribKey(String value) { this.attribKey = value; } /** * Gets the value of the attribVal property. * * @return * possible object is * {@link String } * */ public String getAttribVal() { return attribVal; } /** * Sets the value of the attribVal property. * * @param value * allowed object is * {@link String } * */ public void setAttribVal(String value) { this.attribVal = value; } 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 theKeyValueShortcut; theKeyValueShortcut = this.getKeyValueShortcut(); strategy.appendField(locator, this, "keyValueShortcut", buffer, theKeyValueShortcut, (this.keyValueShortcut!= null)); } { String theAttribKey; theAttribKey = this.getAttribKey(); strategy.appendField(locator, this, "attribKey", buffer, theAttribKey, (this.attribKey!= null)); } { String theAttribVal; theAttribVal = this.getAttribVal(); strategy.appendField(locator, this, "attribVal", buffer, theAttribVal, (this.attribVal!= 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 KeyValuePairConfiguration that = ((KeyValuePairConfiguration) object); { String lhsKeyValueShortcut; lhsKeyValueShortcut = this.getKeyValueShortcut(); String rhsKeyValueShortcut; rhsKeyValueShortcut = that.getKeyValueShortcut(); if (!strategy.equals(LocatorUtils.property(thisLocator, "keyValueShortcut", lhsKeyValueShortcut), LocatorUtils.property(thatLocator, "keyValueShortcut", rhsKeyValueShortcut), lhsKeyValueShortcut, rhsKeyValueShortcut, (this.keyValueShortcut!= null), (that.keyValueShortcut!= null))) { return false; } } { String lhsAttribKey; lhsAttribKey = this.getAttribKey(); String rhsAttribKey; rhsAttribKey = that.getAttribKey(); if (!strategy.equals(LocatorUtils.property(thisLocator, "attribKey", lhsAttribKey), LocatorUtils.property(thatLocator, "attribKey", rhsAttribKey), lhsAttribKey, rhsAttribKey, (this.attribKey!= null), (that.attribKey!= null))) { return false; } } { String lhsAttribVal; lhsAttribVal = this.getAttribVal(); String rhsAttribVal; rhsAttribVal = that.getAttribVal(); if (!strategy.equals(LocatorUtils.property(thisLocator, "attribVal", lhsAttribVal), LocatorUtils.property(thatLocator, "attribVal", rhsAttribVal), lhsAttribVal, rhsAttribVal, (this.attribVal!= null), (that.attribVal!= 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 theKeyValueShortcut; theKeyValueShortcut = this.getKeyValueShortcut(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "keyValueShortcut", theKeyValueShortcut), currentHashCode, theKeyValueShortcut, (this.keyValueShortcut!= null)); } { String theAttribKey; theAttribKey = this.getAttribKey(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "attribKey", theAttribKey), currentHashCode, theAttribKey, (this.attribKey!= null)); } { String theAttribVal; theAttribVal = this.getAttribVal(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "attribVal", theAttribVal), currentHashCode, theAttribVal, (this.attribVal!= 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 KeyValuePairConfiguration) { final KeyValuePairConfiguration copy = ((KeyValuePairConfiguration) draftCopy); { Boolean keyValueShortcutShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.keyValueShortcut!= null)); if (keyValueShortcutShouldBeCopiedAndSet == Boolean.TRUE) { String sourceKeyValueShortcut; sourceKeyValueShortcut = this.getKeyValueShortcut(); String copyKeyValueShortcut = ((String) strategy.copy(LocatorUtils.property(locator, "keyValueShortcut", sourceKeyValueShortcut), sourceKeyValueShortcut, (this.keyValueShortcut!= null))); copy.setKeyValueShortcut(copyKeyValueShortcut); } else { if (keyValueShortcutShouldBeCopiedAndSet == Boolean.FALSE) { copy.keyValueShortcut = null; } } } { Boolean attribKeyShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.attribKey!= null)); if (attribKeyShouldBeCopiedAndSet == Boolean.TRUE) { String sourceAttribKey; sourceAttribKey = this.getAttribKey(); String copyAttribKey = ((String) strategy.copy(LocatorUtils.property(locator, "attribKey", sourceAttribKey), sourceAttribKey, (this.attribKey!= null))); copy.setAttribKey(copyAttribKey); } else { if (attribKeyShouldBeCopiedAndSet == Boolean.FALSE) { copy.attribKey = null; } } } { Boolean attribValShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.attribVal!= null)); if (attribValShouldBeCopiedAndSet == Boolean.TRUE) { String sourceAttribVal; sourceAttribVal = this.getAttribVal(); String copyAttribVal = ((String) strategy.copy(LocatorUtils.property(locator, "attribVal", sourceAttribVal), sourceAttribVal, (this.attribVal!= null))); copy.setAttribVal(copyAttribVal); } else { if (attribValShouldBeCopiedAndSet == Boolean.FALSE) { copy.attribVal = null; } } } } return draftCopy; } public Object createNewInstance() { return new KeyValuePairConfiguration(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy