ostore.tapestry.impl
Class NullTagQuery

java.lang.Object
  |
  +--ostore.tapestry.impl.NullTagQuery
All Implemented Interfaces:
QuickSerializable, TapestryQuery

public class NullTagQuery
extends Object
implements TapestryQuery

NullTagQuery is a TapestryQuery used in a TapestryLocateMsg used to find objects identified by a NullTag.

USAGE

To receive an object identified by a NullTag, dispatch a TapestryLocateMsg that contains a NullTagQuery.

Version:
$Id: NullTagQuery.java,v 1.1 2002/10/05 06:21:32 hweather Exp $
Author:
Hakim Weatherspoon
See Also:
NullTag, TapestryTag, TapestryQuery, TapestryLocateMsg

Constructor Summary
NullTagQuery()
          Creates a new NullTagQuery.
NullTagQuery(InputBuffer buffer)
          Constructs a NullTagQuery from its serialized form.
 
Method Summary
 TapestryQueryResult query(SecureHash node_guid, SecureHash bp_guid, TapestryTag tag, TapestryQueryState state)
          Perform the query on the given backpointer and tag, possibly modifying the supplied state.
 void serialize(OutputBuffer buffer)
          Specified by ostore.util.QuickSerializable
 String toString()
          Specified by java.lang.Object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NullTagQuery

public NullTagQuery()
Creates a new NullTagQuery.

NullTagQuery

public NullTagQuery(InputBuffer buffer)
             throws QSException
Constructs a NullTagQuery 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
Following copied from interface: ostore.util.QuickSerializable
Parameters:
buffer - the output buffer to add the object to

query

public TapestryQueryResult query(SecureHash node_guid,
                                 SecureHash bp_guid,
                                 TapestryTag tag,
                                 TapestryQueryState state)
Description copied from interface: TapestryQuery
Perform the query on the given backpointer and tag, possibly modifying the supplied state.
Specified by:
query in interface TapestryQuery
Following copied from interface: ostore.tapestry.api.TapestryQuery
Parameters:
node_guid - the guid of the current node
bp_guid - the guid of the node to which the backpointer points
tag - the associated tag
state - the state, passed in and (possibly) modified
Returns:
the query result

toString

public String toString()
Specified by java.lang.Object
Overrides:
toString in class Object