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;
 
 import java.util.List;

Java class for FacebookApiException complex type.

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

 <complexType name="FacebookApiException">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="error_code" type="{http://www.w3.org/2001/XMLSchema}int"/>
         <element name="error_msg" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="request_args">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence maxOccurs="unbounded" minOccurs="0">
                   <element name="arg" type="{http://api.facebook.com/1.0/}arg" maxOccurs="unbounded" minOccurs="0"/>
                 </sequence>
                 <attribute name="list" type="{http://www.w3.org/2001/XMLSchema}boolean" />
               </restriction>
             </complexContent>
           </complexType>
         </element>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "FacebookApiException", propOrder = {
     "errorCode",
     "errorMsg",
     "requestArgs"
 })
 public class FacebookApiException
     implements EqualsHashCodeToString
 {
 
     @XmlElement(name = "error_code")
     protected int errorCode;
     @XmlElement(name = "error_msg", required = true)
     protected String errorMsg;
     @XmlElement(name = "request_args", required = true)
     protected FacebookApiException.RequestArgs requestArgs;

    
Gets the value of the errorCode property.
 
     public int getErrorCode() {
         return ;
     }

    
Sets the value of the errorCode property.
 
     public void setErrorCode(int value) {
         this. = value;
     }

    
Gets the value of the errorMsg property.

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

    
Sets the value of the errorMsg property.

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

    
Gets the value of the requestArgs property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the requestArgs property.

Parameters:
value allowed object is
    public void setRequestArgs(FacebookApiException.RequestArgs value) {
        this. = value;
    }
    public void toString(ToStringBuilder toStringBuilder) {
        {
            int theErrorCode;
            theErrorCode = this.getErrorCode();
            toStringBuilder.append("errorCode"theErrorCode);
        }
        {
            String theErrorMsg;
            theErrorMsg = this.getErrorMsg();
            toStringBuilder.append("errorMsg"theErrorMsg);
        }
        {
            FacebookApiException.RequestArgs theRequestArgs;
            theRequestArgs = this.getRequestArgs();
            toStringBuilder.append("requestArgs"theRequestArgs);
        }
    }
    public String toString() {
        final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this);
        toString(toStringBuilder);
        return toStringBuilder.toString();
    }
    public void equals(Object objectEqualsBuilder equalsBuilder) {
        if (!(object instanceof FacebookApiException)) {
            equalsBuilder.appendSuper(false);
            return ;
        }
        if (this == object) {
            return ;
        }
        final FacebookApiException that = ((FacebookApiExceptionobject);
        equalsBuilder.append(this.getErrorCode(), that.getErrorCode());
        equalsBuilder.append(this.getErrorMsg(), that.getErrorMsg());
        equalsBuilder.append(this.getRequestArgs(), that.getRequestArgs());
    }
    public boolean equals(Object object) {
        if (!(object instanceof FacebookApiException)) {
            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.getErrorCode());
        hashCodeBuilder.append(this.getErrorMsg());
        hashCodeBuilder.append(this.getRequestArgs());
    }
    public int hashCode() {
        final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
        hashCode(hashCodeBuilder);
        return hashCodeBuilder.toHashCode();
    }


    

Java class for anonymous complex type.

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

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence maxOccurs="unbounded" minOccurs="0">
         <element name="arg" type="{http://api.facebook.com/1.0/}arg" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
       <attribute name="list" type="{http://www.w3.org/2001/XMLSchema}boolean" />
     </restriction>
   </complexContent>
 </complexType>
 
    @XmlType(name = "", propOrder = {
        "arg"
    })
    public static class RequestArgs
        implements EqualsHashCodeToString
    {
        protected List<Argarg;
        @XmlAttribute
        protected Boolean list;

        
Gets the value of the arg property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the arg property.

For example, to add a new item, do as follows:

    getArg().add(newItem);
 

Objects of the following type(s) are allowed in the list

        public List<ArggetArg() {
            if ( == null) {
                 = new ArrayList<Arg>();
            }
            return this.;
        }

        
Gets the value of the list property.

Returns:
possible object is
        public Boolean isList() {
            return ;
        }

        
Sets the value of the list property.

Parameters:
value allowed object is
        public void setList(Boolean value) {
            this. = value;
        }
        public void toString(ToStringBuilder toStringBuilder) {
            {
                List<ArgtheArg;
                theArg = this.getArg();
                toStringBuilder.append("arg"theArg);
            }
            {
                Boolean theList;
                theList = this.isList();
                toStringBuilder.append("list"theList);
            }
        }
        public String toString() {
            final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this);
            toString(toStringBuilder);
            return toStringBuilder.toString();
        }
        public void equals(Object objectEqualsBuilder equalsBuilder) {
            if (!(object instanceof FacebookApiException.RequestArgs)) {
                equalsBuilder.appendSuper(false);
                return ;
            }
            if (this == object) {
                return ;
            }
            final FacebookApiException.RequestArgs that = ((FacebookApiException.RequestArgsobject);
            equalsBuilder.append(this.getArg(), that.getArg());
            equalsBuilder.append(this.isList(), that.isList());
        }
        public boolean equals(Object object) {
            if (!(object instanceof FacebookApiException.RequestArgs)) {
                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.getArg());
            hashCodeBuilder.append(this.isList());
        }
        public int hashCode() {
            final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
            hashCode(hashCodeBuilder);
            return hashCodeBuilder.toHashCode();
        }
    }
New to GrepCode? Check out our FAQ X