0c6d3592bd1d4ed88be1a5f7d821add1cc54e6ed
[policy/apex-pdp.git] /
1 /*-
2  * ============LICENSE_START=======================================================
3  *  Copyright (C) 2016-2018 Ericsson. All rights reserved.
4  *  Modifications Copyright (C) 2021 AT&T Intellectual Property. All rights reserved.
5  * ================================================================================
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *      http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  * SPDX-License-Identifier: Apache-2.0
19  * ============LICENSE_END=========================================================
20  */
21
22 package org.onap.policy.apex.context.parameters;
23
24 import org.onap.policy.common.parameters.ParameterGroupImpl;
25 import org.onap.policy.common.parameters.annotations.ClassName;
26 import org.onap.policy.common.parameters.annotations.NotNull;
27
28 /**
29  * An empty schema helper parameter class that may be specialized by context schema helper plugins that require plugin
30  * specific parameters.
31  *
32  * @author Liam Fallon (liam.fallon@ericsson.com)
33  */
34 @NotNull
35 public class SchemaHelperParameters extends ParameterGroupImpl {
36     private @ClassName String schemaHelperPluginClass;
37
38     /**
39      * Constructor to create a schema helper parameters instance and register the instance with the parameter service.
40      */
41     public SchemaHelperParameters() {
42         super();
43     }
44
45     /**
46      * Gets the schema helper plugin class.
47      *
48      * @return the schema helper plugin class
49      */
50     public String getSchemaHelperPluginClass() {
51         return schemaHelperPluginClass;
52     }
53
54     /**
55      * Sets the schema helper plugin class.
56      *
57      * @param pluginClass the schema helper plugin class
58      */
59     public void setSchemaHelperPluginClass(final String pluginClass) {
60         schemaHelperPluginClass = pluginClass;
61     }
62
63     @Override
64     public String toString() {
65         return "SchemaHelperParameters [name=" + getName() + ", schemaHelperPluginClass=" + schemaHelperPluginClass
66                         + "]";
67     }
68 }