blob: f1da10bb2dfa034a37ef22266e1501b2dea80edd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/*
* generated by Xtext 2.16.0
*/
package hu.bme.mit.inf.dslreasoner.faulttree.components.validation
/**
* This class contains custom validation rules.
*
* See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#validation
*/
class CftLanguageValidator extends AbstractCftLanguageValidator {
// public static val INVALID_NAME = 'invalidName'
//
// @Check
// def checkGreetingStartsWithCapital(Greeting greeting) {
// if (!Character.isUpperCase(greeting.name.charAt(0))) {
// warning('Name should start with a capital',
// CftLanguagePackage.Literals.GREETING__NAME,
// INVALID_NAME)
// }
// }
}
|