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

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

 <complexType name="stream_attachment">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="media">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence maxOccurs="unbounded" minOccurs="0">
                   <element name="stream_media" type="{http://api.facebook.com/1.0/}stream_media" maxOccurs="unbounded" minOccurs="0"/>
                 </sequence>
                 <attribute name="list" type="{http://www.w3.org/2001/XMLSchema}boolean" />
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="href" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="caption" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="description" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="properties">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence maxOccurs="unbounded" minOccurs="0">
                   <element name="stream_property" type="{http://api.facebook.com/1.0/}stream_property" maxOccurs="unbounded" minOccurs="0"/>
                 </sequence>
                 <attribute name="list" type="{http://www.w3.org/2001/XMLSchema}boolean" />
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element name="icon" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="fb_object_type" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="fb_object_id" type="{http://www.w3.org/2001/XMLSchema}string"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "stream_attachment", propOrder = {
     "media",
     "name",
     "href",
     "caption",
     "description",
     "properties",
     "icon",
     "fbObjectType",
     "fbObjectId"
 })
 public class StreamAttachment
     implements EqualsHashCodeToString
 {
 
     @XmlElement(required = true)
     protected StreamAttachment.Media media;
     @XmlElement(required = true)
     protected String name;
     @XmlElement(required = true)
     protected String href;
    @XmlElement(required = true)
    protected String caption;
    @XmlElement(required = true)
    protected String description;
    @XmlElement(required = true)
    @XmlElement(required = true)
    protected String icon;
    @XmlElement(name = "fb_object_type", required = true)
    protected String fbObjectType;
    @XmlElement(name = "fb_object_id", required = true)
    protected String fbObjectId;

    
Gets the value of the media property.

Returns:
possible object is
    public StreamAttachment.Media getMedia() {
        return ;
    }

    
Sets the value of the media property.

Parameters:
value allowed object is
    public void setMedia(StreamAttachment.Media value) {
        this. = value;
    }

    
Gets the value of the name property.

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

    
Sets the value of the name property.

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

    
Gets the value of the href property.

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

    
Sets the value of the href property.

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

    
Gets the value of the caption property.

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

    
Sets the value of the caption property.

Parameters:
value allowed object is
    public void setCaption(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 properties property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the properties property.

Parameters:
value allowed object is
    public void setProperties(StreamAttachment.Properties value) {
        this. = value;
    }

    
Gets the value of the icon property.

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

    
Sets the value of the icon property.

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

    
Gets the value of the fbObjectType property.

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

    
Sets the value of the fbObjectType property.

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

    
Gets the value of the fbObjectId property.

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

    
Sets the value of the fbObjectId property.

Parameters:
value allowed object is
    public void setFbObjectId(String value) {
        this. = value;
    }
    public void toString(ToStringBuilder toStringBuilder) {
        {
            StreamAttachment.Media theMedia;
            theMedia = this.getMedia();
            toStringBuilder.append("media"theMedia);
        }
        {
            String theName;
            theName = this.getName();
            toStringBuilder.append("name"theName);
        }
        {
            String theHref;
            theHref = this.getHref();
            toStringBuilder.append("href"theHref);
        }
        {
            String theCaption;
            theCaption = this.getCaption();
            toStringBuilder.append("caption"theCaption);
        }
        {
            String theDescription;
            theDescription = this.getDescription();
            toStringBuilder.append("description"theDescription);
        }
        {
            StreamAttachment.Properties theProperties;
            theProperties = this.getProperties();
            toStringBuilder.append("properties"theProperties);
        }
        {
            String theIcon;
            theIcon = this.getIcon();
            toStringBuilder.append("icon"theIcon);
        }
        {
            String theFbObjectType;
            theFbObjectType = this.getFbObjectType();
            toStringBuilder.append("fbObjectType"theFbObjectType);
        }
        {
            String theFbObjectId;
            theFbObjectId = this.getFbObjectId();
            toStringBuilder.append("fbObjectId"theFbObjectId);
        }
    }
    public String toString() {
        final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this);
        toString(toStringBuilder);
        return toStringBuilder.toString();
    }
    public void equals(Object objectEqualsBuilder equalsBuilder) {
        if (!(object instanceof StreamAttachment)) {
            equalsBuilder.appendSuper(false);
            return ;
        }
        if (this == object) {
            return ;
        }
        final StreamAttachment that = ((StreamAttachmentobject);
        equalsBuilder.append(this.getMedia(), that.getMedia());
        equalsBuilder.append(this.getName(), that.getName());
        equalsBuilder.append(this.getHref(), that.getHref());
        equalsBuilder.append(this.getCaption(), that.getCaption());
        equalsBuilder.append(this.getDescription(), that.getDescription());
        equalsBuilder.append(this.getProperties(), that.getProperties());
        equalsBuilder.append(this.getIcon(), that.getIcon());
        equalsBuilder.append(this.getFbObjectType(), that.getFbObjectType());
        equalsBuilder.append(this.getFbObjectId(), that.getFbObjectId());
    }
    public boolean equals(Object object) {
        if (!(object instanceof StreamAttachment)) {
            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.getMedia());
        hashCodeBuilder.append(this.getName());
        hashCodeBuilder.append(this.getHref());
        hashCodeBuilder.append(this.getCaption());
        hashCodeBuilder.append(this.getDescription());
        hashCodeBuilder.append(this.getProperties());
        hashCodeBuilder.append(this.getIcon());
        hashCodeBuilder.append(this.getFbObjectType());
        hashCodeBuilder.append(this.getFbObjectId());
    }
    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="stream_media" type="{http://api.facebook.com/1.0/}stream_media" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
       <attribute name="list" type="{http://www.w3.org/2001/XMLSchema}boolean" />
     </restriction>
   </complexContent>
 </complexType>
 
    @XmlType(name = "", propOrder = {
        "streamMedia"
    })
    public static class Media
        implements EqualsHashCodeToString
    {
        @XmlElement(name = "stream_media")
        protected List<StreamMediastreamMedia;
        @XmlAttribute
        protected Boolean list;

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

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

    getStreamMedia().add(newItem);
 

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

        public List<StreamMediagetStreamMedia() {
            if ( == null) {
                 = new ArrayList<StreamMedia>();
            }
            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<StreamMediatheStreamMedia;
                theStreamMedia = this.getStreamMedia();
                toStringBuilder.append("streamMedia"theStreamMedia);
            }
            {
                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 StreamAttachment.Media)) {
                equalsBuilder.appendSuper(false);
                return ;
            }
            if (this == object) {
                return ;
            }
            final StreamAttachment.Media that = ((StreamAttachment.Mediaobject);
            equalsBuilder.append(this.getStreamMedia(), that.getStreamMedia());
            equalsBuilder.append(this.isList(), that.isList());
        }
        public boolean equals(Object object) {
            if (!(object instanceof StreamAttachment.Media)) {
                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.getStreamMedia());
            hashCodeBuilder.append(this.isList());
        }
        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="stream_property" type="{http://api.facebook.com/1.0/}stream_property" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
       <attribute name="list" type="{http://www.w3.org/2001/XMLSchema}boolean" />
     </restriction>
   </complexContent>
 </complexType>
 
    @XmlType(name = "", propOrder = {
        "streamProperty"
    })
    public static class Properties
        implements EqualsHashCodeToString
    {
        @XmlElement(name = "stream_property")
        protected List<StreamPropertystreamProperty;
        @XmlAttribute
        protected Boolean list;

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

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

    getStreamProperty().add(newItem);
 

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

        public List<StreamPropertygetStreamProperty() {
            if ( == null) {
                 = new ArrayList<StreamProperty>();
            }
            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<StreamPropertytheStreamProperty;
                theStreamProperty = this.getStreamProperty();
                toStringBuilder.append("streamProperty"theStreamProperty);
            }
            {
                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 StreamAttachment.Properties)) {
                equalsBuilder.appendSuper(false);
                return ;
            }
            if (this == object) {
                return ;
            }
            final StreamAttachment.Properties that = ((StreamAttachment.Propertiesobject);
            equalsBuilder.append(this.getStreamProperty(), that.getStreamProperty());
            equalsBuilder.append(this.isList(), that.isList());
        }
        public boolean equals(Object object) {
            if (!(object instanceof StreamAttachment.Properties)) {
                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.getStreamProperty());
            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