|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.pebble.domain.Tag
public class Tag
Represents a tag.
Field Summary | |
---|---|
protected int |
rank
the rank for this tag |
Constructor Summary | |
---|---|
Tag(java.lang.String name,
Blog blog)
Creates a new tag with the specified properties. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
Compares this object with the specified object for order. |
static java.lang.String |
encode(java.lang.String tag)
Encodes a tag. |
boolean |
equals(java.lang.Object o)
Determines whether the specified object is equal to this one. |
java.lang.String |
getName()
Gets the name of this tag. |
java.lang.String |
getPermalink()
Gets the permalink for this object. |
int |
getRank()
Gets the rank for this tag. |
int |
hashCode()
Gets the hashcode of this object. |
static java.util.List<Tag> |
parse(Blog blog,
java.lang.String tags)
Given a string containing whitespace separated tags, this method returns a List containing the tags. |
void |
setName(java.lang.String name)
Sets the name of this tag. |
java.lang.String |
toString()
Returns a String representation of this object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int rank
Constructor Detail |
---|
public Tag(java.lang.String name, Blog blog)
name
- the nameblog
- a Blog instanceMethod Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the new tag namepublic java.lang.String getPermalink()
getPermalink
in interface Permalinkable
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the object to compare against
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
o
- the Object to be compared.
java.lang.ClassCastException
- if the specified object's type prevents it
from being compared to this Object.public java.lang.String toString()
toString
in class java.lang.Object
public int getRank()
public static java.util.List<Tag> parse(Blog blog, java.lang.String tags)
tags
- a whitespace separated list of tags
public static java.lang.String encode(java.lang.String tag)
tag
- a String
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |