All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.code.facebookapi.schema.Translation Maven / Gradle / Ivy

There is a newer version: 3.0.4
Show newest version
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2009.12.02 at 03:06:46 PM PST 
//


package com.google.code.facebookapi.schema;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.jvnet.jaxb2_commons.lang.Equals;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.ToString;
import org.jvnet.jaxb2_commons.lang.builder.JAXBEqualsBuilder;
import org.jvnet.jaxb2_commons.lang.builder.JAXBHashCodeBuilder;
import org.jvnet.jaxb2_commons.lang.builder.JAXBToStringBuilder;


/**
 * 

Java class for translation complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="translation">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="native_string" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="description" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="native_hash" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="translation" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="locale" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="approval_status" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="pre_hash_string" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="best_string" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="is_translatable" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "translation", propOrder = { "nativeString", "description", "nativeHash", "translation", "locale", "approvalStatus", "preHashString", "bestString", "isTranslatable" }) public class Translation implements Equals, HashCode, ToString { @XmlElement(name = "native_string", required = true) protected String nativeString; @XmlElement(required = true) protected String description; @XmlElement(name = "native_hash", required = true) protected String nativeHash; @XmlElement(required = true) protected String translation; @XmlElement(required = true) protected String locale; @XmlElement(name = "approval_status", required = true) protected String approvalStatus; @XmlElement(name = "pre_hash_string", required = true) protected String preHashString; @XmlElement(name = "best_string", required = true) protected String bestString; @XmlElement(name = "is_translatable") protected int isTranslatable; /** * Gets the value of the nativeString property. * * @return * possible object is * {@link String } * */ public String getNativeString() { return nativeString; } /** * Sets the value of the nativeString property. * * @param value * allowed object is * {@link String } * */ public void setNativeString(String value) { this.nativeString = 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 nativeHash property. * * @return * possible object is * {@link String } * */ public String getNativeHash() { return nativeHash; } /** * Sets the value of the nativeHash property. * * @param value * allowed object is * {@link String } * */ public void setNativeHash(String value) { this.nativeHash = value; } /** * Gets the value of the translation property. * * @return * possible object is * {@link String } * */ public String getTranslation() { return translation; } /** * Sets the value of the translation property. * * @param value * allowed object is * {@link String } * */ public void setTranslation(String value) { this.translation = value; } /** * Gets the value of the locale property. * * @return * possible object is * {@link String } * */ public String getLocale() { return locale; } /** * Sets the value of the locale property. * * @param value * allowed object is * {@link String } * */ public void setLocale(String value) { this.locale = value; } /** * Gets the value of the approvalStatus property. * * @return * possible object is * {@link String } * */ public String getApprovalStatus() { return approvalStatus; } /** * Sets the value of the approvalStatus property. * * @param value * allowed object is * {@link String } * */ public void setApprovalStatus(String value) { this.approvalStatus = value; } /** * Gets the value of the preHashString property. * * @return * possible object is * {@link String } * */ public String getPreHashString() { return preHashString; } /** * Sets the value of the preHashString property. * * @param value * allowed object is * {@link String } * */ public void setPreHashString(String value) { this.preHashString = value; } /** * Gets the value of the bestString property. * * @return * possible object is * {@link String } * */ public String getBestString() { return bestString; } /** * Sets the value of the bestString property. * * @param value * allowed object is * {@link String } * */ public void setBestString(String value) { this.bestString = value; } /** * Gets the value of the isTranslatable property. * */ public int getIsTranslatable() { return isTranslatable; } /** * Sets the value of the isTranslatable property. * */ public void setIsTranslatable(int value) { this.isTranslatable = value; } public void toString(ToStringBuilder toStringBuilder) { { String theNativeString; theNativeString = this.getNativeString(); toStringBuilder.append("nativeString", theNativeString); } { String theDescription; theDescription = this.getDescription(); toStringBuilder.append("description", theDescription); } { String theNativeHash; theNativeHash = this.getNativeHash(); toStringBuilder.append("nativeHash", theNativeHash); } { String theTranslation; theTranslation = this.getTranslation(); toStringBuilder.append("translation", theTranslation); } { String theLocale; theLocale = this.getLocale(); toStringBuilder.append("locale", theLocale); } { String theApprovalStatus; theApprovalStatus = this.getApprovalStatus(); toStringBuilder.append("approvalStatus", theApprovalStatus); } { String thePreHashString; thePreHashString = this.getPreHashString(); toStringBuilder.append("preHashString", thePreHashString); } { String theBestString; theBestString = this.getBestString(); toStringBuilder.append("bestString", theBestString); } { int theIsTranslatable; theIsTranslatable = this.getIsTranslatable(); toStringBuilder.append("isTranslatable", theIsTranslatable); } } public String toString() { final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this); toString(toStringBuilder); return toStringBuilder.toString(); } public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof Translation)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } final Translation that = ((Translation) object); equalsBuilder.append(this.getNativeString(), that.getNativeString()); equalsBuilder.append(this.getDescription(), that.getDescription()); equalsBuilder.append(this.getNativeHash(), that.getNativeHash()); equalsBuilder.append(this.getTranslation(), that.getTranslation()); equalsBuilder.append(this.getLocale(), that.getLocale()); equalsBuilder.append(this.getApprovalStatus(), that.getApprovalStatus()); equalsBuilder.append(this.getPreHashString(), that.getPreHashString()); equalsBuilder.append(this.getBestString(), that.getBestString()); equalsBuilder.append(this.getIsTranslatable(), that.getIsTranslatable()); } public boolean equals(Object object) { if (!(object instanceof Translation)) { return false; } if (this == object) { return true; } final EqualsBuilder equalsBuilder = new JAXBEqualsBuilder(); equals(object, equalsBuilder); return equalsBuilder.isEquals(); } public void hashCode(HashCodeBuilder hashCodeBuilder) { hashCodeBuilder.append(this.getNativeString()); hashCodeBuilder.append(this.getDescription()); hashCodeBuilder.append(this.getNativeHash()); hashCodeBuilder.append(this.getTranslation()); hashCodeBuilder.append(this.getLocale()); hashCodeBuilder.append(this.getApprovalStatus()); hashCodeBuilder.append(this.getPreHashString()); hashCodeBuilder.append(this.getBestString()); hashCodeBuilder.append(this.getIsTranslatable()); } public int hashCode() { final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder(); hashCode(hashCodeBuilder); return hashCodeBuilder.toHashCode(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy