tapestry.impl
Class NullTag

java.lang.Object
  |
  +--tapestry.impl.NullTag
All Implemented Interfaces:
QuickSerializable, TapestryTag

public class NullTag
extends Object
implements TapestryTag

NullTag is the TapestryTag for objects that otherwise do not have an identifies. This class replaces setting ttag==null.

Version:
$Id: NullTag.java,v 1.1.1.1 2004/03/26 19:57:06 hweather Exp $
Author:
Hakim Weatherspoon
See Also:
NullTagQuery, TapestryTag

Constructor Summary
NullTag()
          Constructor: Creates a new NullTag.
NullTag(InputBuffer buffer)
          Constructs a NullTag from its serialized form.
 
Method Summary
 boolean equals(Object other)
          Compares this NullTag with another tag, and returns true iff they are the same type of tag.
 int hashCode()
          Calculates a Java hash code for this NullTag 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

NullTag

public NullTag()
Constructor: Creates a new NullTag.


NullTag

public NullTag(InputBuffer buffer)
        throws QSException
Constructs a NullTag 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 NullTag with another tag, and returns true iff they are the same type of tag.

Overrides:
equals in class Object
Parameters:
other - the object with which to compare this NullTag.
Returns:
true iff this and other are instanceof NullTag.

hashCode

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

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

toString

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

Overrides:
toString in class Object