
org.unece.cefact.namespaces.standardbusinessdocumentheader.ManifestItem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdp-xsd Show documentation
Show all versions of sdp-xsd Show documentation
XSDer og genererte JAXB-klasser
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016.05.30 at 01:15:57 PM CEST
//
package 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.Equals;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
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.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
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 Equals, HashCode, ToString
{
@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;
}
public String toString() {
final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
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;
}
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
{
String theMimeTypeQualifierCode;
theMimeTypeQualifierCode = this.getMimeTypeQualifierCode();
strategy.appendField(locator, this, "mimeTypeQualifierCode", buffer, theMimeTypeQualifierCode);
}
{
String theUniformResourceIdentifier;
theUniformResourceIdentifier = this.getUniformResourceIdentifier();
strategy.appendField(locator, this, "uniformResourceIdentifier", buffer, theUniformResourceIdentifier);
}
{
String theDescription;
theDescription = this.getDescription();
strategy.appendField(locator, this, "description", buffer, theDescription);
}
{
String theLanguageCode;
theLanguageCode = this.getLanguageCode();
strategy.appendField(locator, this, "languageCode", buffer, theLanguageCode);
}
return buffer;
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if (!(object instanceof ManifestItem)) {
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)) {
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)) {
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)) {
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)) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = 1;
{
String theMimeTypeQualifierCode;
theMimeTypeQualifierCode = this.getMimeTypeQualifierCode();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "mimeTypeQualifierCode", theMimeTypeQualifierCode), currentHashCode, theMimeTypeQualifierCode);
}
{
String theUniformResourceIdentifier;
theUniformResourceIdentifier = this.getUniformResourceIdentifier();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "uniformResourceIdentifier", theUniformResourceIdentifier), currentHashCode, theUniformResourceIdentifier);
}
{
String theDescription;
theDescription = this.getDescription();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "description", theDescription), currentHashCode, theDescription);
}
{
String theLanguageCode;
theLanguageCode = this.getLanguageCode();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "languageCode", theLanguageCode), currentHashCode, theLanguageCode);
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
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 - 2025 Weber Informatics LLC | Privacy Policy