blob: 86bc5bf15e9242516f98428aaa529d53e4e794a5 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<query:ModelQuerySet xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:query="http://www.eclipse.org/MoDisco/infra/query/0.8.incubation" name="_example_uml">
<associatedMetamodels href="http://www.eclipse.org/uml2/3.0.0/UML#/"/>
<queries xsi:type="query:OCLModelQuery" name="isMetaClass" description="true if the element has the Metaclass stereotype" query="self.isStereotypeApplied(self.getApplicableStereotypes()->select(e|e.name='Metaclass')->asSequence()->first())">
<returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
<scope href="http://www.eclipse.org/uml2/3.0.0/UML#//Element"/>
</queries>
<queries xsi:type="query:JavaModelQuery" name="allAttributes" description="returns all the attributes of the Classifier" upperBound="-1" implementationClassName="org.eclipse.gmt.modisco.infra.browser.custom.examples.uml.AllAttributes">
<returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/3.0.0/UML#//Property"/>
<scope href="http://www.eclipse.org/uml2/3.0.0/UML#//Classifier"/>
</queries>
<queries xsi:type="query:JavaModelQuery" name="allParents" description="returns all the Classifiers directly or indirectly referenced by a Generalization link from this Classifier" upperBound="-1" implementationClassName="org.eclipse.gmt.modisco.infra.browser.custom.examples.uml.AllParents">
<returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/3.0.0/UML#//Classifier"/>
<scope href="http://www.eclipse.org/uml2/3.0.0/UML#//Classifier"/>
</queries>
<queries xsi:type="query:JavaModelQuery" name="isAssociationEnd" description="returns whether the given Property has an Association" implementationClassName="org.eclipse.gmt.modisco.infra.browser.custom.examples.uml.IsAssociationEnd">
<returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
<scope href="http://www.eclipse.org/uml2/3.0.0/UML#//Property"/>
</queries>
<queries xsi:type="query:JavaModelQuery" name="parents" description="returns all the Classifiers directly referenced by a Generalization link from this Classifier" upperBound="-1" implementationClassName="org.eclipse.gmt.modisco.infra.browser.custom.examples.uml.Parents">
<returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/3.0.0/UML#//Classifier"/>
<scope href="http://www.eclipse.org/uml2/3.0.0/UML#//Classifier"/>
</queries>
<queries xsi:type="query:JavaModelQuery" name="isStringProperty" description="returns true if the Property has type &quot;String&quot;" implementationClassName="org.eclipse.gmt.modisco.infra.browser.custom.examples.uml.IsStringProperty">
<returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
<scope href="http://www.eclipse.org/uml2/3.0.0/UML#//Property"/>
</queries>
<queries xsi:type="query:JavaModelQuery" name="subClassifiers" description="returns the Classifiers that are children through Generalizations of this Classifier" upperBound="-1" implementationClassName="org.eclipse.gmt.modisco.infra.browser.custom.examples.uml.SubClassifiers">
<returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/3.0.0/UML#//Classifier"/>
<scope href="http://www.eclipse.org/uml2/3.0.0/UML#//Classifier"/>
</queries>
<queries xsi:type="query:OCLModelQuery" name="isUtility" description="returns whether this Element has the &quot;Utility&quot; stereotype" query="self.isStereotypeApplied(self.getApplicableStereotypes()->select(e|e.name='Utility')->asSequence()->first())">
<returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
<scope href="http://www.eclipse.org/uml2/3.0.0/UML#//Element"/>
</queries>
<queries xsi:type="query:OCLModelQuery" name="isQuery" description="returns whether one of the superclasses of this Class is named &quot;Query&quot;" query="self.general->exists(e|e.name='Query')">
<returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
<scope href="http://www.eclipse.org/uml2/3.0.0/UML#//Class"/>
</queries>
</query:ModelQuerySet>