Package: Tattribute

Tattribute

nameinstructionbranchcomplexitylinemethod
Tattribute()
M: 8 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
getAdref()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getAny()
M: 11 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
getContent()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getOtherAttributes()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getValue()
M: 11 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
setAdref(String)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
setContent(String)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011, 2016 Eurotech and/or its affiliates
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License v1.0
6: * which accompanies this distribution, and is available at
7: * http://www.eclipse.org/legal/epl-v10.html
8: *
9: * Contributors:
10: * Eurotech
11: *******************************************************************************/
12: //
13: // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.2-147
14: // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
15: // Any modifications to this file will be lost upon recompilation of the source schema.
16: // Generated on: 2012.11.25 at 06:05:15 PM CET
17: //
18:
19: package org.eclipse.kura.core.configuration.metatype;
20:
21: import java.util.ArrayList;
22: import java.util.HashMap;
23: import java.util.List;
24: import java.util.Map;
25:
26: import javax.xml.namespace.QName;
27:
28: import org.eclipse.kura.configuration.metatype.Attribute;
29: import org.w3c.dom.Element;
30:
31: /**
32: * <p>
33: * Java class for Tattribute complex type.
34: *
35: * <p>
36: * The following schema fragment specifies the expected content contained within this class.
37: *
38: * <pre>
39: * <complexType name="Tattribute">
40: * <complexContent>
41: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
42: * <sequence>
43: * <element name="Value" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
44: * <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
45: * </sequence>
46: * <attribute name="adref" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
47: * <attribute name="content" type="{http://www.w3.org/2001/XMLSchema}string" />
48: * <anyAttribute/>
49: * </restriction>
50: * </complexContent>
51: * </complexType>
52: * </pre>
53: *
54: *
55: */
56: public class Tattribute implements Attribute {
57:
58: protected List<String> value;
59: protected List<Object> any;
60: protected String adref;
61: protected String content;
62: private final Map<QName, String> otherAttributes = new HashMap<QName, String>();
63:
64: /**
65: * Gets the value of the value property.
66: *
67: * <p>
68: * This accessor method returns a reference to the live list,
69: * not a snapshot. Therefore any modification you make to the
70: * returned list will be present inside the JAXB object.
71: * This is why there is not a <CODE>set</CODE> method for the value property.
72: *
73: * <p>
74: * For example, to add a new item, do as follows:
75: *
76: * <pre>
77: * getValue().add(newItem);
78: * </pre>
79: *
80: *
81: * <p>
82: * Objects of the following type(s) are allowed in the list
83: * {@link String }
84: *
85: *
86: */
87: @Override
88: public List<String> getValue() {
89:• if (this.value == null) {
90: this.value = new ArrayList<String>();
91: }
92: return this.value;
93: }
94:
95: /**
96: * Gets the value of the any property.
97: *
98: * <p>
99: * This accessor method returns a reference to the live list,
100: * not a snapshot. Therefore any modification you make to the
101: * returned list will be present inside the JAXB object.
102: * This is why there is not a <CODE>set</CODE> method for the any property.
103: *
104: * <p>
105: * For example, to add a new item, do as follows:
106: *
107: * <pre>
108: * getAny().add(newItem);
109: * </pre>
110: *
111: *
112: * <p>
113: * Objects of the following type(s) are allowed in the list
114: * {@link Element }
115: * {@link Object }
116: *
117: *
118: */
119: public List<Object> getAny() {
120:• if (this.any == null) {
121: this.any = new ArrayList<Object>();
122: }
123: return this.any;
124: }
125:
126: /**
127: * Gets the value of the adref property.
128: *
129: * @return
130: * possible object is
131: * {@link String }
132: *
133: */
134: @Override
135: public String getAdref() {
136: return this.adref;
137: }
138:
139: /**
140: * Sets the value of the adref property.
141: *
142: * @param value
143: * allowed object is
144: * {@link String }
145: *
146: */
147: public void setAdref(String value) {
148: this.adref = value;
149: }
150:
151: /**
152: * Gets the value of the content property.
153: *
154: * @return
155: * possible object is
156: * {@link String }
157: *
158: */
159: @Override
160: public String getContent() {
161: return this.content;
162: }
163:
164: /**
165: * Sets the value of the content property.
166: *
167: * @param value
168: * allowed object is
169: * {@link String }
170: *
171: */
172: public void setContent(String value) {
173: this.content = value;
174: }
175:
176: /**
177: * Gets a map that contains attributes that aren't bound to any typed property on this class.
178: *
179: * <p>
180: * the map is keyed by the name of the attribute and
181: * the value is the string value of the attribute.
182: *
183: * the map returned by this method is live, and you can add new attribute
184: * by updating the map directly. Because of this design, there's no setter.
185: *
186: *
187: * @return
188: * always non-null
189: */
190: public Map<QName, String> getOtherAttributes() {
191: return this.otherAttributes;
192: }
193:
194: }