Methods Summary |
---|
protected void | appendIfNotNull(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"
if (!StringUtils.isEmpty(value)) {
sb.append(name);
sb.append(": ");
sb.append(value);
sb.append("\n");
}
|
public void | clear()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.String | getAuthor()
return author;
|
public java.lang.String | getCategory()
return category;
|
public java.lang.String | getCategoryScheme()
return categoryScheme;
|
public java.lang.String | getContent()
return content;
|
public java.lang.String | getEditUri()
return editUri;
|
public java.lang.String | getEmail()
return email;
|
public java.lang.String | getHtmlUri()
return htmlUri;
|
public java.lang.String | getId()
return id;
|
public java.lang.String | getPublicationDate()
return publicationDate;
|
public java.lang.String | getSummary()
return summary;
|
public java.lang.String | getTitle()
return title;
|
public java.lang.String | getUpdateDate()
return updateDate;
|
public boolean | isDeleted()
return deleted;
|
public void | setAuthor(java.lang.String author)
this.author = author;
|
public void | setCategory(java.lang.String category)
this.category = category;
|
public void | setCategoryScheme(java.lang.String categoryScheme)
this.categoryScheme = categoryScheme;
|
public void | setContent(java.lang.String content)
this.content = content;
|
public void | setDeleted(boolean isDeleted)
deleted = isDeleted;
|
public void | setEditUri(java.lang.String editUri)
this.editUri = editUri;
|
public void | setEmail(java.lang.String email)
this.email = email;
|
public void | setHtmlUri(java.lang.String htmlUri)Set the uri for the HTML version of this entry.
this.htmlUri = htmlUri;
|
public void | setId(java.lang.String id)
this.id = id;
|
public void | setPublicationDate(java.lang.String publicationDate)
this.publicationDate = publicationDate;
|
public void | setSummary(java.lang.String summary)
this.summary = summary;
|
public void | setTitle(java.lang.String title)
this.title = title;
|
public void | setUpdateDate(java.lang.String updateDate)
this.updateDate = updateDate;
|
protected void | toString(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.
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.String | toString()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 void | validate()
|