Dieser Ausdruck verweist auf das aktuelle Regelobjekt (analog zum Schlüsselwort this in Java).
<?xml version="1.0" encoding="UTF-8"?> <RuleSet name="Example_this" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "http://www.curamsoftware.com/CreoleRulesSchema.xsd"> <Class name="Person"> <!-- The pets owned by this Person --> <Attribute name="pets"> <type> <javaclass name="List"> <ruleclass name="Pet"/> </javaclass> </type> <derivation> <fixedlist> <listof> <ruleclass name="Pet"/> </listof> <members> <!-- Every Person has exactly two pets, Skippy and Lassie --> <create ruleclass="Pet"> <!-- set the owner to be THIS Person --> <this/> <String value="Skippy"/> <String value="Kangaroo"/> </create> <create ruleclass="Pet"> <!-- set the owner to be THIS Person --> <this/> <String value="Lassie"/> <String value="Dog"/> </create> </members> </fixedlist> </derivation> </Attribute> </Class> <Class name="Pet"> <Initialization> <Attribute name="owner"> <type> <ruleclass name="Person"/> </type> </Attribute> <Attribute name="name"> <type> <javaclass name="String"/> </type> </Attribute> <Attribute name="species"> <type> <javaclass name="String"/> </type> </Attribute> </Initialization> </Class> </RuleSet>