Skip to content

Package: TypeDescriptor

TypeDescriptor

nameinstructionbranchcomplexitylinemethod
TypeDescriptor()
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%
TypeDescriptor(String, String)
M: 9 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 4 C: 0
0%
M: 1 C: 0
0%
getIndex()
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%
getType()
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%
setIndex(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%
setType(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%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2017, 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.service.elasticsearch.client.model;
14:
15: /**
16: * The {@link TypeDescriptor} defines the index and type of the object(s) which iit is associated with.
17: *
18: * @since 1.0.0
19: */
20: public class TypeDescriptor {
21:
22: private String index;
23: private String type;
24:
25: /**
26: * Empty constructor required by JAXB.
27: *
28: * @since 1.0.0
29: */
30: public TypeDescriptor() {
31: }
32:
33: /**
34: * Constuctor.
35: *
36: * @param index The index of this {@link #getType()}
37: * @param type The type of the object.
38: * @since 1.0.0
39: */
40: public TypeDescriptor(String index, String type) {
41: this.index = index;
42: this.type = type;
43: }
44:
45: /**
46: * Gets the index name.
47: *
48: * @return The index name.
49: * @since 1.0.0
50: */
51: public String getIndex() {
52: return index;
53: }
54:
55: /**
56: * Sets the index name.
57: *
58: * @param index The index name.
59: * @since 1.0.0
60: */
61: public void setIndex(String index) {
62: this.index = index;
63: }
64:
65: /**
66: * Gets the type of the object in the index.
67: *
68: * @return The type of the object in the index.
69: * @since 1.0.0
70: */
71: public String getType() {
72: return type;
73: }
74:
75: /**
76: * Sets the type of the object in the index.
77: *
78: * @param type The type of the object in the index.
79: * @since 1.0.0
80: */
81: public void setType(String type) {
82: this.type = type;
83: }
84:
85: }