|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.randomcoder.article.ArticleAddCommand
public class ArticleAddCommand
Command class used for adding articles.
Copyright (c) 2006, Craig Condit. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
| Field Summary | |
|---|---|
protected String |
content
Textual content. |
protected ContentType |
contentType
Content type. |
protected String |
permalink
Permalink. |
protected String |
summary
Article summary. |
protected TagList |
tags
Tags. |
protected String |
title
Article title. |
| Constructor Summary | |
|---|---|
ArticleAddCommand()
|
|
| Method Summary | |
|---|---|
String |
getContent()
Gets the textual content of the article. |
ContentType |
getContentType()
Gets the content type of the article. |
String |
getPermalink()
Gets the permalink for this article. |
String |
getSummary()
Gets the summary text for this article. |
TagList |
getTags()
Gets the tags for this article. |
String |
getTitle()
Gets the title of the article. |
void |
produce(Article article)
Writes out the contents of the form to the given article. |
void |
setContent(String content)
Sets the textual content of the article. |
void |
setContentType(ContentType contentType)
Sets the content type of the article. |
void |
setPermalink(String permalink)
Sets the permalink for this article. |
void |
setSummary(String summary)
Sets the summary text for this article. |
void |
setTags(TagList tags)
Sets the tags for this article. |
void |
setTitle(String title)
Sets the title of the article. |
String |
toString()
Gets a string representation of this object, suitable for debugging. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String title
protected ContentType contentType
protected String permalink
protected TagList tags
protected String content
protected String summary
| Constructor Detail |
|---|
public ArticleAddCommand()
| Method Detail |
|---|
public void setTitle(String title)
title - article titlepublic String getTitle()
public void setContentType(ContentType contentType)
contentType - content typepublic ContentType getContentType()
public void setPermalink(String permalink)
permalink - permalinkpublic String getPermalink()
public void setTags(TagList tags)
tags - tagspublic TagList getTags()
public void setContent(String content)
content - article contentpublic String getContent()
public String getSummary()
public void setSummary(String summary)
summary - summary textpublic void produce(Article article)
produce in interface Producer<Article>article - target object to writepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||