Package: Tdesignate

Tdesignate

nameinstructionbranchcomplexitylinemethod
Tdesignate()
M: 0 C: 8
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
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%
getBundle()
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%
getFactoryPid()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getObject()
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%
getPid()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
isMerge()
M: 9 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
isOptional()
M: 9 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
setBundle(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%
setFactoryPid(String)
M: 0 C: 4
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
setMerge(Boolean)
M: 0 C: 4
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
setObject(Tobject)
M: 0 C: 4
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
setOptional(Boolean)
M: 0 C: 4
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
setPid(String)
M: 0 C: 4
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%

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.Designate;
29: import org.w3c.dom.Element;
30:
31: /**
32: * <p>
33: * Java class for Tdesignate complex type.
34: *
35: * <p>
36: * The following schema fragment specifies the expected content contained within this class.
37: *
38: * <pre>
39: * <complexType name="Tdesignate">
40: * <complexContent>
41: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
42: * <sequence>
43: * <element name="Object" type="{http://www.osgi.org/xmlns/metatype/v1.2.0}Tobject"/>
44: * <any processContents='lax' maxOccurs="unbounded" minOccurs="0"/>
45: * </sequence>
46: * <attribute name="pid" type="{http://www.w3.org/2001/XMLSchema}string" />
47: * <attribute name="factoryPid" type="{http://www.w3.org/2001/XMLSchema}string" />
48: * <attribute name="bundle" type="{http://www.w3.org/2001/XMLSchema}string" />
49: * <attribute name="optional" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
50: * <attribute name="merge" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
51: * <anyAttribute/>
52: * </restriction>
53: * </complexContent>
54: * </complexType>
55: * </pre>
56: *
57: *
58: */
59:
60: public class Tdesignate implements Designate {
61:
62: protected Tobject object;
63: protected List<Object> any;
64: protected String pid;
65: protected String factoryPid;
66: protected String bundle;
67: protected Boolean optional;
68: protected Boolean merge;
69: private final Map<QName, String> otherAttributes = new HashMap<QName, String>();
70:
71: /**
72: * Gets the value of the object property.
73: *
74: * @return
75: * possible object is
76: * {@link Tobject }
77: *
78: */
79: @Override
80: public Tobject getObject() {
81: return this.object;
82: }
83:
84: /**
85: * Sets the value of the object property.
86: *
87: * @param value
88: * allowed object is
89: * {@link Tobject }
90: *
91: */
92: public void setObject(Tobject value) {
93: this.object = value;
94: }
95:
96: /**
97: * Gets the value of the any property.
98: *
99: * <p>
100: * This accessor method returns a reference to the live list,
101: * not a snapshot. Therefore any modification you make to the
102: * returned list will be present inside the JAXB object.
103: * This is why there is not a <CODE>set</CODE> method for the any property.
104: *
105: * <p>
106: * For example, to add a new item, do as follows:
107: *
108: * <pre>
109: * getAny().add(newItem);
110: * </pre>
111: *
112: *
113: * <p>
114: * Objects of the following type(s) are allowed in the list
115: * {@link Element }
116: * {@link Object }
117: *
118: *
119: */
120: public List<Object> getAny() {
121:• if (this.any == null) {
122: this.any = new ArrayList<Object>();
123: }
124: return this.any;
125: }
126:
127: /**
128: * Gets the value of the pid property.
129: *
130: * @return
131: * possible object is
132: * {@link String }
133: *
134: */
135: @Override
136: public String getPid() {
137: return this.pid;
138: }
139:
140: /**
141: * Sets the value of the pid property.
142: *
143: * @param value
144: * allowed object is
145: * {@link String }
146: *
147: */
148: public void setPid(String value) {
149: this.pid = value;
150: }
151:
152: /**
153: * Gets the value of the factoryPid property.
154: *
155: * @return
156: * possible object is
157: * {@link String }
158: *
159: */
160: @Override
161: public String getFactoryPid() {
162: return this.factoryPid;
163: }
164:
165: /**
166: * Sets the value of the factoryPid property.
167: *
168: * @param value
169: * allowed object is
170: * {@link String }
171: *
172: */
173: public void setFactoryPid(String value) {
174: this.factoryPid = value;
175: }
176:
177: /**
178: * Gets the value of the bundle property.
179: *
180: * @return
181: * possible object is
182: * {@link String }
183: *
184: */
185: @Override
186: public String getBundle() {
187: return this.bundle;
188: }
189:
190: /**
191: * Sets the value of the bundle property.
192: *
193: * @param value
194: * allowed object is
195: * {@link String }
196: *
197: */
198: public void setBundle(String value) {
199: this.bundle = value;
200: }
201:
202: /**
203: * Gets the value of the optional property.
204: *
205: * @return
206: * possible object is
207: * {@link Boolean }
208: *
209: */
210: @Override
211: public boolean isOptional() {
212:• if (this.optional == null) {
213: return false;
214: } else {
215: return this.optional;
216: }
217: }
218:
219: /**
220: * Sets the value of the optional property.
221: *
222: * @param value
223: * allowed object is
224: * {@link Boolean }
225: *
226: */
227: public void setOptional(Boolean value) {
228: this.optional = value;
229: }
230:
231: /**
232: * Gets the value of the merge property.
233: *
234: * @return
235: * possible object is
236: * {@link Boolean }
237: *
238: */
239: @Override
240: public boolean isMerge() {
241:• if (this.merge == null) {
242: return false;
243: } else {
244: return this.merge;
245: }
246: }
247:
248: /**
249: * Sets the value of the merge property.
250: *
251: * @param value
252: * allowed object is
253: * {@link Boolean }
254: *
255: */
256: public void setMerge(Boolean value) {
257: this.merge = value;
258: }
259:
260: /**
261: * Gets a map that contains attributes that aren't bound to any typed property on this class.
262: *
263: * <p>
264: * the map is keyed by the name of the attribute and
265: * the value is the string value of the attribute.
266: *
267: * the map returned by this method is live, and you can add new attribute
268: * by updating the map directly. Because of this design, there's no setter.
269: *
270: *
271: * @return
272: * always non-null
273: */
274: public Map<QName, String> getOtherAttributes() {
275: return this.otherAttributes;
276: }
277:
278: }