// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-2 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2015.08.05 at 03:54:57 PM CEST // package com.ptc.tifworkbench.jaxbbinding; 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.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; /** * <p>Java class for ReportDefinition complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="ReportDefinition"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="description" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="query" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="recipe-params" type="{http://www.w3.org/2001/XMLSchema}string"/> * </sequence> * <attribute name="admin" type="{http://www.ptc.com/integrity-solution}YesNo" /> * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> * <attribute name="share-groups" type="{http://www.w3.org/2001/XMLSchema}string" /> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ReportDefinition", propOrder = { "description", "query", "recipeParams" }) public class ReportDefinition implements Equals, HashCode, ToString { @XmlElement(required = true) protected String description; @XmlElement(required = true) protected String query; @XmlElement(name = "recipe-params", required = true) protected String recipeParams; @XmlAttribute(name = "admin") protected YesNo admin; @XmlAttribute(name = "name") protected String name; @XmlAttribute(name = "share-groups") protected String shareGroups; /** * 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 query property. * * @return * possible object is * {@link String } * */ public String getQuery() { return query; } /** * Sets the value of the query property. * * @param value * allowed object is * {@link String } * */ public void setQuery(String value) { this.query = value; } /** * Gets the value of the recipeParams property. * * @return * possible object is * {@link String } * */ public String getRecipeParams() { return recipeParams; } /** * Sets the value of the recipeParams property. * * @param value * allowed object is * {@link String } * */ public void setRecipeParams(String value) { this.recipeParams = value; } /** * Gets the value of the admin property. * * @return * possible object is * {@link YesNo } * */ public YesNo getAdmin() { return admin; } /** * Sets the value of the admin property. * * @param value * allowed object is * {@link YesNo } * */ public void setAdmin(YesNo value) { this.admin = value; } /** * 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; } /** * Gets the value of the shareGroups property. * * @return * possible object is * {@link String } * */ public String getShareGroups() { return shareGroups; } /** * Sets the value of the shareGroups property. * * @param value * allowed object is * {@link String } * */ public void setShareGroups(String value) { this.shareGroups = value; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof ReportDefinition)) { return false; } if (this == object) { return true; } final ReportDefinition that = ((ReportDefinition) object); { 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 lhsQuery; lhsQuery = this.getQuery(); String rhsQuery; rhsQuery = that.getQuery(); if (!strategy.equals(LocatorUtils.property(thisLocator, "query", lhsQuery), LocatorUtils.property(thatLocator, "query", rhsQuery), lhsQuery, rhsQuery)) { return false; } } { String lhsRecipeParams; lhsRecipeParams = this.getRecipeParams(); String rhsRecipeParams; rhsRecipeParams = that.getRecipeParams(); if (!strategy.equals(LocatorUtils.property(thisLocator, "recipeParams", lhsRecipeParams), LocatorUtils.property(thatLocator, "recipeParams", rhsRecipeParams), lhsRecipeParams, rhsRecipeParams)) { return false; } } { YesNo lhsAdmin; lhsAdmin = this.getAdmin(); YesNo rhsAdmin; rhsAdmin = that.getAdmin(); if (!strategy.equals(LocatorUtils.property(thisLocator, "admin", lhsAdmin), LocatorUtils.property(thatLocator, "admin", rhsAdmin), lhsAdmin, rhsAdmin)) { return false; } } { String lhsName; lhsName = this.getName(); String rhsName; rhsName = that.getName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "name", lhsName), LocatorUtils.property(thatLocator, "name", rhsName), lhsName, rhsName)) { return false; } } { String lhsShareGroups; lhsShareGroups = this.getShareGroups(); String rhsShareGroups; rhsShareGroups = that.getShareGroups(); if (!strategy.equals(LocatorUtils.property(thisLocator, "shareGroups", lhsShareGroups), LocatorUtils.property(thatLocator, "shareGroups", rhsShareGroups), lhsShareGroups, rhsShareGroups)) { 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 theDescription; theDescription = this.getDescription(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "description", theDescription), currentHashCode, theDescription); } { String theQuery; theQuery = this.getQuery(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "query", theQuery), currentHashCode, theQuery); } { String theRecipeParams; theRecipeParams = this.getRecipeParams(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "recipeParams", theRecipeParams), currentHashCode, theRecipeParams); } { YesNo theAdmin; theAdmin = this.getAdmin(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "admin", theAdmin), currentHashCode, theAdmin); } { String theName; theName = this.getName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "name", theName), currentHashCode, theName); } { String theShareGroups; theShareGroups = this.getShareGroups(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "shareGroups", theShareGroups), currentHashCode, theShareGroups); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } 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 theDescription; theDescription = this.getDescription(); strategy.appendField(locator, this, "description", buffer, theDescription); } { String theQuery; theQuery = this.getQuery(); strategy.appendField(locator, this, "query", buffer, theQuery); } { String theRecipeParams; theRecipeParams = this.getRecipeParams(); strategy.appendField(locator, this, "recipeParams", buffer, theRecipeParams); } { YesNo theAdmin; theAdmin = this.getAdmin(); strategy.appendField(locator, this, "admin", buffer, theAdmin); } { String theName; theName = this.getName(); strategy.appendField(locator, this, "name", buffer, theName); } { String theShareGroups; theShareGroups = this.getShareGroups(); strategy.appendField(locator, this, "shareGroups", buffer, theShareGroups); } return buffer; } }