
org.ow2.easywsdl.extensions.complexwsdl.Document Maven / Gradle / Ivy
The newest version!
//
// Ce fichier a été généré par l'implémentation de référence JavaTM Architecture for XML Binding (JAXB), v2.3.0
// Voir https://javaee.github.io/jaxb-v2/
// Toute modification apportée à ce fichier sera perdue lors de la recompilation du schéma source.
// Généré le : 2023.04.04 à 04:53:45 PM CEST
//
package org.ow2.easywsdl.extensions.complexwsdl;
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 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;
import org.ow2.easywsdl.schema.org.w3._2001.xmlschema.Schema;
import org.ow2.easywsdl.wsdl.org.w3.ns.wsdl.DescriptionType;
import org.ow2.easywsdl.wsdl.org.xmlsoap.schemas.wsdl.TDefinitions;
/**
* Classe Java pour Document complex type.
*
*
Le fragment de schéma suivant indique le contenu attendu figurant dans cette classe.
*
*
* <complexType name="Document">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <choice>
* <element name="description" type="{http://www.w3.org/ns/wsdl}DescriptionType"/>
* <element name="definition" type="{http://schemas.xmlsoap.org/wsdl/}tDefinitions"/>
* <element ref="{http://www.w3.org/2001/XMLSchema}schema"/>
* </choice>
* <attribute name="location" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
* <attribute name="originalLocation" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Document", propOrder = {
"description",
"definition",
"schema"
})
public class Document implements Equals2, HashCode2, ToString2
{
protected DescriptionType description;
protected TDefinitions definition;
@XmlElement(namespace = "http://www.w3.org/2001/XMLSchema")
protected Schema schema;
@XmlAttribute(name = "location")
@XmlSchemaType(name = "anyURI")
protected String location;
@XmlAttribute(name = "originalLocation")
@XmlSchemaType(name = "anyURI")
protected String originalLocation;
/**
* Obtient la valeur de la propriété description.
*
* @return
* possible object is
* {@link DescriptionType }
*
*/
public DescriptionType getDescription() {
return description;
}
/**
* Définit la valeur de la propriété description.
*
* @param value
* allowed object is
* {@link DescriptionType }
*
*/
public void setDescription(DescriptionType value) {
this.description = value;
}
/**
* Obtient la valeur de la propriété definition.
*
* @return
* possible object is
* {@link TDefinitions }
*
*/
public TDefinitions getDefinition() {
return definition;
}
/**
* Définit la valeur de la propriété definition.
*
* @param value
* allowed object is
* {@link TDefinitions }
*
*/
public void setDefinition(TDefinitions value) {
this.definition = value;
}
/**
* Obtient la valeur de la propriété schema.
*
* @return
* possible object is
* {@link Schema }
*
*/
public Schema getSchema() {
return schema;
}
/**
* Définit la valeur de la propriété schema.
*
* @param value
* allowed object is
* {@link Schema }
*
*/
public void setSchema(Schema value) {
this.schema = value;
}
/**
* Obtient la valeur de la propriété location.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLocation() {
return location;
}
/**
* Définit la valeur de la propriété location.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLocation(String value) {
this.location = value;
}
/**
* Obtient la valeur de la propriété originalLocation.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOriginalLocation() {
return originalLocation;
}
/**
* Définit la valeur de la propriété originalLocation.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOriginalLocation(String value) {
this.originalLocation = value;
}
public String toString() {
final ToStringStrategy2 strategy = JAXBToStringStrategy.INSTANCE;
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) {
{
DescriptionType theDescription;
theDescription = this.getDescription();
strategy.appendField(locator, this, "description", buffer, theDescription, (this.description!= null));
}
{
TDefinitions theDefinition;
theDefinition = this.getDefinition();
strategy.appendField(locator, this, "definition", buffer, theDefinition, (this.definition!= null));
}
{
Schema theSchema;
theSchema = this.getSchema();
strategy.appendField(locator, this, "schema", buffer, theSchema, (this.schema!= null));
}
{
String theLocation;
theLocation = this.getLocation();
strategy.appendField(locator, this, "location", buffer, theLocation, (this.location!= null));
}
{
String theOriginalLocation;
theOriginalLocation = this.getOriginalLocation();
strategy.appendField(locator, this, "originalLocation", buffer, theOriginalLocation, (this.originalLocation!= 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 Document that = ((Document) object);
{
DescriptionType lhsDescription;
lhsDescription = this.getDescription();
DescriptionType 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;
}
}
{
TDefinitions lhsDefinition;
lhsDefinition = this.getDefinition();
TDefinitions rhsDefinition;
rhsDefinition = that.getDefinition();
if (!strategy.equals(LocatorUtils.property(thisLocator, "definition", lhsDefinition), LocatorUtils.property(thatLocator, "definition", rhsDefinition), lhsDefinition, rhsDefinition, (this.definition!= null), (that.definition!= null))) {
return false;
}
}
{
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;
}
}
{
String lhsLocation;
lhsLocation = this.getLocation();
String rhsLocation;
rhsLocation = that.getLocation();
if (!strategy.equals(LocatorUtils.property(thisLocator, "location", lhsLocation), LocatorUtils.property(thatLocator, "location", rhsLocation), lhsLocation, rhsLocation, (this.location!= null), (that.location!= null))) {
return false;
}
}
{
String lhsOriginalLocation;
lhsOriginalLocation = this.getOriginalLocation();
String rhsOriginalLocation;
rhsOriginalLocation = that.getOriginalLocation();
if (!strategy.equals(LocatorUtils.property(thisLocator, "originalLocation", lhsOriginalLocation), LocatorUtils.property(thatLocator, "originalLocation", rhsOriginalLocation), lhsOriginalLocation, rhsOriginalLocation, (this.originalLocation!= null), (that.originalLocation!= null))) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) {
int currentHashCode = 1;
{
DescriptionType theDescription;
theDescription = this.getDescription();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "description", theDescription), currentHashCode, theDescription, (this.description!= null));
}
{
TDefinitions theDefinition;
theDefinition = this.getDefinition();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "definition", theDefinition), currentHashCode, theDefinition, (this.definition!= null));
}
{
Schema theSchema;
theSchema = this.getSchema();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "schema", theSchema), currentHashCode, theSchema, (this.schema!= null));
}
{
String theLocation;
theLocation = this.getLocation();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "location", theLocation), currentHashCode, theLocation, (this.location!= null));
}
{
String theOriginalLocation;
theOriginalLocation = this.getOriginalLocation();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "originalLocation", theOriginalLocation), currentHashCode, theOriginalLocation, (this.originalLocation!= null));
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy