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;
21 public class ExternalSchema {
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";
31 public String getSchemaName() {
35 public void setSchemaName(String schemaName) {
36 this.schemaName = schemaName;
39 public String getCmdName() {
43 public void setCmdName(String cmdName) {
44 this.cmdName = cmdName;
47 public String getVersion() {
51 public void setVersion(String version) {
52 this.version = version;
55 public String getCmdVersion() {
59 public void setCmdVersion(String cmdVersion) {
60 this.cmdVersion = cmdVersion;
63 public String getSchemaURI() {
67 public void setSchemaURI(String schemaURI) {
68 this.schemaURI = schemaURI;
71 public String getHttp() {
75 public void setHttp(String internal) {
79 public boolean isHttp() {
80 return this.getHttp().equals("true");
83 public String getType() {
87 public void setType(String type) {