import org.gecko.MyBB; modeltype ECORE "strict" uses ecore('http://www.eclipse.org/emf/2002/Ecore'); modeltype TEST uses "http://dim.de/test"; transformation PersonTransformationWithBlackboxAltName(in rawIn : TEST, out rawOut : TEST); main() { rawIn.rootObjects()[Person]->map mapToFemalePerson(); } mapping Person::mapToFemalePerson() : Person { firstName := self.firstName + "in"; lastName := self.lastName + "in"; gender := GenderType::FEMALE; address := self.address.getCopyAddress(); }