blob: f6fa93ab4bc07d48919f30df748148cc25b7c749 [file] [log] [blame]
* Copyright (c) 2012 Willink Transformations and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* Contributors:
* E.D.Willink - Initial API and implementation
* This file provides additional validation constraints for use during the Complete OCL tutorial.
import ''
package xtext
context ReferencedMetamodel
inv NoAnonymousImports: alias <> null
context Action
inv NoActions : false
context ParserRule
inv CamelCaseName : name <> null implies name.matches('[A-Z][A-Za-z]*')
context xtext::TerminalRule
inv UpperName : name <> null implies name = name.toUpperCase()