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

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

 <complexType name="link">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="link_id" type="{http://api.facebook.com/1.0/}link_id"/>
         <element name="owner" type="{http://api.facebook.com/1.0/}uid"/>
         <element name="owner_comment" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="created_time" type="{http://api.facebook.com/1.0/}time"/>
         <element name="title" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="summary" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="url" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="image_urls">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence maxOccurs="unbounded" minOccurs="0">
                   <element name="image_urls_elt" type="{http://www.w3.org/2001/XMLSchema}string" 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 = "link", propOrder = {
     "linkId",
     "owner",
     "ownerComment",
     "createdTime",
     "title",
     "summary",
     "url",
     "imageUrls"
 })
 public class Link
     implements EqualsHashCodeToString
 {
 
     @XmlElement(name = "link_id")
     protected long linkId;
     protected long owner;
     @XmlElement(name = "owner_comment", required = true)
     protected String ownerComment;
     @XmlElement(name = "created_time")
     protected long createdTime;
     @XmlElement(required = true)
     protected String title;
     @XmlElement(required = true)
     protected String summary;
     @XmlElement(required = true)
     protected String url;
     @XmlElement(name = "image_urls", required = true)
     protected Link.ImageUrls imageUrls;

    
Gets the value of the linkId property.
    public long getLinkId() {
        return ;
    }

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

    
Gets the value of the owner property.
    public long getOwner() {
        return ;
    }

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

    
Gets the value of the ownerComment property.

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

    
Sets the value of the ownerComment property.

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

    
Gets the value of the createdTime property.
    public long getCreatedTime() {
        return ;
    }

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

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

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

    
Sets the value of the summary property.

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

    
Gets the value of the url property.

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

    
Sets the value of the url property.

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

    
Gets the value of the imageUrls property.

Returns:
possible object is
    public Link.ImageUrls getImageUrls() {
        return ;
    }

    
Sets the value of the imageUrls property.

Parameters:
value allowed object is
    public void setImageUrls(Link.ImageUrls value) {
        this. = value;
    }
    public void toString(ToStringBuilder toStringBuilder) {
        {
            long theLinkId;
            theLinkId = this.getLinkId();
            toStringBuilder.append("linkId"theLinkId);
        }
        {
            long theOwner;
            theOwner = this.getOwner();
            toStringBuilder.append("owner"theOwner);
        }
        {
            String theOwnerComment;
            theOwnerComment = this.getOwnerComment();
            toStringBuilder.append("ownerComment"theOwnerComment);
        }
        {
            long theCreatedTime;
            theCreatedTime = this.getCreatedTime();
            toStringBuilder.append("createdTime"theCreatedTime);
        }
        {
            String theTitle;
            theTitle = this.getTitle();
            toStringBuilder.append("title"theTitle);
        }
        {
            String theSummary;
            theSummary = this.getSummary();
            toStringBuilder.append("summary"theSummary);
        }
        {
            String theUrl;
            theUrl = this.getUrl();
            toStringBuilder.append("url"theUrl);
        }
        {
            Link.ImageUrls theImageUrls;
            theImageUrls = this.getImageUrls();
            toStringBuilder.append("imageUrls"theImageUrls);
        }
    }
    public String toString() {
        final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this);
        toString(toStringBuilder);
        return toStringBuilder.toString();
    }
    public void equals(Object objectEqualsBuilder equalsBuilder) {
        if (!(object instanceof Link)) {
            equalsBuilder.appendSuper(false);
            return ;
        }
        if (this == object) {
            return ;
        }
        final Link that = ((Linkobject);
        equalsBuilder.append(this.getLinkId(), that.getLinkId());
        equalsBuilder.append(this.getOwner(), that.getOwner());
        equalsBuilder.append(this.getOwnerComment(), that.getOwnerComment());
        equalsBuilder.append(this.getCreatedTime(), that.getCreatedTime());
        equalsBuilder.append(this.getTitle(), that.getTitle());
        equalsBuilder.append(this.getSummary(), that.getSummary());
        equalsBuilder.append(this.getUrl(), that.getUrl());
        equalsBuilder.append(this.getImageUrls(), that.getImageUrls());
    }
    public boolean equals(Object object) {
        if (!(object instanceof Link)) {
            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.getLinkId());
        hashCodeBuilder.append(this.getOwner());
        hashCodeBuilder.append(this.getOwnerComment());
        hashCodeBuilder.append(this.getCreatedTime());
        hashCodeBuilder.append(this.getTitle());
        hashCodeBuilder.append(this.getSummary());
        hashCodeBuilder.append(this.getUrl());
        hashCodeBuilder.append(this.getImageUrls());
    }
    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="image_urls_elt" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
       <attribute name="list" type="{http://www.w3.org/2001/XMLSchema}boolean" />
     </restriction>
   </complexContent>
 </complexType>
 
    @XmlType(name = "", propOrder = {
        "imageUrlsElt"
    })
    public static class ImageUrls
        implements EqualsHashCodeToString
    {
        @XmlElement(name = "image_urls_elt")
        protected List<StringimageUrlsElt;
        @XmlAttribute
        protected Boolean list;

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

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

    getImageUrlsElt().add(newItem);
 

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

        public List<StringgetImageUrlsElt() {
            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<StringtheImageUrlsElt;
                theImageUrlsElt = this.getImageUrlsElt();
                toStringBuilder.append("imageUrlsElt"theImageUrlsElt);
            }
            {
                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 Link.ImageUrls)) {
                equalsBuilder.appendSuper(false);
                return ;
            }
            if (this == object) {
                return ;
            }
            final Link.ImageUrls that = ((Link.ImageUrlsobject);
            equalsBuilder.append(this.getImageUrlsElt(), that.getImageUrlsElt());
            equalsBuilder.append(this.isList(), that.isList());
        }
        public boolean equals(Object object) {
            if (!(object instanceof Link.ImageUrls)) {
                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.getImageUrlsElt());
            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