/* * generated by Xtext */ package org.eclipse.qvto.examples.xtext.imperativeocl.validation; /** * Custom validation rules. * * see http://www.eclipse.org/Xtext/documentation.html#validation */ public class ImperativeOCLJavaValidator extends org.eclipse.qvto.examples.xtext.imperativeocl.validation.AbstractImperativeOCLJavaValidator { // @Check // public void checkGreetingStartsWithCapital(Greeting greeting) { // if (!Character.isUpperCase(greeting.getName().charAt(0))) { // warning("Name should start with a capital", MyDslPackage.Literals.GREETING__NAME); // } // } }