2 * Copyright 2017 Huawei Technologies Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package org.onap.cli.fw.utils;
19 import org.onap.cli.fw.cmd.CommandType;
20 import org.onap.cli.fw.conf.Constants;
23 * SchemaInfo is used in discovery caching.
26 public class SchemaInfo {
29 * Name of the schema file name
31 private String schemaName;
34 * Schema location in complete path
36 private String schemaURI;
38 private String cmdName;
40 private String product;
45 private String version;
47 private String type = CommandType.CMD.name();
49 private String schemaProfile = Constants.BASIC_SCHEMA_PROFILE;
51 public String getSchemaName() {
55 public void setSchemaName(String schemaName) {
56 this.schemaName = schemaName;
59 public String getCmdName() {
63 public void setCmdName(String cmdName) {
64 this.cmdName = cmdName;
67 public String getVersion() {
71 public void setVersion(String version) {
72 this.version = version;
75 public String getProduct() {
79 public void setProduct(String cmdVersion) {
80 this.product = cmdVersion;
83 public String getSchemaURI() {
87 public void setSchemaURI(String schemaURI) {
88 this.schemaURI = schemaURI;
91 public String getSchemaProfile() {
95 public void setSchemaProfile(String internal) {
96 this.schemaProfile = internal;
99 public String getType() {
103 public void setType(String type) {