Package: Tobject

Tobject

nameinstructionbranchcomplexitylinemethod
Tobject()
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%
getAttribute()
M: 14 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
getOcdref()
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%
setOcdref(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.Attribute;
29: import org.eclipse.kura.configuration.metatype.TObject;
30: import org.w3c.dom.Element;
31:
32: /**
33: * <p>
34: * Java class for Tobject complex type.
35: *
36: * <p>
37: * The following schema fragment specifies the expected content contained within this class.
38: *
39: * <pre>
40: * <complexType name="Tobject">
41: * <complexContent>
42: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
43: * <sequence>
44: * <element name="Attribute" type="{http://www.osgi.org/xmlns/metatype/v1.2.0}Tattribute" maxOccurs="unbounded" minOccurs="0"/>
45: * <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
46: * </sequence>
47: * <attribute name="ocdref" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
48: * <anyAttribute/>
49: * </restriction>
50: * </complexContent>
51: * </complexType>
52: * </pre>
53: *
54: *
55: */
56:
57: public class Tobject implements TObject {
58:
59: protected List<Tattribute> attribute;
60: protected List<Object> any;
61: protected String ocdref;
62: private final Map<QName, String> otherAttributes = new HashMap<QName, String>();
63:
64: /**
65: * Gets the value of the attribute 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 attribute property.
72: *
73: * <p>
74: * For example, to add a new item, do as follows:
75: *
76: * <pre>
77: * getAttribute().add(newItem);
78: * </pre>
79: *
80: *
81: * <p>
82: * Objects of the following type(s) are allowed in the list
83: * {@link Tattribute }
84: *
85: *
86: */
87: @Override
88: public List<Attribute> getAttribute() {
89:• if (this.attribute == null) {
90: this.attribute = new ArrayList<Tattribute>();
91: }
92: return new ArrayList<Attribute>(this.attribute);
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 ocdref property.
128: *
129: * @return
130: * possible object is
131: * {@link String }
132: *
133: */
134: @Override
135: public String getOcdref() {
136: return this.ocdref;
137: }
138:
139: /**
140: * Sets the value of the ocdref property.
141: *
142: * @param value
143: * allowed object is
144: * {@link String }
145: *
146: */
147: public void setOcdref(String value) {
148: this.ocdref = value;
149: }
150:
151: /**
152: * Gets a map that contains attributes that aren't bound to any typed property on this class.
153: *
154: * <p>
155: * the map is keyed by the name of the attribute and
156: * the value is the string value of the attribute.
157: *
158: * the map returned by this method is live, and you can add new attribute
159: * by updating the map directly. Because of this design, there's no setter.
160: *
161: *
162: * @return
163: * always non-null
164: */
165: public Map<QName, String> getOtherAttributes() {
166: return this.otherAttributes;
167: }
168:
169: }