Players (query directive)

From WandoraWiki
(Difference between revisions)
Jump to: navigation, search

Revision as of 11:01, 20 August 2009

Description

Gets players of specified roles from associations of specified type. Input topic is the active column value of input row.

Constructor

Players(String associationType,String r1,...)

Notes

This directive contains a method whereInputIs(String role). This method can be used to set an additional requirement for the returned rows. The input topic must play the specified role for a row to be included in the results. For example new Players(XTMPSI.SUPERCLASS_SUBCLASS,XTMPSI.SUBCLASS).whereInputIs(XTMPSI.SUPERCLASS) will return all subclasses of input. Since the input class itself is likely to be a subclass of some other class, it might be returned as well without the whereInputIs method call.