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 LinkElement.java

 

Coverage histogram

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

Code metrics

0
5
5
1
43
31
5
1
1
5
1

Classes

Class Line # Actions
LinkElement 12 5 5
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.common.Identifier;
4    import io.sunshower.common.rs.IdentifierConverter;
5    import org.eclipse.persistence.oxm.annotations.XmlDiscriminatorValue;
6   
7    import javax.xml.bind.annotation.XmlAttribute;
8    import javax.xml.bind.annotation.XmlRootElement;
9    import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
10   
11    @XmlRootElement(name = "link")
 
12    public class LinkElement extends AbstractElement<LinkElement> {
13   
14   
15    @XmlAttribute
16    @XmlJavaTypeAdapter(IdentifierConverter.class)
17    private Identifier source;
18   
19   
20    @XmlAttribute
21    @XmlJavaTypeAdapter(IdentifierConverter.class)
22    private Identifier target;
23   
 
24  0 toggle public LinkElement() {
25  0 super(LinkElement.class);
26    }
27   
 
28  0 toggle public Identifier getSource() {
29  0 return source;
30    }
31   
 
32  0 toggle public void setSource(Identifier source) {
33  0 this.source = source;
34    }
35   
 
36  0 toggle public Identifier getTarget() {
37  0 return target;
38    }
39   
 
40  0 toggle public void setTarget(Identifier target) {
41  0 this.target = target;
42    }
43    }