|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.varienaja.comments.CommentElement
public class CommentElement
Class representing an element of a Comment. An element is either normal text, a Band, a Song, a Keyword, a Playlist or an Artist. The special elementtypes can be used to create hyperlinks, pointing to a page with more information.
| Constructor Summary | |
|---|---|
CommentElement()
Creates a CommentElement of type 'T' with an empty string as text and an id of -1. |
|
| Method Summary | |
|---|---|
long |
getId()
|
java.lang.Object[] |
getInfo()
Returns the contents of this Item as a pair of [id,name] |
java.lang.String |
getText()
|
protected java.lang.String |
getType()
|
boolean |
isArtist()
|
boolean |
isBand()
|
boolean |
isKeyword()
|
boolean |
isPlaylist()
|
boolean |
isSong()
|
boolean |
isText()
|
void |
setId(long id)
|
void |
setText(java.lang.String text)
|
void |
setType(char type)
Sets the type of the reviewelement. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CommentElement()
| Method Detail |
|---|
public java.lang.String getText()
public void setText(java.lang.String text)
public long getId()
public void setId(long id)
public void setType(char type)
type - public boolean isText()
public boolean isBand()
public boolean isPlaylist()
public boolean isSong()
public boolean isArtist()
public boolean isKeyword()
public java.lang.Object[] getInfo()
protected java.lang.String getType()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||