Add schema type for plugins like http
[cli.git] / framework / src / main / java / org / onap / cli / fw / utils / SchemaInfo.java
1 /*
2  * Copyright 2017 Huawei Technologies Co., Ltd.
3  *
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
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 package org.onap.cli.fw.utils;
18
19 import org.onap.cli.fw.cmd.CommandType;
20 import org.onap.cli.fw.conf.Constants;
21
22 /**
23  * SchemaInfo is used in discovery caching.
24  *
25  */
26 public class SchemaInfo {
27
28     /**
29      * Name of the schema file name
30      */
31     private String schemaName;
32
33     /**
34      * Schema location in complete path
35      */
36     private String schemaURI;
37
38     private String cmdName;
39
40     private String product;
41
42     /**
43      * OCS version
44      */
45     private String version;
46
47     private String type = CommandType.CMD.name();
48
49     private String schemaProfile = Constants.BASIC_SCHEMA_PROFILE;
50
51     public String getSchemaName() {
52         return schemaName;
53     }
54
55     public void setSchemaName(String schemaName) {
56         this.schemaName = schemaName;
57     }
58
59     public String getCmdName() {
60         return cmdName;
61     }
62
63     public void setCmdName(String cmdName) {
64         this.cmdName = cmdName;
65     }
66
67     public String getVersion() {
68         return version;
69     }
70
71     public void setVersion(String version) {
72         this.version = version;
73     }
74
75     public String getProduct() {
76         return product;
77     }
78
79     public void setProduct(String cmdVersion) {
80         this.product = cmdVersion;
81     }
82
83     public String getSchemaURI() {
84         return schemaURI;
85     }
86
87     public void setSchemaURI(String schemaURI) {
88         this.schemaURI = schemaURI;
89     }
90
91     public String getSchemaProfile() {
92         return schemaProfile;
93     }
94
95     public void setSchemaProfile(String internal) {
96         this.schemaProfile = internal;
97     }
98
99     public String getType() {
100         return type;
101     }
102
103     public void setType(String type) {
104         this.type = type;
105     }
106
107
108
109 }