mirror of
https://github.com/danieldemus/openhab-core.git
synced 2026-07-31 13:34:24 +02:00
Generate{Persistence,Rule,Script}.mwe2: do not generate Validator.xtend stubs (#5503)
This commit is contained in:
+3
@@ -52,6 +52,9 @@ Workflow {
|
|||||||
serializer = {
|
serializer = {
|
||||||
generateStub = false
|
generateStub = false
|
||||||
}
|
}
|
||||||
|
validator = {
|
||||||
|
generateStub = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
-36
@@ -1,36 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2010-2026 Contributors to the openHAB project
|
|
||||||
*
|
|
||||||
* See the NOTICE file(s) distributed with this work for additional
|
|
||||||
* information.
|
|
||||||
*
|
|
||||||
* This program and the accompanying materials are made available under the
|
|
||||||
* terms of the Eclipse Public License 2.0 which is available at
|
|
||||||
* http://www.eclipse.org/legal/epl-2.0
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: EPL-2.0
|
|
||||||
*/
|
|
||||||
/*
|
|
||||||
* generated by Xtext
|
|
||||||
*/
|
|
||||||
package org.openhab.core.model.persistence.validation
|
|
||||||
//import org.eclipse.xtext.validation.Check
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Custom validation rules.
|
|
||||||
*
|
|
||||||
* see http://www.eclipse.org/Xtext/documentation.html#validation
|
|
||||||
*/
|
|
||||||
class PersistenceValidator extends AbstractPersistenceValidator {
|
|
||||||
|
|
||||||
// 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',
|
|
||||||
// MyDslPackage.Literals.GREETING__NAME,
|
|
||||||
// INVALID_NAME)
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
@@ -54,6 +54,9 @@ Workflow {
|
|||||||
serializer = {
|
serializer = {
|
||||||
generateStub = false
|
generateStub = false
|
||||||
}
|
}
|
||||||
|
validator = {
|
||||||
|
generateStub = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
-36
@@ -1,36 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2010-2026 Contributors to the openHAB project
|
|
||||||
*
|
|
||||||
* See the NOTICE file(s) distributed with this work for additional
|
|
||||||
* information.
|
|
||||||
*
|
|
||||||
* This program and the accompanying materials are made available under the
|
|
||||||
* terms of the Eclipse Public License 2.0 which is available at
|
|
||||||
* http://www.eclipse.org/legal/epl-2.0
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: EPL-2.0
|
|
||||||
*/
|
|
||||||
/*
|
|
||||||
* generated by Xtext
|
|
||||||
*/
|
|
||||||
package org.openhab.core.model.rule.validation
|
|
||||||
//import org.eclipse.xtext.validation.Check
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Custom validation rules.
|
|
||||||
*
|
|
||||||
* see http://www.eclipse.org/Xtext/documentation.html#validation
|
|
||||||
*/
|
|
||||||
class RulesValidator extends AbstractRulesValidator {
|
|
||||||
|
|
||||||
// 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',
|
|
||||||
// MyDslPackage.Literals.GREETING__NAME,
|
|
||||||
// INVALID_NAME)
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
+3
@@ -52,6 +52,9 @@ Workflow {
|
|||||||
serializer = {
|
serializer = {
|
||||||
generateStub = false
|
generateStub = false
|
||||||
}
|
}
|
||||||
|
validator = {
|
||||||
|
generateStub = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
-36
@@ -1,36 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2010-2026 Contributors to the openHAB project
|
|
||||||
*
|
|
||||||
* See the NOTICE file(s) distributed with this work for additional
|
|
||||||
* information.
|
|
||||||
*
|
|
||||||
* This program and the accompanying materials are made available under the
|
|
||||||
* terms of the Eclipse Public License 2.0 which is available at
|
|
||||||
* http://www.eclipse.org/legal/epl-2.0
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: EPL-2.0
|
|
||||||
*/
|
|
||||||
/*
|
|
||||||
* generated by Xtext
|
|
||||||
*/
|
|
||||||
package org.openhab.core.model.script.validation
|
|
||||||
//import org.eclipse.xtext.validation.Check
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Custom validation rules.
|
|
||||||
*
|
|
||||||
* see http://www.eclipse.org/Xtext/documentation.html#validation
|
|
||||||
*/
|
|
||||||
class ScriptValidator extends AbstractScriptValidator {
|
|
||||||
|
|
||||||
// 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',
|
|
||||||
// MyDslPackage.Literals.GREETING__NAME,
|
|
||||||
// INVALID_NAME)
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user