no.digipost.org.oasis_open.docs.ebxml_msg.ebms.v3_0.ns.core._200704.PartInfo Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0
// See https://javaee.github.io/jaxb-v2/
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2021.12.01 at 12:54:39 PM UTC
//
package no.digipost.org.oasis_open.docs.ebxml_msg.ebms.v3_0.ns.core._200704;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
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 PartInfo complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="PartInfo">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Schema" type="{http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/}Schema" minOccurs="0"/>
* <element name="Description" type="{http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/}Description" minOccurs="0"/>
* <element name="PartProperties" type="{http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/}PartProperties" minOccurs="0"/>
* </sequence>
* <attribute name="href" type="{http://www.w3.org/2001/XMLSchema}token" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PartInfo", propOrder = {
"schema",
"description",
"partProperties"
})
public class PartInfo implements Equals2, HashCode2, ToString2
{
@XmlElement(name = "Schema")
protected Schema schema;
@XmlElement(name = "Description")
protected Description description;
@XmlElement(name = "PartProperties")
protected PartProperties partProperties;
@XmlAttribute(name = "href")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlSchemaType(name = "token")
protected String href;
/**
* Default no-arg constructor
*
*/
public PartInfo() {
super();
}
/**
* Fully-initialising value constructor
*
*/
public PartInfo(final Schema schema, final Description description, final PartProperties partProperties, final String href) {
this.schema = schema;
this.description = description;
this.partProperties = partProperties;
this.href = href;
}
/**
* Gets the value of the schema property.
*
* @return
* possible object is
* {@link Schema }
*
*/
public Schema getSchema() {
return schema;
}
/**
* Sets the value of the schema property.
*
* @param value
* allowed object is
* {@link Schema }
*
*/
public void setSchema(Schema value) {
this.schema = value;
}
/**
* Gets the value of the description property.
*
* @return
* possible object is
* {@link Description }
*
*/
public Description getDescription() {
return description;
}
/**
* Sets the value of the description property.
*
* @param value
* allowed object is
* {@link Description }
*
*/
public void setDescription(Description value) {
this.description = value;
}
/**
* Gets the value of the partProperties property.
*
* @return
* possible object is
* {@link PartProperties }
*
*/
public PartProperties getPartProperties() {
return partProperties;
}
/**
* Sets the value of the partProperties property.
*
* @param value
* allowed object is
* {@link PartProperties }
*
*/
public void setPartProperties(PartProperties value) {
this.partProperties = value;
}
/**
* Gets the value of the href property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getHref() {
return href;
}
/**
* Sets the value of the href property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setHref(String value) {
this.href = value;
}
public String toString() {
final ToStringStrategy2 strategy = JAXBToStringStrategy.INSTANCE2;
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) {
{
Schema theSchema;
theSchema = this.getSchema();
strategy.appendField(locator, this, "schema", buffer, theSchema, (this.schema!= null));
}
{
Description theDescription;
theDescription = this.getDescription();
strategy.appendField(locator, this, "description", buffer, theDescription, (this.description!= null));
}
{
PartProperties thePartProperties;
thePartProperties = this.getPartProperties();
strategy.appendField(locator, this, "partProperties", buffer, thePartProperties, (this.partProperties!= null));
}
{
String theHref;
theHref = this.getHref();
strategy.appendField(locator, this, "href", buffer, theHref, (this.href!= 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 PartInfo that = ((PartInfo) object);
{
Schema lhsSchema;
lhsSchema = this.getSchema();
Schema rhsSchema;
rhsSchema = that.getSchema();
if (!strategy.equals(LocatorUtils.property(thisLocator, "schema", lhsSchema), LocatorUtils.property(thatLocator, "schema", rhsSchema), lhsSchema, rhsSchema, (this.schema!= null), (that.schema!= null))) {
return false;
}
}
{
Description lhsDescription;
lhsDescription = this.getDescription();
Description 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;
}
}
{
PartProperties lhsPartProperties;
lhsPartProperties = this.getPartProperties();
PartProperties rhsPartProperties;
rhsPartProperties = that.getPartProperties();
if (!strategy.equals(LocatorUtils.property(thisLocator, "partProperties", lhsPartProperties), LocatorUtils.property(thatLocator, "partProperties", rhsPartProperties), lhsPartProperties, rhsPartProperties, (this.partProperties!= null), (that.partProperties!= null))) {
return false;
}
}
{
String lhsHref;
lhsHref = this.getHref();
String rhsHref;
rhsHref = that.getHref();
if (!strategy.equals(LocatorUtils.property(thisLocator, "href", lhsHref), LocatorUtils.property(thatLocator, "href", rhsHref), lhsHref, rhsHref, (this.href!= null), (that.href!= null))) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE2;
return equals(null, null, object, strategy);
}
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) {
int currentHashCode = 1;
{
Schema theSchema;
theSchema = this.getSchema();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "schema", theSchema), currentHashCode, theSchema, (this.schema!= null));
}
{
Description theDescription;
theDescription = this.getDescription();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "description", theDescription), currentHashCode, theDescription, (this.description!= null));
}
{
PartProperties thePartProperties;
thePartProperties = this.getPartProperties();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "partProperties", thePartProperties), currentHashCode, thePartProperties, (this.partProperties!= null));
}
{
String theHref;
theHref = this.getHref();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "href", theHref), currentHashCode, theHref, (this.href!= null));
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE2;
return this.hashCode(null, strategy);
}
public PartInfo withSchema(Schema value) {
setSchema(value);
return this;
}
public PartInfo withDescription(Description value) {
setDescription(value);
return this;
}
public PartInfo withPartProperties(PartProperties value) {
setPartProperties(value);
return this;
}
public PartInfo withHref(String value) {
setHref(value);
return this;
}
}