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

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

 <complexType name="stream_media">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="href" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="alt" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="type" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="src" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="video" type="{http://api.facebook.com/1.0/}stream_video"/>
         <element name="obj" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="music" type="{http://api.facebook.com/1.0/}stream_music"/>
         <element name="data" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="photo" type="{http://api.facebook.com/1.0/}stream_photo"/>
         <element name="swf" type="{http://api.facebook.com/1.0/}stream_swf"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "stream_media", propOrder = {
     "href",
     "alt",
     "type",
     "src",
     "video",
     "obj",
     "music",
     "data",
     "photo",
     "swf"
 })
 public class StreamMedia
     implements EqualsHashCodeToString
 {
 
     @XmlElement(required = true)
     protected String href;
     @XmlElement(required = true)
     protected String alt;
     @XmlElement(required = true)
     protected String type;
     @XmlElement(required = true)
     protected String src;
     @XmlElement(required = true)
     protected StreamVideo video;
     @XmlElement(required = true)
     protected String obj;
     @XmlElement(required = true)
     protected StreamMusic music;
     @XmlElement(required = true)
     protected String data;
     @XmlElement(required = true)
     protected StreamPhoto photo;
     @XmlElement(required = true)
     protected StreamSwf swf;

    
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 alt property.

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

    
Sets the value of the alt property.

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

    
Gets the value of the type property.

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

    
Sets the value of the type property.

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

    
Gets the value of the src property.

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

    
Sets the value of the src property.

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

    
Gets the value of the video property.

Returns:
possible object is
    public StreamVideo getVideo() {
        return ;
    }

    
Sets the value of the video property.

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

    
Gets the value of the obj property.

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

    
Sets the value of the obj property.

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

    
Gets the value of the music property.

Returns:
possible object is
    public StreamMusic getMusic() {
        return ;
    }

    
Sets the value of the music property.

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

    
Gets the value of the data property.

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

    
Sets the value of the data property.

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

    
Gets the value of the photo property.

Returns:
possible object is
    public StreamPhoto getPhoto() {
        return ;
    }

    
Sets the value of the photo property.

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

    
Gets the value of the swf property.

Returns:
possible object is
    public StreamSwf getSwf() {
        return ;
    }

    
Sets the value of the swf property.

Parameters:
value allowed object is
    public void setSwf(StreamSwf value) {
        this. = value;
    }
    public void toString(ToStringBuilder toStringBuilder) {
        {
            String theHref;
            theHref = this.getHref();
            toStringBuilder.append("href"theHref);
        }
        {
            String theAlt;
            theAlt = this.getAlt();
            toStringBuilder.append("alt"theAlt);
        }
        {
            String theType;
            theType = this.getType();
            toStringBuilder.append("type"theType);
        }
        {
            String theSrc;
            theSrc = this.getSrc();
            toStringBuilder.append("src"theSrc);
        }
        {
            StreamVideo theVideo;
            theVideo = this.getVideo();
            toStringBuilder.append("video"theVideo);
        }
        {
            String theObj;
            theObj = this.getObj();
            toStringBuilder.append("obj"theObj);
        }
        {
            StreamMusic theMusic;
            theMusic = this.getMusic();
            toStringBuilder.append("music"theMusic);
        }
        {
            String theData;
            theData = this.getData();
            toStringBuilder.append("data"theData);
        }
        {
            StreamPhoto thePhoto;
            thePhoto = this.getPhoto();
            toStringBuilder.append("photo"thePhoto);
        }
        {
            StreamSwf theSwf;
            theSwf = this.getSwf();
            toStringBuilder.append("swf"theSwf);
        }
    }
    public String toString() {
        final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this);
        toString(toStringBuilder);
        return toStringBuilder.toString();
    }
    public void equals(Object objectEqualsBuilder equalsBuilder) {
        if (!(object instanceof StreamMedia)) {
            equalsBuilder.appendSuper(false);
            return ;
        }
        if (this == object) {
            return ;
        }
        final StreamMedia that = ((StreamMediaobject);
        equalsBuilder.append(this.getHref(), that.getHref());
        equalsBuilder.append(this.getAlt(), that.getAlt());
        equalsBuilder.append(this.getType(), that.getType());
        equalsBuilder.append(this.getSrc(), that.getSrc());
        equalsBuilder.append(this.getVideo(), that.getVideo());
        equalsBuilder.append(this.getObj(), that.getObj());
        equalsBuilder.append(this.getMusic(), that.getMusic());
        equalsBuilder.append(this.getData(), that.getData());
        equalsBuilder.append(this.getPhoto(), that.getPhoto());
        equalsBuilder.append(this.getSwf(), that.getSwf());
    }
    public boolean equals(Object object) {
        if (!(object instanceof StreamMedia)) {
            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.getHref());
        hashCodeBuilder.append(this.getAlt());
        hashCodeBuilder.append(this.getType());
        hashCodeBuilder.append(this.getSrc());
        hashCodeBuilder.append(this.getVideo());
        hashCodeBuilder.append(this.getObj());
        hashCodeBuilder.append(this.getMusic());
        hashCodeBuilder.append(this.getData());
        hashCodeBuilder.append(this.getPhoto());
        hashCodeBuilder.append(this.getSwf());
    }
    public int hashCode() {
        final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
        hashCode(hashCodeBuilder);
        return hashCodeBuilder.toHashCode();
    }
New to GrepCode? Check out our FAQ X