tapestry.interweave
Class KeywordTag

java.lang.Object
  |
  +--tapestry.interweave.KeywordTag
All Implemented Interfaces:
QuickSerializable, TapestryTag

public class KeywordTag
extends Object
implements TapestryTag

KeywordTag is the TapestryTag for keyword objects.

Version:
$Id: KeywordTag.java,v 1.1.1.1 2004/03/26 19:57:10 hweather Exp $
Author:
Benjamin K. Poon
See Also:
TapestryTag

Constructor Summary
KeywordTag(InputBuffer buffer)
          Constructs a KeywordTag from its serialized form.
KeywordTag(String keyword)
          Constructor: Creates a new KeywordTag.
 
Method Summary
 boolean equals(Object other)
          Compares this KeywordTag with another tag, and returns true iff they are the same type of tag.
 int hashCode()
          Calculates a Java hash code for this KeywordTag object (by returning its type_code)
 void serialize(OutputBuffer buffer)
          Specified by ostore.util.QuickSerializable
 String toString()
          Specified by java.lang.Object
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KeywordTag

public KeywordTag(String keyword)
Constructor: Creates a new KeywordTag.


KeywordTag

public KeywordTag(InputBuffer buffer)
           throws QSException
Constructs a KeywordTag from its serialized form.

Parameters:
buffer - serialized form of object.
Method Detail

serialize

public void serialize(OutputBuffer buffer)
Specified by ostore.util.QuickSerializable

Specified by:
serialize in interface QuickSerializable

equals

public boolean equals(Object other)
Compares this KeywordTag with another tag, and returns true iff they are the same type of tag.

Overrides:
equals in class Object
Returns:
true iff this and other are instanceof KeywordTag.

hashCode

public int hashCode()
Calculates a Java hash code for this KeywordTag object (by returning its type_code)

Overrides:
hashCode in class Object
Returns:
the Java hash code for this KeywordTag.

toString

public String toString()
Specified by java.lang.Object

Overrides:
toString in class Object