Change nexus values to properties
[appc.git] / appc-dispatcher / appc-workflow-management / appc-workflow-management-core / src / main / java / org / openecomp / appc / workflow / impl / WorkflowKey.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * openECOMP : APP-C
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights
6  *                                              reserved.
7  * ================================================================================
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  * 
12  *      http://www.apache.org/licenses/LICENSE-2.0
13  * 
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  * ============LICENSE_END=========================================================
20  */
21
22 package org.openecomp.appc.workflow.impl;
23
24 class WorkflowKey {
25     private final String name;
26     private final String version;
27     private final String module;
28
29     WorkflowKey(String name, String version, String module) {
30         this.name = name;
31         this.version = version;
32         this.module = module;
33     }
34
35     String name() {
36         return name;
37     }
38
39     String version() {
40         return version;
41     }
42
43     String module() {
44         return module;
45     }
46
47     @Override
48     public String toString() {
49         StringBuilder buff = new StringBuilder(128);
50         buff.append("{");
51         buff.append("module = ").append(module);
52         buff.append(", ");
53         buff.append("name = ").append(name);
54         buff.append(", ");
55         buff.append("version = ").append(version);
56         buff.append("}");
57         return buff.toString();
58     }
59 }