Null (query directive)
From WandoraWiki
(Difference between revisions)
Line 16: | Line 16: | ||
new Players(XTMPSI.SUPERCLASS_SUBCLASS,XTMPSI.SUPERCLASS) | new Players(XTMPSI.SUPERCLASS_SUBCLASS,XTMPSI.SUPERCLASS) | ||
.whereInputIs(XTMPSI.SUBCLASS), | .whereInputIs(XTMPSI.SUBCLASS), | ||
− | new | + | new If.COND(), |
− | + | ||
new Null().as(XTMPSI.SUPERCLASS) | new Null().as(XTMPSI.SUPERCLASS) | ||
) | ) | ||
[[Category:Query directives]] | [[Category:Query directives]] |
Revision as of 10:44, 21 August 2009
Description
Returns then null value
Constructor
Null()
Examples
Following example gets the superclass of input topic or null if it does not have a superclass.
importPackage(org.wandora.query2); importPackage(org.wandora.topicmap); new If( new Players(XTMPSI.SUPERCLASS_SUBCLASS,XTMPSI.SUPERCLASS) .whereInputIs(XTMPSI.SUBCLASS), new If.COND(), new Null().as(XTMPSI.SUPERCLASS) )