tapestry.interweave
Class KeywordQuery

java.lang.Object
  |
  +--tapestry.interweave.KeywordQuery
All Implemented Interfaces:
QuickSerializable, TapestryQuery

public class KeywordQuery
extends Object
implements TapestryQuery

KeywordQuery is a TapestryQuery used in a TapestryLocateMsg used to find objects identified by a KeywordTag.

USAGE

To receive an object identified by a KeywordTag, dispatch a TapestryLocateMsg that contains a KeywordQuery.

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

Constructor Summary
KeywordQuery()
          Creates a new KeywordQuery.
KeywordQuery(InputBuffer buffer)
          Constructs a KeywordQuery 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

KeywordQuery

public KeywordQuery()
Creates a new KeywordQuery.


KeywordQuery

public KeywordQuery(InputBuffer buffer)
             throws QSException
Constructs a KeywordQuery 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

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
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