| [Xpand] validation syntax [message #1052634] |
Tue, 30 April 2013 06:29  |
Dan Barr Messages: 10 Registered: April 2013 |
Junior Member |
|
|
Hi,
Im following the xPand tutorial and Im attempting to validate my dsl using the following:
@Check
def checkGreetingStartsWithCapital(Entity greeting) {
if (!Character::isUpperCase(greeting.name.charAt(0))) {
warning("Name should start with a capital",
DomainmodelPackage$Literals::TYPE__NAME);
}}
However it domainmodelpackage cannot be resolved to a type, when I opened the file the example text had MyDslpackage but this also doesnt work, I have named my files the same as the tutorial.
What should I be looking for to put in here?
Thanks
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01853 seconds