TOP

while

Description

Execute the nested tasks while the condition is true, in a separate environment

Implementation class

net.mdatools.modelant.util.task.WhileTask

Nested elements

Element Description
tasks Set the tasks to execute when the condition evaluated to true This class collects nested tasks for execution

Nested elements

Element Description
Any task The tasks to execute is a non-null task to collect
Any ANT or ModelANT standard condition to satisfy. See ANT Types for more details. Choose among:
Element Description
evaluate Evaluate the condition in the environment defined from the outer current environment and the result of the execution of the tasks provided. Note that this makes possible the use of expressions and calculations in the conditions, that are dynamically evaluated (in contrast to ANT), for example in for, select, exists or any other
 Usage:
     <evaluate>
       <tasks>
         define some properties
       </tasks>
       
       a condition using the properties defined in the tasks section
     </evaluate>
     
     The tasks are optional 
 
exists Check if there is at least one element of the collection that satisfies the nested condition. Iterate over the selected objects and verify that there is at least one among them, that satisfies the nested condition.
Note:
 <exists property="name"> 
 
 is a shortcut of
 
   <exists>
     <propertSelector property="name"/>
 
If no selectors specified, it iterates on the value of "this" property
for.each Check if each element of the collection satisfies the nested condition. Iterate over the selected objects and verify that all of them satisfy the nested condition.
Note:
 <for.each property="name"> 
 
 is a shortcut of
 
   <for.each>
     <propertSelector property="name"/>
 
If no selectors specified, it iterates on the value of "this" property
isempty Check if the object to test is null, an empty list or an empty string. This class is a condition checking if a property in the current environment is to an empty value, meaning NULL, an Empty String, an empty collection or an empty array.
isequal Check if the object to test equals to the condition's parameter. Check if the object value of one property is equal to the object value of another property. The comparison is held as of Java objects, by calling their equals() method. Two properties that have no value/they are not defined. are treated as equal.
isin Check if the collection to test contains another value. This class is a condition checking if a property in the current environment is bound to an object among the objects listed in the property provided in list task attribute.
isinstanceof Check if a model element is of a meta-model class.
method.condition Call a boolean method on a Java object and use it as a condition Call the boolean method with the name and parameters provided on the named object.
uml13.issubclass A condition to check if a model class is a subclass of another model class This condition checks if a model class, specified in the 'property' attribute is a subclass of another one.
wrap.condition Wrap the model element this is invoked for and invoke the specified boolean method on the wrapper, integrating it with the regular ANT conditions.

Use <typedef resource="net/mdatools/modelant/util/antlib.xml"/>
Documentation generated by ant.doc Ant macro from ModelAnt by MDA Tools