1 | // |
2 | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833 |
3 | // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> |
4 | // Any modifications to this file will be lost upon recompilation of the source schema. |
5 | // Generated on: 2010.02.03 at 01:25:12 AM UTC |
6 | // |
7 | |
8 | |
9 | package org.jomc.model.bootstrap; |
10 | |
11 | import javax.annotation.Generated; |
12 | import javax.xml.bind.annotation.XmlAccessType; |
13 | import javax.xml.bind.annotation.XmlAccessorType; |
14 | import javax.xml.bind.annotation.XmlAttribute; |
15 | import javax.xml.bind.annotation.XmlType; |
16 | import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; |
17 | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; |
18 | |
19 | |
20 | /** |
21 | * Service. |
22 | * |
23 | * <p>Java class for Service complex type. |
24 | * |
25 | * <p>The following schema fragment specifies the expected content contained within this class. |
26 | * |
27 | * <pre> |
28 | * <complexType name="Service"> |
29 | * <complexContent> |
30 | * <extension base="{http://jomc.org/model/bootstrap}BootstrapObject"> |
31 | * <attribute name="ordinal" type="{http://www.w3.org/2001/XMLSchema}int" default="1000" /> |
32 | * <attribute name="identifier" use="required" type="{http://jomc.org/model/bootstrap}Identifier" /> |
33 | * <attribute name="class" use="required" type="{http://jomc.org/model/bootstrap}Identifier" /> |
34 | * </extension> |
35 | * </complexContent> |
36 | * </complexType> |
37 | * </pre> |
38 | * |
39 | * |
40 | */ |
41 | @XmlAccessorType(XmlAccessType.FIELD) |
42 | @XmlType(name = "Service") |
43 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
44 | public class Service |
45 | extends BootstrapObject |
46 | implements Cloneable |
47 | { |
48 | |
49 | @XmlAttribute |
50 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
51 | protected Integer ordinal; |
52 | @XmlAttribute(required = true) |
53 | @XmlJavaTypeAdapter(CollapsedStringAdapter.class) |
54 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
55 | protected String identifier; |
56 | @XmlAttribute(name = "class", required = true) |
57 | @XmlJavaTypeAdapter(CollapsedStringAdapter.class) |
58 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
59 | protected String clazz; |
60 | |
61 | /** |
62 | * Creates a new {@code Service} instance. |
63 | * |
64 | */ |
65 | public Service() { |
66 | // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000 |
67 | super(); |
68 | } |
69 | |
70 | /** |
71 | * Creates a new {@code Service} instance by deeply copying a given {@code Service} instance. |
72 | * |
73 | * |
74 | * @param o |
75 | * The instance to copy. |
76 | * @throws NullPointerException |
77 | * if {@code o} is {@code null}. |
78 | */ |
79 | public Service(final Service o) { |
80 | // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000 |
81 | super(o); |
82 | if (o == null) { |
83 | throw new NullPointerException("Cannot create a copy of 'Service' from 'null'."); |
84 | } |
85 | // CBuiltinLeafInfo: java.lang.Integer |
86 | this.ordinal = o.getOrdinal(); |
87 | // CBuiltinLeafInfo: java.lang.String |
88 | this.identifier = o.getIdentifier(); |
89 | // CBuiltinLeafInfo: java.lang.String |
90 | this.clazz = o.getClazz(); |
91 | } |
92 | |
93 | /** |
94 | * The ordinal number of the service. |
95 | * |
96 | * @return |
97 | * possible object is |
98 | * {@link Integer } |
99 | * |
100 | */ |
101 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
102 | public int getOrdinal() { |
103 | if (ordinal == null) { |
104 | return 1000; |
105 | } else { |
106 | return ordinal; |
107 | } |
108 | } |
109 | |
110 | /** |
111 | * Sets the value of the ordinal property. |
112 | * |
113 | * @param value |
114 | * allowed object is |
115 | * {@link Integer } |
116 | * |
117 | */ |
118 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
119 | public void setOrdinal(Integer value) { |
120 | this.ordinal = value; |
121 | } |
122 | |
123 | /** |
124 | * The identifier of the service. |
125 | * |
126 | * @return |
127 | * possible object is |
128 | * {@link String } |
129 | * |
130 | */ |
131 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
132 | public String getIdentifier() { |
133 | return identifier; |
134 | } |
135 | |
136 | /** |
137 | * Sets the value of the identifier property. |
138 | * |
139 | * @param value |
140 | * allowed object is |
141 | * {@link String } |
142 | * |
143 | */ |
144 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
145 | public void setIdentifier(String value) { |
146 | this.identifier = value; |
147 | } |
148 | |
149 | /** |
150 | * The class providing the service implementation. |
151 | * |
152 | * @return |
153 | * possible object is |
154 | * {@link String } |
155 | * |
156 | */ |
157 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
158 | public String getClazz() { |
159 | return clazz; |
160 | } |
161 | |
162 | /** |
163 | * Sets the value of the clazz property. |
164 | * |
165 | * @param value |
166 | * allowed object is |
167 | * {@link String } |
168 | * |
169 | */ |
170 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
171 | public void setClazz(String value) { |
172 | this.clazz = value; |
173 | } |
174 | |
175 | /** |
176 | * Creates and returns a deep copy of this object. |
177 | * |
178 | * |
179 | * @return |
180 | * A deep copy of this object. |
181 | */ |
182 | @Override |
183 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
184 | public Service clone() { |
185 | // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000 |
186 | return new Service(this); |
187 | } |
188 | |
189 | } |