Add command type to support auth and catalog
[cli.git] / framework / src / main / java / org / onap / cli / fw / utils / ExternalSchema.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
21 public class ExternalSchema {
22
23     private String schemaName;
24     private String schemaURI;
25     private String cmdName;
26     private String cmdVersion;
27     private String version;
28     private String type = CommandType.CMD.name();
29     private String http = "false";
30
31     public String getSchemaName() {
32         return schemaName;
33     }
34
35     public void setSchemaName(String schemaName) {
36         this.schemaName = schemaName;
37     }
38
39     public String getCmdName() {
40         return cmdName;
41     }
42
43     public void setCmdName(String cmdName) {
44         this.cmdName = cmdName;
45     }
46
47     public String getVersion() {
48         return version;
49     }
50
51     public void setVersion(String version) {
52         this.version = version;
53     }
54
55     public String getCmdVersion() {
56         return cmdVersion;
57     }
58
59     public void setCmdVersion(String cmdVersion) {
60         this.cmdVersion = cmdVersion;
61     }
62
63     public String getSchemaURI() {
64         return schemaURI;
65     }
66
67     public void setSchemaURI(String schemaURI) {
68         this.schemaURI = schemaURI;
69     }
70
71     public String getHttp() {
72         return http;
73     }
74
75     public void setHttp(String internal) {
76         this.http = internal;
77     }
78
79     public boolean isHttp() {
80         return this.getHttp().equals("true");
81     }
82
83     public String getType() {
84         return type;
85     }
86
87     public void setType(String type) {
88         this.type = type;
89     }
90
91
92
93 }