Skip to content

Package: ServiceComponentConfigurationImpl

ServiceComponentConfigurationImpl

nameinstructionbranchcomplexitylinemethod
ServiceComponentConfigurationImpl()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
ServiceComponentConfigurationImpl(String)
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
getDefinition()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getId()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getName()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getProperties()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
setDefinition(KapuaTocd)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
setId(String)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
setName(String)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
setProperties(Map)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2019, 2022 Eurotech and/or its affiliates and others
3: *
4: * This program and the accompanying materials are made
5: * available under the terms of the Eclipse Public License 2.0
6: * which is available at https://www.eclipse.org/legal/epl-2.0/
7: *
8: * SPDX-License-Identifier: EPL-2.0
9: *
10: * Contributors:
11: * Eurotech - initial API and implementation
12: *******************************************************************************/
13: package org.eclipse.kapua.commons.configuration;
14:
15: import java.util.Map;
16:
17: import org.eclipse.kapua.service.config.ServiceComponentConfiguration;
18: import org.eclipse.kapua.commons.configuration.metatype.TocdImpl;
19: import org.eclipse.kapua.model.config.metatype.KapuaTocd;
20:
21: /**
22: * Service component configuration entity implementation.
23: *
24: * @since 1.0
25: */
26: public class ServiceComponentConfigurationImpl implements ServiceComponentConfiguration {
27:
28: private String id;
29: private String name;
30: private TocdImpl definition;
31: private Map<String, Object> properties;
32:
33: /**
34: * Constructor
35: */
36: public ServiceComponentConfigurationImpl() {
37: }
38:
39: /**
40: * Constructor
41: *
42: * @param id
43: */
44: public ServiceComponentConfigurationImpl(String id) {
45: this.id = id;
46: }
47:
48: @Override
49: public String getId() {
50: return id;
51: }
52:
53: @Override
54: public void setId(String id) {
55: this.id = id;
56: }
57:
58: @Override
59: public String getName() {
60: return name;
61: }
62:
63: @Override
64: public void setName(String name) {
65: this.name = name;
66: }
67:
68: @Override
69: public void setDefinition(KapuaTocd definition) {
70: this.definition = (TocdImpl) definition;
71: }
72:
73: @Override
74: public KapuaTocd getDefinition() {
75: return definition;
76: }
77:
78: @Override
79: public Map<String, Object> getProperties() {
80: return properties;
81: }
82:
83: @Override
84: public void setProperties(Map<String, Object> properties) {
85: this.properties = properties;
86: }
87: }