EchoPoint API - 3.0.0b5
App Webcontainer

echopoint.model
Class Tag

java.lang.Object
  extended by echopoint.model.Tag
All Implemented Interfaces:
Serializable

public class Tag
extends Object
implements Serializable

The model object for use in the TagCloud component.

Version:
$Id: Tag.java 120 2009-02-20 15:43:33Z sptrakesh $
Author:
Rakesh 2008-07-20
See Also:
Serialized Form

Constructor Summary
Tag()
          Default constructor.
Tag(String name, int count)
          Create a new tag with the specified values.
 
Method Summary
 boolean equals(Object object)
          Compares the specified object with this instance for equality.
 int getCount()
          Accessor for property 'count'.
 String getName()
          Accessor for property 'name'.
 int hashCode()
          Calculates a hash code for this object using the class fields.
 void setCount(int count)
          Mutator for property 'count'.
 void setName(String name)
          Mutator for property 'name'.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tag

public Tag()
Default constructor.


Tag

public Tag(String name,
           int count)
Create a new tag with the specified values.

Parameters:
name - The name to use.
count - The count to use.
Method Detail

equals

public boolean equals(Object object)
Compares the specified object with this instance for equality.

Overrides:
equals in class Object
Parameters:
object - The object to be compared.
Returns:
Returns true if the specified object is of the same type and has the same values.

hashCode

public int hashCode()
Calculates a hash code for this object using the class fields.

Overrides:
hashCode in class Object
Returns:
The hash code for this instance.

getName

public String getName()
Accessor for property 'name'.

Returns:
Value for property 'name'.

setName

public void setName(String name)
Mutator for property 'name'.

Parameters:
name - Value to set for property 'name'.

getCount

public int getCount()
Accessor for property 'count'.

Returns:
Value for property 'count'.

setCount

public void setCount(int count)
Mutator for property 'count'.

Parameters:
count - Value to set for property 'count'.

EchoPoint API - 3.0.0b5
App Webcontainer