mirror of https://github.com/Minres/RDL-Editor.git
26 lines
582 B
Plaintext
26 lines
582 B
Plaintext
|
/*
|
||
|
* generated by Xtext 2.12.0
|
||
|
*/
|
||
|
package com.minres.rdl.validation
|
||
|
|
||
|
|
||
|
/**
|
||
|
* This class contains custom validation rules.
|
||
|
*
|
||
|
* See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#validation
|
||
|
*/
|
||
|
class RDLValidator extends AbstractRDLValidator {
|
||
|
|
||
|
// 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',
|
||
|
// RDLPackage.Literals.GREETING__NAME,
|
||
|
// INVALID_NAME)
|
||
|
// }
|
||
|
// }
|
||
|
|
||
|
}
|