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

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

 <complexType name="template_bundle">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="one_line_story_templates">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence maxOccurs="unbounded" minOccurs="0">
                   <element name="one_line_story_template" type="{http://api.facebook.com/1.0/}one_line_story_template" maxOccurs="unbounded" minOccurs="0"/>
                 </sequence>
                 <attribute name="list" type="{http://www.w3.org/2001/XMLSchema}boolean" />
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element name="short_story_templates">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence maxOccurs="unbounded" minOccurs="0">
                   <element name="short_story_template" type="{http://api.facebook.com/1.0/}short_story_template" maxOccurs="unbounded" minOccurs="0"/>
                 </sequence>
                 <attribute name="list" type="{http://www.w3.org/2001/XMLSchema}boolean" />
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element name="full_story_template" type="{http://api.facebook.com/1.0/}full_story_template"/>
         <element name="action_links">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence maxOccurs="unbounded" minOccurs="0">
                   <element name="stream_action_link" type="{http://api.facebook.com/1.0/}stream_action_link" maxOccurs="unbounded" minOccurs="0"/>
                 </sequence>
                 <attribute name="list" type="{http://www.w3.org/2001/XMLSchema}boolean" />
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element name="time_created" type="{http://api.facebook.com/1.0/}time"/>
         <element name="template_bundle_id" type="{http://api.facebook.com/1.0/}tbid"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "template_bundle", propOrder = {
     "oneLineStoryTemplates",
     "shortStoryTemplates",
     "fullStoryTemplate",
     "actionLinks",
     "timeCreated",
     "templateBundleId"
 })
 public class TemplateBundle
     implements EqualsHashCodeToString
 {
 
     @XmlElement(name = "one_line_story_templates", required = true)
    @XmlElement(name = "short_story_templates", required = true)
    @XmlElement(name = "full_story_template", required = true)
    @XmlElement(name = "action_links", required = true)
    @XmlElement(name = "time_created")
    protected long timeCreated;
    @XmlElement(name = "template_bundle_id")
    protected long templateBundleId;

    
Gets the value of the oneLineStoryTemplates property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the oneLineStoryTemplates property.

Parameters:
value allowed object is
        this. = value;
    }

    
Gets the value of the shortStoryTemplates property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the shortStoryTemplates property.

Parameters:
value allowed object is
        this. = value;
    }

    
Gets the value of the fullStoryTemplate property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the fullStoryTemplate property.

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

    
Gets the value of the actionLinks property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the actionLinks property.

Parameters:
value allowed object is
    public void setActionLinks(TemplateBundle.ActionLinks value) {
        this. = value;
    }

    
Gets the value of the timeCreated property.
    public long getTimeCreated() {
        return ;
    }

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

    
Gets the value of the templateBundleId property.
    public long getTemplateBundleId() {
        return ;
    }

    
