1
2
3
4
5
6
7
8
9 package org.xmlhammer.model.project;
10
11 import javax.xml.bind.annotation.XmlAccessType;
12 import javax.xml.bind.annotation.XmlAccessorType;
13 import javax.xml.bind.annotation.XmlAttribute;
14 import javax.xml.bind.annotation.XmlElement;
15 import javax.xml.bind.annotation.XmlRootElement;
16 import javax.xml.bind.annotation.XmlType;
17
18
19 /***
20 * <p>Java class for attribute element declaration.
21 *
22 * <p>The following schema fragment specifies the expected content contained within this class.
23 *
24 * <pre>
25 * <element name="attribute">
26 * <complexType>
27 * <complexContent>
28 * <extension base="{http://www.xmlhammer.org/2007/project}nodeType">
29 * <sequence>
30 * <element ref="{http://www.xmlhammer.org/2007/project}type"/>
31 * </sequence>
32 * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
33 * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
34 * <attribute name="specified" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
35 * <attribute name="value" type="{http://www.w3.org/2001/XMLSchema}string" />
36 * </extension>
37 * </complexContent>
38 * </complexType>
39 * </element>
40 * </pre>
41 *
42 *
43 */
44 @XmlAccessorType(XmlAccessType.FIELD)
45 @XmlType(name = "", propOrder = {
46 "type"
47 })
48 @XmlRootElement(name = "attribute")
49 public class Attribute
50 extends NodeType
51 {
52
53 @XmlElement(namespace = "http://www.xmlhammer.org/2007/project", required = true)
54 protected Type type;
55 @XmlAttribute
56 protected java.lang.Boolean id;
57 @XmlAttribute
58 protected java.lang.String name;
59 @XmlAttribute
60 protected java.lang.Boolean specified;
61 @XmlAttribute
62 protected java.lang.String value;
63
64 /***
65 * Gets the value of the type property.
66 *
67 * @return
68 * possible object is
69 * {@link Type }
70 *
71 */
72 public Type getType() {
73 return type;
74 }
75
76 /***
77 * Sets the value of the type property.
78 *
79 * @param value
80 * allowed object is
81 * {@link Type }
82 *
83 */
84 public void setType(Type value) {
85 this.type = value;
86 }
87
88 /***
89 * Gets the value of the id property.
90 *
91 * @return
92 * possible object is
93 * {@link java.lang.Boolean }
94 *
95 */
96 public boolean isId() {
97 if (id == null) {
98 return false;
99 } else {
100 return id;
101 }
102 }
103
104 /***
105 * Sets the value of the id property.
106 *
107 * @param value
108 * allowed object is
109 * {@link java.lang.Boolean }
110 *
111 */
112 public void setId(java.lang.Boolean value) {
113 this.id = value;
114 }
115
116 /***
117 * Gets the value of the name property.
118 *
119 * @return
120 * possible object is
121 * {@link java.lang.String }
122 *
123 */
124 public java.lang.String getName() {
125 return name;
126 }
127
128 /***
129 * Sets the value of the name property.
130 *
131 * @param value
132 * allowed object is
133 * {@link java.lang.String }
134 *
135 */
136 public void setName(java.lang.String value) {
137 this.name = value;
138 }
139
140 /***
141 * Gets the value of the specified property.
142 *
143 * @return
144 * possible object is
145 * {@link java.lang.Boolean }
146 *
147 */
148 public boolean isSpecified() {
149 if (specified == null) {
150 return false;
151 } else {
152 return specified;
153 }
154 }
155
156 /***
157 * Sets the value of the specified property.
158 *
159 * @param value
160 * allowed object is
161 * {@link java.lang.Boolean }
162 *
163 */
164 public void setSpecified(java.lang.Boolean value) {
165 this.specified = value;
166 }
167
168 /***
169 * Gets the value of the value property.
170 *
171 * @return
172 * possible object is
173 * {@link java.lang.String }
174 *
175 */
176 public java.lang.String getValue() {
177 return value;
178 }
179
180 /***
181 * Sets the value of the value property.
182 *
183 * @param value
184 * allowed object is
185 * {@link java.lang.String }
186 *
187 */
188 public void setValue(java.lang.String value) {
189 this.value = value;
190 }
191
192 }