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 user_info complex type.

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

 <complexType name="user_info">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="title" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="type" type="{http://www.w3.org/2001/XMLSchema}int"/>
         <element name="info_fields">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence maxOccurs="unbounded" minOccurs="0">
                   <element name="info_field" type="{http://api.facebook.com/1.0/}info_field" 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 = "user_info", propOrder = {
     "title",
     "type",
     "infoFields"
 })
 public class UserInfo
     implements EqualsHashCodeToString
 {
 
     @XmlElement(required = true)
     protected String title;
     protected int type;
     @XmlElement(name = "info_fields", required = true)
     protected UserInfo.InfoFields infoFields;

    
Gets the value of the title property.

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

    
Sets the value of the title property.

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

    
Gets the value of the type property.
    public int getType() {
        return ;
    }

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

    
Gets the value of the infoFields property.

Returns:
possible object is
    public UserInfo.InfoFields getInfoFields() {
        return ;
    }

    
Sets the value of the infoFields property.

Parameters:
value allowed object is
    public void setInfoFields(UserInfo.InfoFields value) {
        this. = value;
    }
    public void toString(ToStringBuilder toStringBuilder) {
        {
            String theTitle;
            theTitle = this.getTitle();
            toStringBuilder.append("title"theTitle);
        }
        {
            int theType;
            theType = this.getType();
            toStringBuilder.append("type"theType);
        }
        {
            UserInfo.InfoFields theInfoFields;
            theInfoFields = this.getInfoFields();
            toStringBuilder.append("infoFields"theInfoFields);
        }
    }
    public String toString() {
        final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this);
        toString(toStringBuilder);
        return toStringBuilder.toString();
    }
    public void equals(Object objectEqualsBuilder equalsBuilder) {
        if (!(object instanceof UserInfo)) {
            equalsBuilder.appendSuper(false);
            return ;
        }
        if (this == object) {
            return ;
        }
        final UserInfo that = ((UserInfoobject);
        equalsBuilder.append(this.getTitle(), that.getTitle());
        equalsBuilder.append(this.getType(), that.getType());
        equalsBuilder.append(this.getInfoFields(), that.getInfoFields());
    }
    public boolean equals(Object object) {
        if (!(object instanceof UserInfo)) {
            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.getTitle());
        hashCodeBuilder.append(this.getType());
        hashCodeBuilder.append(this.getInfoFields());
    }
    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="info_field" type="{http://api.facebook.com/1.0/}info_field" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
       <attribute name="list" type="{http://www.w3.org/2001/XMLSchema}boolean" />
     </restriction>
   </complexContent>
 </complexType>
 
    @XmlType(name = "", propOrder = {
        "infoField"
    })
    public static class InfoFields
        implements EqualsHashCodeToString
    {
        @XmlElement(name = "info_field")
        protected List<InfoFieldinfoField;
        @XmlAttribute
        protected Boolean list;

        
Gets the value of the infoField 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 infoField property.

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

    getInfoField().add(newItem);
 

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

        public List<InfoFieldgetInfoField() {
            if ( == null) {
                 = new ArrayList<InfoField>();
            }
            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<InfoFieldtheInfoField;
                theInfoField = this.getInfoField();
                toStringBuilder.append("infoField"theInfoField);
            }
            {
                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 UserInfo.InfoFields)) {
                equalsBuilder.appendSuper(false);
                return ;
            }
            if (this == object) {
                return ;
            }
            final UserInfo.InfoFields that = ((UserInfo.InfoFieldsobject);
            equalsBuilder.append(this.getInfoField(), that.getInfoField());
            equalsBuilder.append(this.isList(), that.isList());
        }
        public boolean equals(Object object) {
            if (!(object instanceof UserInfo.InfoFields)) {
                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.getInfoField());
            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