Sets the value of the templateBundleId property.
    public void setTemplateBundleId(long value) {
        this. = value;
    }
    public void toString(ToStringBuilder toStringBuilder) {
        {
            TemplateBundle.OneLineStoryTemplates theOneLineStoryTemplates;
            theOneLineStoryTemplates = this.getOneLineStoryTemplates();
            toStringBuilder.append("oneLineStoryTemplates"theOneLineStoryTemplates);
        }
        {
            TemplateBundle.ShortStoryTemplates theShortStoryTemplates;
            theShortStoryTemplates = this.getShortStoryTemplates();
            toStringBuilder.append("shortStoryTemplates"theShortStoryTemplates);
        }
        {
            FullStoryTemplate theFullStoryTemplate;
            theFullStoryTemplate = this.getFullStoryTemplate();
            toStringBuilder.append("fullStoryTemplate"theFullStoryTemplate);
        }
        {
            TemplateBundle.ActionLinks theActionLinks;
            theActionLinks = this.getActionLinks();
            toStringBuilder.append("actionLinks"theActionLinks);
        }
        {
            long theTimeCreated;
            theTimeCreated = this.getTimeCreated();
            toStringBuilder.append("timeCreated"theTimeCreated);
        }
        {
            long theTemplateBundleId;
            theTemplateBundleId = this.getTemplateBundleId();
            toStringBuilder.append("templateBundleId"theTemplateBundleId);
        }
    }
    public String toString() {
        final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this);
        toString(toStringBuilder);
        return toStringBuilder.toString();
    }
    public void equals(Object objectEqualsBuilder equalsBuilder) {
        if (!(object instanceof TemplateBundle)) {
            equalsBuilder.appendSuper(false);
            return ;
        }
        if (this == object) {
            return ;
        }
        final TemplateBundle that = ((TemplateBundleobject);
        equalsBuilder.append(this.getOneLineStoryTemplates(), that.getOneLineStoryTemplates());
        equalsBuilder.append(this.getShortStoryTemplates(), that.getShortStoryTemplates());
        equalsBuilder.append(this.getFullStoryTemplate(), that.getFullStoryTemplate());
        equalsBuilder.append(this.getActionLinks(), that.getActionLinks());
        equalsBuilder.append(this.getTimeCreated(), that.getTimeCreated());
        equalsBuilder.append(this.getTemplateBundleId(), that.getTemplateBundleId());
    }
    public boolean equals(Object object) {
        if (!(object instanceof TemplateBundle)) {
            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.getOneLineStoryTemplates());
        hashCodeBuilder.append(this.getShortStoryTemplates());
        hashCodeBuilder.append(this.getFullStoryTemplate());
        hashCodeBuilder.append(this.getActionLinks());
        hashCodeBuilder.append(this.getTimeCreated());
        hashCodeBuilder.append(this.getTemplateBundleId());
    }
    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_action_link" type="{http://api.facebook.com/1.0/}stream_action_link" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
       <attribute name="list" type="{http://www.w3.org/2001/XMLSchema}boolean" />
     </restriction>
   </complexContent>
 </complexType>
 
    @XmlType(name = "", propOrder = {
        "streamActionLink"
    })
    public static class ActionLinks
        implements EqualsHashCodeToString
    {
        @XmlElement(name = "stream_action_link")
        protected List<StreamActionLinkstreamActionLink;
        @XmlAttribute
        protected Boolean list;

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

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

    getStreamActionLink().add(newItem);
 

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

        public List<StreamActionLinkgetStreamActionLink() {
            if ( == null) {
                 = new ArrayList<StreamActionLink>();
            }
            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<StreamActionLinktheStreamActionLink;
                theStreamActionLink = this.getStreamActionLink();
                toStringBuilder.append("streamActionLink"theStreamActionLink);
            }
            {
                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 TemplateBundle.ActionLinks)) {
                equalsBuilder.appendSuper(false);
                return ;
            }
            if (this == object) {
                return ;
            }
            final TemplateBundle.ActionLinks that = ((TemplateBundle.ActionLinksobject);
            equalsBuilder.append(this.getStreamActionLink(), that.getStreamActionLink());
            equalsBuilder.append(this.isList(), that.isList());
        }
        public boolean equals(Object object) {
            if (!(object instanceof TemplateBundle.ActionLinks)) {
                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.getStreamActionLink());
            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="one_line_story_template" type="{http://api.facebook.com/1.0/}one_line_story_template" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
       <attribute name="list" type="{http://www.w3.org/2001/XMLSchema}boolean" />
     </restriction>
   </complexContent>
 </complexType>
 
    @XmlType(name = "", propOrder = {
        "oneLineStoryTemplate"
    })
    public static class OneLineStoryTemplates
        implements EqualsHashCodeToString
    {
        @XmlElement(name = "one_line_story_template")
        protected List<StringoneLineStoryTemplate;
        @XmlAttribute
        protected Boolean list;

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

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

    getOneLineStoryTemplate().add(newItem);
 

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

        public List<StringgetOneLineStoryTemplate() {
            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<StringtheOneLineStoryTemplate;
                theOneLineStoryTemplate = this.getOneLineStoryTemplate();
                toStringBuilder.append("oneLineStoryTemplate"theOneLineStoryTemplate);
            }
            {
                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 TemplateBundle.OneLineStoryTemplates)) {
                equalsBuilder.appendSuper(false);
                return ;
            }
            if (this == object) {
                return ;
            }
            final TemplateBundle.OneLineStoryTemplates that = ((TemplateBundle.OneLineStoryTemplatesobject);
            equalsBuilder.append(this.getOneLineStoryTemplate(), that.getOneLineStoryTemplate());
            equalsBuilder.append(this.isList(), that.isList());
        }
        public boolean equals(Object object) {
            if (!(object instanceof TemplateBundle.OneLineStoryTemplates)) {
                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.getOneLineStoryTemplate());
            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="short_story_template" type="{http://api.facebook.com/1.0/}short_story_template" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
       <attribute name="list" type="{http://www.w3.org/2001/XMLSchema}boolean" />
     </restriction>
   </complexContent>
 </complexType>
 
    @XmlType(name = "", propOrder = {
        "shortStoryTemplate"
    })
    public static class ShortStoryTemplates
        implements EqualsHashCodeToString
    {
        @XmlElement(name = "short_story_template")
        protected List<ShortStoryTemplateshortStoryTemplate;
        @XmlAttribute
        protected Boolean list;

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

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

    getShortStoryTemplate().add(newItem);
 

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

        public List<ShortStoryTemplategetShortStoryTemplate() {
            if ( == null) {
                 = new ArrayList<ShortStoryTemplate>();
            }
            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<ShortStoryTemplatetheShortStoryTemplate;
                theShortStoryTemplate = this.getShortStoryTemplate();
                toStringBuilder.append("shortStoryTemplate"theShortStoryTemplate);
            }
            {
                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 TemplateBundle.ShortStoryTemplates)) {
                equalsBuilder.appendSuper(false);
                return ;
            }
            if (this == object) {
                return ;
            }
            final TemplateBundle.ShortStoryTemplates that = ((TemplateBundle.ShortStoryTemplatesobject);
            equalsBuilder.append(this.getShortStoryTemplate(), that.getShortStoryTemplate());
            equalsBuilder.append(this.isList(), that.isList());
        }
        public boolean equals(Object object) {
            if (!(object instanceof TemplateBundle.ShortStoryTemplates)) {
                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.getShortStoryTemplate());
            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