FileDocCategorySizeDatePackage
Entry.javaAPI DocAndroid 1.5 API6894Wed May 06 22:41:16 BST 2009com.google.wireless.gdata.data

Entry

public class Entry extends Object
Entry in a GData feed.

Fields Summary
private String
id
private String
title
private String
editUri
private String
htmlUri
private String
summary
private String
content
private String
author
private String
email
private String
category
private String
categoryScheme
private String
publicationDate
private String
updateDate
private boolean
deleted
Constructors Summary
public Entry()
Creates a new empty entry.

    
              
      
    
Methods Summary
protected voidappendIfNotNull(java.lang.StringBuffer sb, java.lang.String name, java.lang.String value)
Appends the name and value to this StringBuffer, if value is not null. Uses the format: ": \n"

param
sb The StringBuffer in which the name and value should be appended.
param
name The name that should be appended.
param
value The value that should be appended.

        if (!StringUtils.isEmpty(value)) {
            sb.append(name);
            sb.append(": ");
            sb.append(value);
            sb.append("\n");
        }
    
public voidclear()
Clears all the values in this entry.

        id = null;
        title = null;
        editUri = null;
        htmlUri = null;
        summary = null;
        content = null;
        author = null;
        email = null;
        category = null;
        categoryScheme = null;
        publicationDate = null;
        updateDate = null;
        deleted = false;
    
public java.lang.StringgetAuthor()

return
the author

        return author;
    
public java.lang.StringgetCategory()

return
the category

        return category;
    
public java.lang.StringgetCategoryScheme()

return
the categoryScheme

        return categoryScheme;
    
public java.lang.StringgetContent()

return
the content

        return content;
    
public java.lang.StringgetEditUri()

return
the editUri

        return editUri;
    
public java.lang.StringgetEmail()

return
the email

        return email;
    
public java.lang.StringgetHtmlUri()

return
The uri for the HTML version of this entry.

        return htmlUri;
    
public java.lang.StringgetId()

return
the id

        return id;
    
public java.lang.StringgetPublicationDate()

return
the publicationDate

        return publicationDate;
    
public java.lang.StringgetSummary()

return
the summary

        return summary;
    
public java.lang.StringgetTitle()

return
the title

        return title;
    
public java.lang.StringgetUpdateDate()

return
the updateDate

        return updateDate;
    
public booleanisDeleted()

return
true if this entry represents a tombstone

        return deleted;
    
public voidsetAuthor(java.lang.String author)

param
author the author to set

        this.author = author;
    
public voidsetCategory(java.lang.String category)

param
category the category to set

        this.category = category;
    
public voidsetCategoryScheme(java.lang.String categoryScheme)

param
categoryScheme the categoryScheme to set

        this.categoryScheme = categoryScheme;
    
public voidsetContent(java.lang.String content)

param
content the content to set

        this.content = content;
    
public voidsetDeleted(boolean isDeleted)

param
isDeleted true if the entry is deleted

        deleted = isDeleted;
    
public voidsetEditUri(java.lang.String editUri)

param
editUri the editUri to set

        this.editUri = editUri;
    
public voidsetEmail(java.lang.String email)

param
email the email to set

        this.email = email;
    
public voidsetHtmlUri(java.lang.String htmlUri)
Set the uri for the HTML version of this entry.

param
htmlUri The uri for the HTML version of this entry.

        this.htmlUri = htmlUri;
    
public voidsetId(java.lang.String id)

param
id the id to set

        this.id = id;
    
public voidsetPublicationDate(java.lang.String publicationDate)

param
publicationDate the publicationDate to set

        this.publicationDate = publicationDate;
    
public voidsetSummary(java.lang.String summary)

param
summary the summary to set

        this.summary = summary;
    
public voidsetTitle(java.lang.String title)

param
title the title to set

        this.title = title;
    
public voidsetUpdateDate(java.lang.String updateDate)

param
updateDate the updateDate to set

        this.updateDate = updateDate;
    
protected voidtoString(java.lang.StringBuffer sb)
Helper method that creates the String representation of this Entry. Called by {@link #toString()}. Subclasses can add additional data to the StringBuffer.

param
sb The StringBuffer that should be modified to add to the String representation of this Entry.

        appendIfNotNull(sb, "ID", id);
        appendIfNotNull(sb, "TITLE", title);
        appendIfNotNull(sb, "EDIT URI", editUri);
        appendIfNotNull(sb, "HTML URI", htmlUri);        
        appendIfNotNull(sb, "SUMMARY", summary);
        appendIfNotNull(sb, "CONTENT", content);
        appendIfNotNull(sb, "AUTHOR", author);
        appendIfNotNull(sb, "CATEGORY", category);
        appendIfNotNull(sb, "CATEGORY SCHEME", categoryScheme);
        appendIfNotNull(sb, "PUBLICATION DATE", publicationDate);
        appendIfNotNull(sb, "UPDATE DATE", updateDate);
        appendIfNotNull(sb, "DELETED", String.valueOf(deleted));
    
public java.lang.StringtoString()
Creates a StringBuffer and calls {@link #toString(StringBuffer)}. The return value for this method is simply the result of calling {@link StringBuffer#toString()} on this StringBuffer. Mainly used for debugging.

        StringBuffer sb = new StringBuffer();
        toString(sb);
        return sb.toString();
    
public voidvalidate()