blob: b700c473c98e41ec1b1df9d05cdd80fdb539d347 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
package org.openecomp.sdc.toscaparser.api.parameters;
import java.util.Objects;
import org.openecomp.sdc.toscaparser.jython.parameters.JyInput;
import com.google.common.base.MoreObjects;
public class Input {
private final JyInput jyInput;
public Input(JyInput jyInput) {
this.jyInput = Objects.requireNonNull(jyInput);
}
public String getName() {
return jyInput.getJyName();
}
public String getType() {
return jyInput.getJyType();
}
public boolean isRequired() {
return jyInput.isJyRequired();
}
public String getDescription() {
return jyInput.getJyDescription();
}
@Override
public String toString() {
return MoreObjects.toStringHelper(this)
.add("name", getName())
.add("type", getType())
.add("required", isRequired())
.add("description", getDescription())
.toString();
}
}
|