Class ModelValidatorImpl
java.lang.Object
org.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidatorImpl
- All Implemented Interfaces:
groovy.lang.GroovyObject
,org.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator
@ToString
@EqualsAndHashCode
public class ModelValidatorImpl
extends Object
implements org.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator, groovy.lang.GroovyObject
-
Constructor Summary
ConstructorDescriptionModelValidatorImpl
(ErrorCollector e, List<Class<? extends org.jenkinsci.plugins.pipeline.modeldefinition.validator.DeclarativeValidatorContributor>> enabledOptionalValidators) ModelValidatorImpl
(ErrorCollector e, List<Class<? extends org.jenkinsci.plugins.pipeline.modeldefinition.validator.DeclarativeValidatorContributor>> enabledOptionalValidators, org.jenkinsci.plugins.workflow.flow.FlowExecution execution) ModelValidatorImpl
(ErrorCollector e, org.jenkinsci.plugins.workflow.flow.FlowExecution execution) -
Method Summary
Modifier and TypeMethodDescriptionorg.jenkinsci.plugins.pipeline.modeldefinition.DescriptorLookupCache
groovy.lang.MetaClass
getProperty
(String property) invokeMethod
(String method, Object arguments) void
setMetaClass
(groovy.lang.MetaClass mc) void
setProperty
(String property, Object value) boolean
validateElement
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTAgent agent) boolean
validateElement
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTAxis axis) boolean
validateElement
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTAxisContainer axes) boolean
validateElement
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBranch branch) boolean
validateElement
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBuildCondition buildCondition) boolean
validateElement
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBuildConditionsContainer post) boolean
validateElement
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBuildParameter param) boolean
validateElement
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBuildParameters params) boolean
validateElement
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTEnvironment env) boolean
validateElement
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTExclude exclude) boolean
validateElement
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTExcludeAxis axis) boolean
validateElement
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTExcludes excludes) boolean
validateElement
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTInternalFunctionCall call) boolean
validateElement
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTLibraries libraries) boolean
validateElement
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTMatrix matrix) boolean
validateElement
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTMethodCall meth) boolean
validateElement
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTOption opt) boolean
validateElement
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTOptions opts) boolean
validateElement
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTParallel parallel) boolean
validateElement
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPipelineDef pipelineDef) boolean
validateElement
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPostBuild postBuild) boolean
validateElement
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPostStage post) boolean
validateElement
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStageBase stage) boolean
validateElement
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStageInput input) boolean
validateElement
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStage stage, boolean isWithinParallel) boolean
validateElement
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStages stages) boolean
validateElement
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStep step) boolean
validateElement
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTTools t) boolean
validateElement
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTTrigger trig) boolean
validateElement
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTTriggers triggers) boolean
validateElement
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTValue value) boolean
validateElement
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTWhen when) boolean
validateElement
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTWhenCondition condition)
-
Constructor Details
-
ModelValidatorImpl
public ModelValidatorImpl(@NonNull ErrorCollector e, @NonNull List<Class<? extends org.jenkinsci.plugins.pipeline.modeldefinition.validator.DeclarativeValidatorContributor>> enabledOptionalValidators) -
ModelValidatorImpl
-
ModelValidatorImpl
public ModelValidatorImpl(@NonNull ErrorCollector e, org.jenkinsci.plugins.workflow.flow.FlowExecution execution) -
ModelValidatorImpl
public ModelValidatorImpl(@NonNull ErrorCollector e, @NonNull List<Class<? extends org.jenkinsci.plugins.pipeline.modeldefinition.validator.DeclarativeValidatorContributor>> enabledOptionalValidators, org.jenkinsci.plugins.workflow.flow.FlowExecution execution)
-
-
Method Details
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()- Specified by:
getMetaClass
in interfacegroovy.lang.GroovyObject
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc) - Specified by:
setMetaClass
in interfacegroovy.lang.GroovyObject
-
invokeMethod
- Specified by:
invokeMethod
in interfacegroovy.lang.GroovyObject
-
getProperty
- Specified by:
getProperty
in interfacegroovy.lang.GroovyObject
-
setProperty
- Specified by:
setProperty
in interfacegroovy.lang.GroovyObject
-
getLookup
public org.jenkinsci.plugins.pipeline.modeldefinition.DescriptorLookupCache getLookup() -
validateElement
public boolean validateElement(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPostBuild postBuild) - Specified by:
validateElement
in interfaceorg.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator
-
validateElement
public boolean validateElement(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPostStage post) - Specified by:
validateElement
in interfaceorg.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator
-
validateElement
public boolean validateElement(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBuildConditionsContainer post) - Specified by:
validateElement
in interfaceorg.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator
-
validateElement
public boolean validateElement(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBuildCondition buildCondition) - Specified by:
validateElement
in interfaceorg.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator
-
validateElement
public boolean validateElement(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTEnvironment env) - Specified by:
validateElement
in interfaceorg.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator
-
validateElement
public boolean validateElement(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTInternalFunctionCall call) - Specified by:
validateElement
in interfaceorg.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator
-
validateElement
public boolean validateElement(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTTools t) - Specified by:
validateElement
in interfaceorg.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator
-
validateElement
public boolean validateElement(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTWhen when) - Specified by:
validateElement
in interfaceorg.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator
-
validateElement
public boolean validateElement(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTLibraries libraries) - Specified by:
validateElement
in interfaceorg.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator
-
validateElement
public boolean validateElement(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTWhenCondition condition) - Specified by:
validateElement
in interfaceorg.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator
-
validateElement
public boolean validateElement(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStep step) - Specified by:
validateElement
in interfaceorg.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator
-
validateElement
public boolean validateElement(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTMethodCall meth) - Specified by:
validateElement
in interfaceorg.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator
-
validateElement
public boolean validateElement(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTOptions opts) - Specified by:
validateElement
in interfaceorg.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator
-
validateElement
public boolean validateElement(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTTrigger trig) - Specified by:
validateElement
in interfaceorg.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator
-
validateElement
public boolean validateElement(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTTriggers triggers) - Specified by:
validateElement
in interfaceorg.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator
-
validateElement
public boolean validateElement(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBuildParameter param) - Specified by:
validateElement
in interfaceorg.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator
-
validateElement
public boolean validateElement(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBuildParameters params) - Specified by:
validateElement
in interfaceorg.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator
-
validateElement
public boolean validateElement(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStageInput input) - Specified by:
validateElement
in interfaceorg.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator
-
validateElement
public boolean validateElement(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTOption opt) - Specified by:
validateElement
in interfaceorg.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator
-
validateElement
public boolean validateElement(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBranch branch) - Specified by:
validateElement
in interfaceorg.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator
-
validateElement
public boolean validateElement(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPipelineDef pipelineDef) - Specified by:
validateElement
in interfaceorg.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator
-
validateElement
public boolean validateElement(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStageBase stage) - Specified by:
validateElement
in interfaceorg.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator
-
validateElement
public boolean validateElement(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStage stage, boolean isWithinParallel) - Specified by:
validateElement
in interfaceorg.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator
-
validateElement
public boolean validateElement(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStages stages) - Specified by:
validateElement
in interfaceorg.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator
-
validateElement
public boolean validateElement(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTParallel parallel) - Specified by:
validateElement
in interfaceorg.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator
-
validateElement
public boolean validateElement(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTMatrix matrix) - Specified by:
validateElement
in interfaceorg.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator
-
validateElement
public boolean validateElement(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTAxisContainer axes) - Specified by:
validateElement
in interfaceorg.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator
-
validateElement
public boolean validateElement(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTAxis axis) - Specified by:
validateElement
in interfaceorg.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator
-
validateElement
public boolean validateElement(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTExcludes excludes) - Specified by:
validateElement
in interfaceorg.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator
-
validateElement
public boolean validateElement(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTExclude exclude) - Specified by:
validateElement
in interfaceorg.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator
-
validateElement
public boolean validateElement(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTExcludeAxis axis) - Specified by:
validateElement
in interfaceorg.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator
-
validateElement
public boolean validateElement(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTAgent agent) - Specified by:
validateElement
in interfaceorg.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator
-
validateElement
public boolean validateElement(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTValue value) - Specified by:
validateElement
in interfaceorg.jenkinsci.plugins.pipeline.modeldefinition.validator.ModelValidator
-