현재 규칙 오브젝트의 참조로서 Java의 this 키워드와 비슷합니다.
<?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"> <!-- 이 개인이 소유한 애완동물 --> <Attribute name="pets"> <type> <javaclass name="List"> <ruleclass name="Pet"/> </javaclass> </type> <derivation> <fixedlist> <listof> <ruleclass name="Pet"/> </listof> <members> <!-- 모든 개인에게 정확히 두 마리의 애완동물인 Skippy와 Lassie가 있습니다. --> <create ruleclass="Pet"> <!-- 소유자가 이(THIS) 사람이 되도록 설정 --> <this/> <String value="Skippy"/> <String value="Kangaroo"/> </create> <create ruleclass="Pet"> <!-- 소유자가 이(THIS) 사람이 되도록 설정 --> <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>