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

no.digipost.org.unece.cefact.namespaces.standardbusinessdocumentheader.ManifestItem Maven / Gradle / Ivy

The newest version!
//
// This file was generated by the Eclipse Implementation of JAXB, v2.3.7 
// See https://eclipse-ee4j.github.io/jaxb-ri 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2024.11.06 at 01:54:33 PM UTC 
//


package no.digipost.org.unece.cefact.namespaces.standardbusinessdocumentheader;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
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.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 ManifestItem complex type. * *

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

 * <complexType name="ManifestItem">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="MimeTypeQualifierCode" type="{http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader}MimeTypeQualifier"/>
 *         <element name="UniformResourceIdentifier" type="{http://www.w3.org/2001/XMLSchema}anyURI"/>
 *         <element name="Description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="LanguageCode" type="{http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader}Language" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ManifestItem", propOrder = { "mimeTypeQualifierCode", "uniformResourceIdentifier", "description", "languageCode" }) public class ManifestItem implements Equals2, HashCode2, ToString2 { @XmlElement(name = "MimeTypeQualifierCode", required = true) protected String mimeTypeQualifierCode; @XmlElement(name = "UniformResourceIdentifier", required = true) @XmlSchemaType(name = "anyURI") protected String uniformResourceIdentifier; @XmlElement(name = "Description") protected String description; @XmlElement(name = "LanguageCode") protected String languageCode; /** * Default no-arg constructor * */ public ManifestItem() { super(); } /** * Fully-initialising value constructor * */ public ManifestItem(final String mimeTypeQualifierCode, final String uniformResourceIdentifier, final String description, final String languageCode) { this.mimeTypeQualifierCode = mimeTypeQualifierCode; this.uniformResourceIdentifier = uniformResourceIdentifier; this.description = description; this.languageCode = languageCode; } /** * Gets the value of the mimeTypeQualifierCode property. * * @return * possible object is * {@link String } * */ public String getMimeTypeQualifierCode() { return mimeTypeQualifierCode; } /** * Sets the value of the mimeTypeQualifierCode property. * * @param value * allowed object is * {@link String } * */ public void setMimeTypeQualifierCode(String value) { this.mimeTypeQualifierCode = value; } /** * Gets the value of the uniformResourceIdentifier property. * * @return * possible object is * {@link String } * */ public String getUniformResourceIdentifier() { return uniformResourceIdentifier; } /** * Sets the value of the uniformResourceIdentifier property. * * @param value * allowed object is * {@link String } * */ public void setUniformResourceIdentifier(String value) { this.uniformResourceIdentifier = value; } /** * Gets the value of the description property. * * @return * possible object is * {@link String } * */ public String getDescription() { return description; } /** * Sets the value of the description property. * * @param value * allowed object is * {@link String } * */ public void setDescription(String value) { this.description = value; } /** * Gets the value of the languageCode property. * * @return * possible object is * {@link String } * */ public String getLanguageCode() { return languageCode; } /** * Sets the value of the languageCode property. * * @param value * allowed object is * {@link String } * */ public void setLanguageCode(String value) { this.languageCode = value; } @Override public String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.getInstance(); final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } @Override 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; } @Override public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { String theMimeTypeQualifierCode; theMimeTypeQualifierCode = this.getMimeTypeQualifierCode(); strategy.appendField(locator, this, "mimeTypeQualifierCode", buffer, theMimeTypeQualifierCode, (this.mimeTypeQualifierCode!= null)); } { String theUniformResourceIdentifier; theUniformResourceIdentifier = this.getUniformResourceIdentifier(); strategy.appendField(locator, this, "uniformResourceIdentifier", buffer, theUniformResourceIdentifier, (this.uniformResourceIdentifier!= null)); } { String theDescription; theDescription = this.getDescription(); strategy.appendField(locator, this, "description", buffer, theDescription, (this.description!= null)); } { String theLanguageCode; theLanguageCode = this.getLanguageCode(); strategy.appendField(locator, this, "languageCode", buffer, theLanguageCode, (this.languageCode!= null)); } return buffer; } @Override 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 ManifestItem that = ((ManifestItem) object); { String lhsMimeTypeQualifierCode; lhsMimeTypeQualifierCode = this.getMimeTypeQualifierCode(); String rhsMimeTypeQualifierCode; rhsMimeTypeQualifierCode = that.getMimeTypeQualifierCode(); if (!strategy.equals(LocatorUtils.property(thisLocator, "mimeTypeQualifierCode", lhsMimeTypeQualifierCode), LocatorUtils.property(thatLocator, "mimeTypeQualifierCode", rhsMimeTypeQualifierCode), lhsMimeTypeQualifierCode, rhsMimeTypeQualifierCode, (this.mimeTypeQualifierCode!= null), (that.mimeTypeQualifierCode!= null))) { return false; } } { String lhsUniformResourceIdentifier; lhsUniformResourceIdentifier = this.getUniformResourceIdentifier(); String rhsUniformResourceIdentifier; rhsUniformResourceIdentifier = that.getUniformResourceIdentifier(); if (!strategy.equals(LocatorUtils.property(thisLocator, "uniformResourceIdentifier", lhsUniformResourceIdentifier), LocatorUtils.property(thatLocator, "uniformResourceIdentifier", rhsUniformResourceIdentifier), lhsUniformResourceIdentifier, rhsUniformResourceIdentifier, (this.uniformResourceIdentifier!= null), (that.uniformResourceIdentifier!= null))) { return false; } } { String lhsDescription; lhsDescription = this.getDescription(); String rhsDescription; rhsDescription = that.getDescription(); if (!strategy.equals(LocatorUtils.property(thisLocator, "description", lhsDescription), LocatorUtils.property(thatLocator, "description", rhsDescription), lhsDescription, rhsDescription, (this.description!= null), (that.description!= null))) { return false; } } { String lhsLanguageCode; lhsLanguageCode = this.getLanguageCode(); String rhsLanguageCode; rhsLanguageCode = that.getLanguageCode(); if (!strategy.equals(LocatorUtils.property(thisLocator, "languageCode", lhsLanguageCode), LocatorUtils.property(thatLocator, "languageCode", rhsLanguageCode), lhsLanguageCode, rhsLanguageCode, (this.languageCode!= null), (that.languageCode!= null))) { return false; } } return true; } @Override public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.getInstance(); return equals(null, null, object, strategy); } @Override public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { String theMimeTypeQualifierCode; theMimeTypeQualifierCode = this.getMimeTypeQualifierCode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "mimeTypeQualifierCode", theMimeTypeQualifierCode), currentHashCode, theMimeTypeQualifierCode, (this.mimeTypeQualifierCode!= null)); } { String theUniformResourceIdentifier; theUniformResourceIdentifier = this.getUniformResourceIdentifier(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "uniformResourceIdentifier", theUniformResourceIdentifier), currentHashCode, theUniformResourceIdentifier, (this.uniformResourceIdentifier!= null)); } { String theDescription; theDescription = this.getDescription(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "description", theDescription), currentHashCode, theDescription, (this.description!= null)); } { String theLanguageCode; theLanguageCode = this.getLanguageCode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "languageCode", theLanguageCode), currentHashCode, theLanguageCode, (this.languageCode!= null)); } return currentHashCode; } @Override public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.getInstance(); return this.hashCode(null, strategy); } public ManifestItem withMimeTypeQualifierCode(String value) { setMimeTypeQualifierCode(value); return this; } public ManifestItem withUniformResourceIdentifier(String value) { setUniformResourceIdentifier(value); return this; } public ManifestItem withDescription(String value) { setDescription(value); return this; } public ManifestItem withLanguageCode(String value) { setLanguageCode(value); return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy