Clover icon

sunshower-core

  1. Project Clover database Fri Apr 6 2018 03:27:42 UTC
  2. Package io.sunshower.service.hal.core

File Edge.java

 

Coverage histogram

../../../../../img/srcFileCovDistChart5.png
36% of files have more coverage

Code metrics

0
7
7
1
48
35
7
1
1
7
1

Classes

Class Line # Actions
Edge 12 7 7
0.4285714342.9%
 

Contributing tests

This file is covered by 5 tests. .

Source view

1    package io.sunshower.service.hal.core;
2   
3    import javax.xml.bind.annotation.XmlAttribute;
4    import javax.xml.bind.annotation.XmlElement;
5    import javax.xml.bind.annotation.XmlIDREF;
6    import javax.xml.bind.annotation.XmlRootElement;
7    import org.eclipse.persistence.oxm.annotations.XmlDiscriminatorValue;
8   
9    /** Created by haswell on 5/22/17. */
10    @XmlRootElement(name = "abstract-edge")
11    @XmlDiscriminatorValue("abstract-edge")
 
12    public class Edge extends AbstractElement<Edge> {
13   
14    @XmlIDREF @XmlElement private Vertex target;
15   
16    @XmlIDREF @XmlElement private Vertex source;
17   
18    @XmlAttribute private String relationship;
19   
 
20  13 toggle @SuppressWarnings("unchecked")
21    public Edge() {
22  13 super(Edge.class);
23    }
24   
 
25  0 toggle public Vertex getSource() {
26  0 return source;
27    }
28   
 
29  0 toggle public Vertex getTarget() {
30  0 return target;
31    }
32   
 
33  7 toggle public void setSource(Vertex source) {
34  7 this.source = source;
35    }
36   
 
37  7 toggle public void setTarget(Vertex target) {
38  7 this.target = target;
39    }
40   
 
41  0 toggle public String getRelationship() {
42  0 return relationship;
43    }
44   
 
45  0 toggle public void setRelationship(String relationship) {
46  0 this.relationship = relationship;
47    }
48    }