Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  //
  // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833 
  // 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: 2010.07.14 at 01:45:55 PM PDT 
  //
  
  
  package com.google.code.facebookapi.schema;
 

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>
 
 
 @XmlType(name = "translation", propOrder = {
     "nativeString",
     "description",
     "nativeHash",
     "translation",
     "locale",
     "approvalStatus",
     "preHashString",
     "bestString",
     "isTranslatable"
 })
 public class Translation
     implements EqualsHashCodeToString
 {
 
     @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.

Returns:
possible object is
 
     public String getNativeString() {
         return ;
     }

    
Sets the value of the nativeString property.

Parameters:
value allowed object is
    public void setNativeString(String value) {
        this. = value;
    }

    
Gets the value of the description property.

Returns:
possible object is
    public String getDescription() {
        return ;
    }

    
Sets the value of the description property.

Parameters:
value allowed object is
    public void setDescription(String value) {
        this. = value;
    }

    
Gets the value of the nativeHash property.

Returns:
possible object is
    public String getNativeHash() {
        return ;
    }

    
Sets the value of the nativeHash property.

Parameters:
value allowed object is
    public void setNativeHash(String value) {
        this. = value;
    }

    
Gets the value of the translation property.

Returns:
possible object is
    public String getTranslation() {
        return ;
    }

    
Sets the value of the translation property.

Parameters:
value allowed object is
    public void setTranslation(String value) {
        this. = value;
    }

    
Gets the value of the locale property.

Returns:
possible object is
    public String getLocale() {
        return ;
    }

    
Sets the value of the locale property.

Parameters:
value allowed object is
    public void setLocale(String value) {
        this. = value;
    }

    
Gets the value of the approvalStatus property.

Returns:
possible object is
    public String getApprovalStatus() {
        return ;
    }

    
Sets the value of the approvalStatus property.

Parameters:
value allowed object is
    public void setApprovalStatus(String value) {
        this. = value;
    }

    
Gets the value of the preHashString property.

Returns:
possible object is
    public String getPreHashString() {
        return ;
    }

    
Sets the value of the preHashString property.

Parameters:
value allowed object is
    public void setPreHashString(String value) {
        this. = value;
    }

    
Gets the value of the bestString property.

Returns:
possible object is
    public String getBestString() {
        return ;
    }

    
Sets the value of the bestString property.

Parameters:
value allowed object is
    public void setBestString(String value) {
        this. = value;
    }

    
Gets the value of the isTranslatable property.
    public int getIsTranslatable() {
        return ;
    }

    
Sets the value of the isTranslatable property.
    public void setIsTranslatable(int value) {
        this. = 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 objectEqualsBuilder equalsBuilder) {
        if (!(object instanceof Translation)) {
            equalsBuilder.appendSuper(false);
            return ;
        }
        if (this == object) {
            return ;
        }
        final Translation that = ((Translationobject);
        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(objectequalsBuilder);
        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();
    }
New to GrepCode? Check out our FAQ X