//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
// 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: 2009.07.03 at 05:59:50 PM CEST
//
package com.sun.jersey.json.impl.rim;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
/**
* Represents information about the version of the object it is describing.
*
* <p>Java class for VersionInfoType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="VersionInfoType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="versionName" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="comment" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "VersionInfoType")
public class VersionInfoType {
@XmlAttribute
protected String versionName;
@XmlAttribute
protected String comment;
/**
* Gets the value of the versionName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getVersionName() {
return versionName;
}
/**
* Sets the value of the versionName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setVersionName(String value) {
this.versionName = value;
}
/**
* Gets the value of the comment property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getComment() {
return comment;
}
/**
* Sets the value of the comment property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setComment(String value) {
this.comment = value;
}
@Override
public boolean equals(Object obj) {
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
final VersionInfoType other = (VersionInfoType) obj;
if ((this.versionName == null) ? (other.versionName != null) : !this.versionName.equals(other.versionName)) {
return false;
}
if ((this.comment == null) ? (other.comment != null) : !this.comment.equals(other.comment)) {
return false;
}
return true;
}
@Override
public int hashCode() {
int hash = 7;
hash = 59 * hash + (this.versionName != null ? this.versionName.hashCode() : 0);
hash = 59 * hash + (this.comment != null ? this.comment.hashCode() : 0);
return hash;
}
@Override
public String toString() {
return String.format("{versionName:%s, comment: %s}", versionName, comment);
}
}