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

 

Coverage histogram

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

Code metrics

2
3
1
1
27
20
2
0.67
3
1
2

Classes

Class Line # Actions
PropertyAwareElement 13 3 2
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 lombok.Getter;
4    import lombok.Setter;
5   
6    import javax.xml.bind.annotation.XmlElement;
7    import javax.xml.bind.annotation.XmlElementWrapper;
8    import java.util.ArrayList;
9    import java.util.List;
10   
11    @Getter
12    @Setter
 
13    public class PropertyAwareElement<E extends PropertyAwareElement<E>> extends AbstractElement<E> {
14   
15    @XmlElement(name = "property")
16    @XmlElementWrapper(name = "properties")
17    private List<PropertyElement> properties;
18   
 
19  0 toggle public void addProperty(PropertyElement el) {
20  0 if (properties == null) {
21  0 properties = new ArrayList<>();
22    }
23  0 properties.add(el);
24    }
25   
26   
27    }