diff options
author | 2020-07-15 05:03:08 +0000 | |
---|---|---|
committer | 2020-07-15 05:03:08 +0000 | |
commit | 417efc335c8d4ee2154e9e7466619153dc185cec (patch) | |
tree | 4a76321e3f7ae6cd61d012c0147c6ddb108b42f6 /csarvalidation/src/main/java/org/onap/validation/yaml/error/YamlDocumentValidationError.java | |
parent | 12b638d643a95daa7b3b65835d9781558ad3030a (diff) | |
parent | 4ce8c75c2559bde35b5fca46ec2c94d6b5070b6f (diff) |
Merge "use YAML schema validator in rule R816745"
Diffstat (limited to 'csarvalidation/src/main/java/org/onap/validation/yaml/error/YamlDocumentValidationError.java')
-rw-r--r-- | csarvalidation/src/main/java/org/onap/validation/yaml/error/YamlDocumentValidationError.java | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/csarvalidation/src/main/java/org/onap/validation/yaml/error/YamlDocumentValidationError.java b/csarvalidation/src/main/java/org/onap/validation/yaml/error/YamlDocumentValidationError.java new file mode 100644 index 0000000..f04708f --- /dev/null +++ b/csarvalidation/src/main/java/org/onap/validation/yaml/error/YamlDocumentValidationError.java @@ -0,0 +1,42 @@ +/* + * Copyright 2020 Nokia + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +package org.onap.validation.yaml.error; + +public class YamlDocumentValidationError { + private final int yamlDocumentNumber; + private final String path; + private final String message; + + public YamlDocumentValidationError(int yamlDocumentNumber, String path, String message) { + this.yamlDocumentNumber = yamlDocumentNumber; + this.path = path; + this.message = message; + } + + public int getYamlDocumentNumber() { + return yamlDocumentNumber; + } + + public String getPath() { + return path; + } + + public String getMessage() { + return message; + } +} |