io.atlasmap.xml.v2.XmlEnumFields Maven / Gradle / Ivy
package io.atlasmap.xml.v2;
import java.io.Serializable;
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.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for XmlEnumFields complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="XmlEnumFields">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="XmlEnumField" type="{http://atlasmap.io/xml/v2}XmlEnumField" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "XmlEnumFields", propOrder = {
"xmlEnumField"
})
public class XmlEnumFields implements Serializable
{
private final static long serialVersionUID = 1L;
@XmlElement(name = "XmlEnumField")
protected List xmlEnumField;
/**
* Gets the value of the xmlEnumField 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 xmlEnumField property.
*
*
* For example, to add a new item, do as follows:
*
* getXmlEnumField().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link XmlEnumField }
*
*
*/
public List getXmlEnumField() {
if (xmlEnumField == null) {
xmlEnumField = new ArrayList();
}
return this.xmlEnumField;
}
public boolean equals(Object object) {
if ((object == null)||(this.getClass()!= object.getClass())) {
return false;
}
if (this == object) {
return true;
}
final XmlEnumFields that = ((XmlEnumFields) object);
{
List leftXmlEnumField;
leftXmlEnumField = (((this.xmlEnumField!= null)&&(!this.xmlEnumField.isEmpty()))?this.getXmlEnumField():null);
List rightXmlEnumField;
rightXmlEnumField = (((that.xmlEnumField!= null)&&(!that.xmlEnumField.isEmpty()))?that.getXmlEnumField():null);
if ((this.xmlEnumField!= null)&&(!this.xmlEnumField.isEmpty())) {
if ((that.xmlEnumField!= null)&&(!that.xmlEnumField.isEmpty())) {
if (!leftXmlEnumField.equals(rightXmlEnumField)) {
return false;
}
} else {
return false;
}
} else {
if ((that.xmlEnumField!= null)&&(!that.xmlEnumField.isEmpty())) {
return false;
}
}
}
return true;
}
public int hashCode() {
int currentHashCode = 1;
{
currentHashCode = (currentHashCode* 31);
List theXmlEnumField;
theXmlEnumField = (((this.xmlEnumField!= null)&&(!this.xmlEnumField.isEmpty()))?this.getXmlEnumField():null);
if ((this.xmlEnumField!= null)&&(!this.xmlEnumField.isEmpty())) {
currentHashCode += theXmlEnumField.hashCode();
}
}
return currentHashCode;
}
}