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

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

 <complexType name="group_member">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="uid" type="{http://api.facebook.com/1.0/}uid"/>
         <element name="gid" type="{http://api.facebook.com/1.0/}gid"/>
         <element name="positions">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence maxOccurs="unbounded" minOccurs="0">
                   <element name="member_type" type="{http://api.facebook.com/1.0/}member_type" 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 = "group_member", propOrder = {
     "uid",
     "gid",
     "positions"
 })
 public class GroupMember
     implements EqualsHashCodeToString
 {
 
     protected long uid;
     protected long gid;
     @XmlElement(required = true)
     protected GroupMember.Positions positions;

    
Gets the value of the uid property.
 
     public long getUid() {
         return ;
     }

    
Sets the value of the uid property.
 
     public void setUid(long value) {
         this. = value;
     }

    
Gets the value of the gid property.
 
     public long getGid() {
         return ;
     }

    
Sets the value of the gid property.
    public void setGid(long value) {
        this. = value;
    }

    
Gets the value of the positions property.

Returns:
possible object is
    public GroupMember.Positions getPositions() {
        return ;
    }

    
Sets the value of the positions property.

Parameters:
value allowed object is
    public void setPositions(GroupMember.Positions value) {
        this. = value;
    }
    public void toString(ToStringBuilder toStringBuilder) {
        {
            long theUid;
            theUid = this.getUid();
            toStringBuilder.append("uid"theUid);
        }
        {
            long theGid;
            theGid = this.getGid();
            toStringBuilder.append("gid"theGid);
        }
        {
            GroupMember.Positions thePositions;
            thePositions = this.getPositions();
            toStringBuilder.append("positions"thePositions);
        }
    }
    public String toString() {
        final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this);
        toString(toStringBuilder);
        return toStringBuilder.toString();
    }
    public void equals(Object objectEqualsBuilder equalsBuilder) {
        if (!(object instanceof GroupMember)) {
            equalsBuilder.appendSuper(false);
            return ;
        }
        if (this == object) {
            return ;
        }
        final GroupMember that = ((GroupMemberobject);
        equalsBuilder.append(this.getUid(), that.getUid());
        equalsBuilder.append(this.getGid(), that.getGid());
        equalsBuilder.append(this.getPositions(), that.getPositions());
    }
    public boolean equals(Object object) {
        if (!(object instanceof GroupMember)) {
            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.getUid());
        hashCodeBuilder.append(this.getGid());
        hashCodeBuilder.append(this.getPositions());
    }
    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="member_type" type="{http://api.facebook.com/1.0/}member_type" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
       <attribute name="list" type="{http://www.w3.org/2001/XMLSchema}boolean" />
     </restriction>
   </complexContent>
 </complexType>
 
    @XmlType(name = "", propOrder = {
        "memberType"
    })
    public static class Positions
        implements EqualsHashCodeToString
    {
        @XmlElement(name = "member_type")
        protected List<StringmemberType;
        @XmlAttribute
        protected Boolean list;

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

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

    getMemberType().add(newItem);
 

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

        public List<StringgetMemberType() {
            if ( == null) {
                 = new ArrayList<String>();
            }
            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<StringtheMemberType;
                theMemberType = this.getMemberType();
                toStringBuilder.append("memberType"theMemberType);
            }
            {
                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 GroupMember.Positions)) {
                equalsBuilder.appendSuper(false);
                return ;
            }
            if (this == object) {
                return ;
            }
            final GroupMember.Positions that = ((GroupMember.Positionsobject);
            equalsBuilder.append(this.getMemberType(), that.getMemberType());
            equalsBuilder.append(this.isList(), that.isList());
        }
        public boolean equals(Object object) {
            if (!(object instanceof GroupMember.Positions)) {
                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.getMemberType());
            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