Clover icon

sunshower-core

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

File Layout.java

 

Coverage histogram

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

Code metrics

0
11
12
1
67
47
12
1.09
0.92
12
1

Classes

Class Line # Actions
Layout 9 11 12
0.4782608747.8%
 

Contributing tests

This file is covered by 7 tests. .

Source view

1    package io.sunshower.service.hal.core;
2   
3    import javax.xml.bind.annotation.XmlAttribute;
4    import javax.xml.bind.annotation.XmlRootElement;
5    import org.eclipse.persistence.oxm.annotations.XmlInverseReference;
6   
7    /** Created by haswell on 5/22/17. */
8    @XmlRootElement(name = "layout")
 
9    public class Layout {
10   
11    @XmlAttribute private double x;
12   
13    @XmlAttribute private double y;
14   
15    @XmlAttribute private double width;
16   
17    @XmlAttribute private double height;
18   
19    @XmlInverseReference(mappedBy = "layout")
20    private Element element;
21   
 
22  17 toggle public Layout() {}
23   
 
24  38 toggle public Layout(Element host) {
25  38 this.element = host;
26    }
27   
 
28  0 toggle public Element getElement() {
29  0 return element;
30    }
31   
 
32  0 toggle public void setElement(Element element) {
33  0 this.element = element;
34    }
35   
 
36  0 toggle public double getX() {
37  0 return x;
38    }
39   
 
40  16 toggle public void setX(double x) {
41  16 this.x = x;
42    }
43   
 
44  0 toggle public double getY() {
45  0 return y;
46    }
47   
 
48  16 toggle public void setY(double y) {
49  16 this.y = y;
50    }
51   
 
52  0 toggle public double getWidth() {
53  0 return width;
54    }
55   
 
56  16 toggle public void setWidth(double width) {
57  16 this.width = width;
58    }
59   
 
60  0 toggle public double getHeight() {
61  0 return height;
62    }
63   
 
64  16 toggle public void setHeight(double height) {
65  16 this.height = height;
66    }
67    }