Clover icon

sunshower-core

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

File Content.java

 

Coverage histogram

../../../../../img/srcFileCovDistChart2.png
54% of files have more coverage

Code metrics

0
17
15
1
91
66
15
0.88
1.13
15
1

Classes

Class Line # Actions
Content 11 17 15
0.187518.8%
 

Contributing tests

This file is covered by 1 test. .

Source view

1    package io.sunshower.service.hal.core;
2   
3    import io.sunshower.model.core.io.File;
4    import io.sunshower.service.model.PropertyAwareObject;
5    import javax.xml.bind.annotation.XmlAttribute;
6    import javax.xml.bind.annotation.XmlElement;
7    import javax.xml.bind.annotation.XmlRootElement;
8   
9    /** Created by haswell on 10/13/17. */
10    @XmlRootElement(name = "content")
 
11    public class Content extends PropertyAwareObject<Content> {
12   
13    public static final String DEFAULT = "default";
14   
15    @XmlElement private File file;
16   
17    @XmlAttribute private Integer order;
18   
19    @XmlAttribute(name = "media-type")
20    private String mediaType;
21   
22    @XmlAttribute private String name;
23   
24    @XmlAttribute(name = "content-type")
25    private ContentType type;
26   
27    @XmlAttribute(name = "ref")
28    private String reference;
29   
 
30  2 toggle public Content() {
31  2 super(Content.class);
32    }
33   
 
34  1 toggle public Content(ContentType type, String reference) {
35  1 this();
36  1 this.type = type;
37  1 this.reference = reference;
38    }
39   
 
40  0 toggle public String getName() {
41  0 return name;
42    }
43   
 
44  0 toggle public void setName(String name) {
45  0 this.name = name;
46    }
47   
 
48  0 toggle public static String getDEFAULT() {
49  0 return DEFAULT;
50    }
51   
 
52  0 toggle public Integer getOrder() {
53  0 return order;
54    }
55   
 
56  0 toggle public void setOrder(Integer order) {
57  0 this.order = order;
58    }
59   
 
60  0 toggle public File getFile() {
61  0 return file;
62    }
63   
 
64  0 toggle public void setFile(File file) {
65  0 this.file = file;
66    }
67   
 
68  0 toggle public ContentType getContentType() {
69  0 return type;
70    }
71   
 
72  0 toggle public void setType(ContentType type) {
73  0 this.type = type;
74    }
75   
 
76  0 toggle public String getReference() {
77  0 return reference;
78    }
79   
 
80  0 toggle public void setReference(String reference) {
81  0 this.reference = reference;
82    }
83   
 
84  0 toggle public void setMediaType(String mediaType) {
85  0 this.mediaType = mediaType;
86    }
87   
 
88  0 toggle public String getMediaType() {
89  0 return mediaType;
90    }
91    }