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

org.somda.sdc.dpws.wsdl.model.TMessage Maven / Gradle / Ivy


package org.somda.sdc.dpws.wsdl.model;

import java.util.ArrayList;
import java.util.List;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlSchemaType;
import jakarta.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.jvnet.jaxb.lang.CopyStrategy;
import org.jvnet.jaxb.lang.CopyTo;
import org.jvnet.jaxb.lang.JAXBCopyStrategy;
import org.jvnet.jaxb.lang.JAXBToStringStrategy;
import org.jvnet.jaxb.lang.ToString;
import org.jvnet.jaxb.lang.ToStringStrategy;
import org.jvnet.jaxb.locator.ObjectLocator;
import org.jvnet.jaxb.locator.util.LocatorUtils;


/**
 * 

Java class for tMessage complex type

. * *

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

* *
{@code
 * 
 *   
 *     
 *       
 *         
 *       
 *       
 *     
 *   
 * 
 * }
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "tMessage", namespace = "http://schemas.xmlsoap.org/wsdl/", propOrder = { "part" }) public class TMessage extends TExtensibleDocumented implements Cloneable, CopyTo, ToString { @XmlElement(namespace = "http://schemas.xmlsoap.org/wsdl/") protected List part; @XmlAttribute(name = "name", required = true) @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "NCName") protected String name; /** * Gets the value of the part 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 part property.

* *

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

*
     * getPart().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link TPart } *

* * * @return * The value of the part property. */ public List getPart() { if (part == null) { part = new ArrayList<>(); } return this.part; } /** * 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; } public void setPart(List value) { this.part = null; if (value!= null) { List draftl = this.getPart(); draftl.addAll(value); } } @Override public boolean equals(Object object) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } if (!super.equals(object)) { return false; } final TMessage that = ((TMessage) object); { List leftPart; leftPart = (((this.part!= null)&&(!this.part.isEmpty()))?this.getPart():null); List rightPart; rightPart = (((that.part!= null)&&(!that.part.isEmpty()))?that.getPart():null); if ((this.part!= null)&&(!this.part.isEmpty())) { if ((that.part!= null)&&(!that.part.isEmpty())) { if (!leftPart.equals(rightPart)) { return false; } } else { return false; } } else { if ((that.part!= null)&&(!that.part.isEmpty())) { return false; } } } { String leftName; leftName = this.getName(); String rightName; rightName = that.getName(); if (this.name!= null) { if (that.name!= null) { if (!leftName.equals(rightName)) { return false; } } else { return false; } } else { if (that.name!= null) { return false; } } } return true; } @Override public int hashCode() { int currentHashCode = 1; currentHashCode = ((currentHashCode* 31)+ super.hashCode()); { currentHashCode = (currentHashCode* 31); List thePart; thePart = (((this.part!= null)&&(!this.part.isEmpty()))?this.getPart():null); if ((this.part!= null)&&(!this.part.isEmpty())) { currentHashCode += thePart.hashCode(); } } { currentHashCode = (currentHashCode* 31); String theName; theName = this.getName(); if (this.name!= null) { currentHashCode += theName.hashCode(); } } return currentHashCode; } @Override public String toString() { final ToStringStrategy strategy = JAXBToStringStrategy.getInstance(); final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } @Override public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } @Override public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { super.appendFields(locator, buffer, strategy); { List thePart; thePart = (((this.part!= null)&&(!this.part.isEmpty()))?this.getPart():null); strategy.appendField(locator, this, "part", buffer, thePart, ((this.part!= null)&&(!this.part.isEmpty()))); } { String theName; theName = this.getName(); strategy.appendField(locator, this, "name", buffer, theName, (this.name!= null)); } return buffer; } @Override public Object clone() { return copyTo(createNewInstance()); } @Override public Object copyTo(Object target) { final CopyStrategy strategy = JAXBCopyStrategy.getInstance(); return copyTo(null, target, strategy); } @Override public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); super.copyTo(locator, draftCopy, strategy); if (draftCopy instanceof TMessage) { final TMessage copy = ((TMessage) draftCopy); { Boolean partShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, ((this.part!= null)&&(!this.part.isEmpty()))); if (partShouldBeCopiedAndSet == Boolean.TRUE) { List sourcePart; sourcePart = (((this.part!= null)&&(!this.part.isEmpty()))?this.getPart():null); @SuppressWarnings("unchecked") List copyPart = ((List ) strategy.copy(LocatorUtils.property(locator, "part", sourcePart), sourcePart, ((this.part!= null)&&(!this.part.isEmpty())))); copy.setPart(copyPart); } else { if (partShouldBeCopiedAndSet == Boolean.FALSE) { copy.part = 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; } } } } return draftCopy; } @Override public Object createNewInstance() { return new TMessage(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy