blob: c1a77df78d134c8734e0afc23afb02ff81afead9 [file] [log] [blame]
[module genTestSelect('http://www.eclipse.org/uml2/2.0.0/UML')/]
[template public generate(class : Class)]
[comment This template is called by the main module file /]
[file ('test.txt', false))]
== Sample of text ==
=Start=
[for (attribute->select(name.startsWith('a')))]
[name/]
[/for]
[for (attribute->select(name = 'aName'))]
[name/]
[/for]
[for (attribute->select(name.startsWith('a')))]
[name/]
[/for]
[attribute->select(name = 'aName')->sep(',')/]
[attribute->select(name = 'aName')->sep(',')/]
[if (attribute->select(upper = -1 or upper > 1)->size() > 0)]
import java.util.Collection;
import java.util.HashSet;
[/if]
[for (ownedOperation->select( not hasStereotype(getProperty('find'))))]
[name/]
[/for]
[for (ownedOperation->select(not (hasStereotype(getProperty('find')))))]
[name/]
[/for]
=End=
[/file]
[/template]
[query public hasStereotype(operation : Operation, args0 : OclAny) : Boolean =
if (args0 = 'true') then true else false endif
/]
[template public mySelectScript(class : Class)]
MySelectScript Text
[/template]