Clover icon

sunshower-sdk

  1. Project Clover database Wed Apr 4 2018 21:39:43 UTC
  2. Package io.sunshower.sdk.v1.model.core.element

File Value.java

 

Coverage histogram

../../../../../../../img/srcFileCovDistChart0.png
34% of files have more coverage

Code metrics

0
3
3
1
29
20
3
1
1
3
1

Classes

Class Line # Actions
Value 10 3 3
0.00%
 

Contributing tests

No tests hitting this source file were found.

Source view

1    package io.sunshower.sdk.v1.model.core.element;
2   
3    import io.sunshower.sdk.v1.model.core.converters.ValueAdapter;
4   
5    import javax.xml.bind.annotation.XmlAttribute;
6    import javax.xml.bind.annotation.XmlRootElement;
7    import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
8   
9    @XmlRootElement(name = "value")
 
10    public abstract class Value<T extends Value<T, V>, V> extends Element<T> {
11   
12    @XmlAttribute
13    @XmlJavaTypeAdapter(ValueAdapter.class)
14    private V value;
15   
 
16  0 toggle protected Value() {
17   
18    }
19   
20   
 
21  0 toggle protected Value(Class<T> type, V value) {
22  0 super(type);
23  0 this.value = value;
24    }
25   
 
26  0 toggle public V getValue() {
27  0 return value;
28    }
29    }