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;
19 import java.lang.annotation.Documented;
20 import java.lang.annotation.Retention;
21 import java.lang.annotation.RetentionPolicy;
24 * Provide command name and schema file location, which is placed in the main resources folder (in classpath). It is
25 * recommended to keep the name for schema, in the form of onap-[command-name]-schema.yaml, considered this format as
26 * default if the schema declaration is missing for a command abc-create, schema file name could be
27 * abc-create-schema.yaml, corresponding command would like as below
29 * @OnapCommandSchema(name="abc-create", schema="onap-abc-create-schema.yaml") public class AbcCreate extends
32 @Retention(RetentionPolicy.RUNTIME)
34 public @interface OnapCommandSchema {
43 * Schema file name placed under class path
47 String schema() default "";