Null (query directive)

From WandoraWiki
(Difference between revisions)
Jump to: navigation, search
 
Line 9: Line 9:
 
== Examples ==
 
== Examples ==
  
Following example gets the superclass of input topic or null if it does not have a superclass.
+
Following example gets the superclass of input topic or null if it does not have a superclass.
  
 
  importPackage(org.wandora.query2);
 
  importPackage(org.wandora.query2);

Latest revision as of 13:22, 25 August 2009

[edit] Description

Returns then null value

[edit] Constructor

Null()

[edit] 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)
)
Personal tools