| 1 | /* |
|---|
| 2 | * Copyright 2007-2008, Plutext Pty Ltd. |
|---|
| 3 | * |
|---|
| 4 | * This file is part of docx4j. |
|---|
| 5 | |
|---|
| 6 | docx4j is licensed under the Apache License, Version 2.0 (the "License"); |
|---|
| 7 | you may not use this file except in compliance with the License. |
|---|
| 8 | |
|---|
| 9 | You may obtain a copy of the License at |
|---|
| 10 | |
|---|
| 11 | http://www.apache.org/licenses/LICENSE-2.0 |
|---|
| 12 | |
|---|
| 13 | Unless required by applicable law or agreed to in writing, software |
|---|
| 14 | distributed under the License is distributed on an "AS IS" BASIS, |
|---|
| 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|---|
| 16 | See the License for the specific language governing permissions and |
|---|
| 17 | limitations under the License. |
|---|
| 18 | |
|---|
| 19 | */ |
|---|
| 20 | |
|---|
| 21 | |
|---|
| 22 | package org.docx4j.wml; |
|---|
| 23 | |
|---|
| 24 | import javax.xml.bind.Unmarshaller; |
|---|
| 25 | import javax.xml.bind.annotation.XmlAccessType; |
|---|
| 26 | import javax.xml.bind.annotation.XmlAccessorType; |
|---|
| 27 | import javax.xml.bind.annotation.XmlAttribute; |
|---|
| 28 | import javax.xml.bind.annotation.XmlTransient; |
|---|
| 29 | import javax.xml.bind.annotation.XmlType; |
|---|
| 30 | import org.jvnet.jaxb2_commons.ppp.Child; |
|---|
| 31 | |
|---|
| 32 | |
|---|
| 33 | /** |
|---|
| 34 | * <p>Java class for CT_ColorSchemeMapping complex type. |
|---|
| 35 | * |
|---|
| 36 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 37 | * |
|---|
| 38 | * <pre> |
|---|
| 39 | * <complexType name="CT_ColorSchemeMapping"> |
|---|
| 40 | * <complexContent> |
|---|
| 41 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 42 | * <attribute name="bg1" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_ColorSchemeIndex" /> |
|---|
| 43 | * <attribute name="t1" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_ColorSchemeIndex" /> |
|---|
| 44 | * <attribute name="bg2" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_ColorSchemeIndex" /> |
|---|
| 45 | * <attribute name="t2" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_ColorSchemeIndex" /> |
|---|
| 46 | * <attribute name="accent1" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_ColorSchemeIndex" /> |
|---|
| 47 | * <attribute name="accent2" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_ColorSchemeIndex" /> |
|---|
| 48 | * <attribute name="accent3" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_ColorSchemeIndex" /> |
|---|
| 49 | * <attribute name="accent4" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_ColorSchemeIndex" /> |
|---|
| 50 | * <attribute name="accent5" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_ColorSchemeIndex" /> |
|---|
| 51 | * <attribute name="accent6" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_ColorSchemeIndex" /> |
|---|
| 52 | * <attribute name="hyperlink" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_ColorSchemeIndex" /> |
|---|
| 53 | * <attribute name="followedHyperlink" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_ColorSchemeIndex" /> |
|---|
| 54 | * </restriction> |
|---|
| 55 | * </complexContent> |
|---|
| 56 | * </complexType> |
|---|
| 57 | * </pre> |
|---|
| 58 | * |
|---|
| 59 | * |
|---|
| 60 | */ |
|---|
| 61 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 62 | @XmlType(name = "CT_ColorSchemeMapping") |
|---|
| 63 | public class CTColorSchemeMapping |
|---|
| 64 | implements Child |
|---|
| 65 | { |
|---|
| 66 | |
|---|
| 67 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 68 | protected STColorSchemeIndex bg1; |
|---|
| 69 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 70 | protected STColorSchemeIndex t1; |
|---|
| 71 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 72 | protected STColorSchemeIndex bg2; |
|---|
| 73 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 74 | protected STColorSchemeIndex t2; |
|---|
| 75 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 76 | protected STColorSchemeIndex accent1; |
|---|
| 77 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 78 | protected STColorSchemeIndex accent2; |
|---|
| 79 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 80 | protected STColorSchemeIndex accent3; |
|---|
| 81 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 82 | protected STColorSchemeIndex accent4; |
|---|
| 83 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 84 | protected STColorSchemeIndex accent5; |
|---|
| 85 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 86 | protected STColorSchemeIndex accent6; |
|---|
| 87 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 88 | protected STColorSchemeIndex hyperlink; |
|---|
| 89 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 90 | protected STColorSchemeIndex followedHyperlink; |
|---|
| 91 | @XmlTransient |
|---|
| 92 | private Object parent; |
|---|
| 93 | |
|---|
| 94 | /** |
|---|
| 95 | * Gets the value of the bg1 property. |
|---|
| 96 | * |
|---|
| 97 | * @return |
|---|
| 98 | * possible object is |
|---|
| 99 | * {@link STColorSchemeIndex } |
|---|
| 100 | * |
|---|
| 101 | */ |
|---|
| 102 | public STColorSchemeIndex getBg1() { |
|---|
| 103 | return bg1; |
|---|
| 104 | } |
|---|
| 105 | |
|---|
| 106 | /** |
|---|
| 107 | * Sets the value of the bg1 property. |
|---|
| 108 | * |
|---|
| 109 | * @param value |
|---|
| 110 | * allowed object is |
|---|
| 111 | * {@link STColorSchemeIndex } |
|---|
| 112 | * |
|---|
| 113 | */ |
|---|
| 114 | public void setBg1(STColorSchemeIndex value) { |
|---|
| 115 | this.bg1 = value; |
|---|
| 116 | } |
|---|
| 117 | |
|---|
| 118 | /** |
|---|
| 119 | * Gets the value of the t1 property. |
|---|
| 120 | * |
|---|
| 121 | * @return |
|---|
| 122 | * possible object is |
|---|
| 123 | * {@link STColorSchemeIndex } |
|---|
| 124 | * |
|---|
| 125 | */ |
|---|
| 126 | public STColorSchemeIndex getT1() { |
|---|
| 127 | return t1; |
|---|
| 128 | } |
|---|
| 129 | |
|---|
| 130 | /** |
|---|
| 131 | * Sets the value of the t1 property. |
|---|
| 132 | * |
|---|
| 133 | * @param value |
|---|
| 134 | * allowed object is |
|---|
| 135 | * {@link STColorSchemeIndex } |
|---|
| 136 | * |
|---|
| 137 | */ |
|---|
| 138 | public void setT1(STColorSchemeIndex value) { |
|---|
| 139 | this.t1 = value; |
|---|
| 140 | } |
|---|
| 141 | |
|---|
| 142 | /** |
|---|
| 143 | * Gets the value of the bg2 property. |
|---|
| 144 | * |
|---|
| 145 | * @return |
|---|
| 146 | * possible object is |
|---|
| 147 | * {@link STColorSchemeIndex } |
|---|
| 148 | * |
|---|
| 149 | */ |
|---|
| 150 | public STColorSchemeIndex getBg2() { |
|---|
| 151 | return bg2; |
|---|
| 152 | } |
|---|
| 153 | |
|---|
| 154 | /** |
|---|
| 155 | * Sets the value of the bg2 property. |
|---|
| 156 | * |
|---|
| 157 | * @param value |
|---|
| 158 | * allowed object is |
|---|
| 159 | * {@link STColorSchemeIndex } |
|---|
| 160 | * |
|---|
| 161 | */ |
|---|
| 162 | public void setBg2(STColorSchemeIndex value) { |
|---|
| 163 | this.bg2 = value; |
|---|
| 164 | } |
|---|
| 165 | |
|---|
| 166 | /** |
|---|
| 167 | * Gets the value of the t2 property. |
|---|
| 168 | * |
|---|
| 169 | * @return |
|---|
| 170 | * possible object is |
|---|
| 171 | * {@link STColorSchemeIndex } |
|---|
| 172 | * |
|---|
| 173 | */ |
|---|
| 174 | public STColorSchemeIndex getT2() { |
|---|
| 175 | return t2; |
|---|
| 176 | } |
|---|
| 177 | |
|---|
| 178 | /** |
|---|
| 179 | * Sets the value of the t2 property. |
|---|
| 180 | * |
|---|
| 181 | * @param value |
|---|
| 182 | * allowed object is |
|---|
| 183 | * {@link STColorSchemeIndex } |
|---|
| 184 | * |
|---|
| 185 | */ |
|---|
| 186 | public void setT2(STColorSchemeIndex value) { |
|---|
| 187 | this.t2 = value; |
|---|
| 188 | } |
|---|
| 189 | |
|---|
| 190 | /** |
|---|
| 191 | * Gets the value of the accent1 property. |
|---|
| 192 | * |
|---|
| 193 | * @return |
|---|
| 194 | * possible object is |
|---|
| 195 | * {@link STColorSchemeIndex } |
|---|
| 196 | * |
|---|
| 197 | */ |
|---|
| 198 | public STColorSchemeIndex getAccent1() { |
|---|
| 199 | return accent1; |
|---|
| 200 | } |
|---|
| 201 | |
|---|
| 202 | /** |
|---|
| 203 | * Sets the value of the accent1 property. |
|---|
| 204 | * |
|---|
| 205 | * @param value |
|---|
| 206 | * allowed object is |
|---|
| 207 | * {@link STColorSchemeIndex } |
|---|
| 208 | * |
|---|
| 209 | */ |
|---|
| 210 | public void setAccent1(STColorSchemeIndex value) { |
|---|
| 211 | this.accent1 = value; |
|---|
| 212 | } |
|---|
| 213 | |
|---|
| 214 | /** |
|---|
| 215 | * Gets the value of the accent2 property. |
|---|
| 216 | * |
|---|
| 217 | * @return |
|---|
| 218 | * possible object is |
|---|
| 219 | * {@link STColorSchemeIndex } |
|---|
| 220 | * |
|---|
| 221 | */ |
|---|
| 222 | public STColorSchemeIndex getAccent2() { |
|---|
| 223 | return accent2; |
|---|
| 224 | } |
|---|
| 225 | |
|---|
| 226 | /** |
|---|
| 227 | * Sets the value of the accent2 property. |
|---|
| 228 | * |
|---|
| 229 | * @param value |
|---|
| 230 | * allowed object is |
|---|
| 231 | * {@link STColorSchemeIndex } |
|---|
| 232 | * |
|---|
| 233 | */ |
|---|
| 234 | public void setAccent2(STColorSchemeIndex value) { |
|---|
| 235 | this.accent2 = value; |
|---|
| 236 | } |
|---|
| 237 | |
|---|
| 238 | /** |
|---|
| 239 | * Gets the value of the accent3 property. |
|---|
| 240 | * |
|---|
| 241 | * @return |
|---|
| 242 | * possible object is |
|---|
| 243 | * {@link STColorSchemeIndex } |
|---|
| 244 | * |
|---|
| 245 | */ |
|---|
| 246 | public STColorSchemeIndex getAccent3() { |
|---|
| 247 | return accent3; |
|---|
| 248 | } |
|---|
| 249 | |
|---|
| 250 | /** |
|---|
| 251 | * Sets the value of the accent3 property. |
|---|
| 252 | * |
|---|
| 253 | * @param value |
|---|
| 254 | * allowed object is |
|---|
| 255 | * {@link STColorSchemeIndex } |
|---|
| 256 | * |
|---|
| 257 | */ |
|---|
| 258 | public void setAccent3(STColorSchemeIndex value) { |
|---|
| 259 | this.accent3 = value; |
|---|
| 260 | } |
|---|
| 261 | |
|---|
| 262 | /** |
|---|
| 263 | * Gets the value of the accent4 property. |
|---|
| 264 | * |
|---|
| 265 | * @return |
|---|
| 266 | * possible object is |
|---|
| 267 | * {@link STColorSchemeIndex } |
|---|
| 268 | * |
|---|
| 269 | */ |
|---|
| 270 | public STColorSchemeIndex getAccent4() { |
|---|
| 271 | return accent4; |
|---|
| 272 | } |
|---|
| 273 | |
|---|
| 274 | /** |
|---|
| 275 | * Sets the value of the accent4 property. |
|---|
| 276 | * |
|---|
| 277 | * @param value |
|---|
| 278 | * allowed object is |
|---|
| 279 | * {@link STColorSchemeIndex } |
|---|
| 280 | * |
|---|
| 281 | */ |
|---|
| 282 | public void setAccent4(STColorSchemeIndex value) { |
|---|
| 283 | this.accent4 = value; |
|---|
| 284 | } |
|---|
| 285 | |
|---|
| 286 | /** |
|---|
| 287 | * Gets the value of the accent5 property. |
|---|
| 288 | * |
|---|
| 289 | * @return |
|---|
| 290 | * possible object is |
|---|
| 291 | * {@link STColorSchemeIndex } |
|---|
| 292 | * |
|---|
| 293 | */ |
|---|
| 294 | public STColorSchemeIndex getAccent5() { |
|---|
| 295 | return accent5; |
|---|
| 296 | } |
|---|
| 297 | |
|---|
| 298 | /** |
|---|
| 299 | * Sets the value of the accent5 property. |
|---|
| 300 | * |
|---|
| 301 | * @param value |
|---|
| 302 | * allowed object is |
|---|
| 303 | * {@link STColorSchemeIndex } |
|---|
| 304 | * |
|---|
| 305 | */ |
|---|
| 306 | public void setAccent5(STColorSchemeIndex value) { |
|---|
| 307 | this.accent5 = value; |
|---|
| 308 | } |
|---|
| 309 | |
|---|
| 310 | /** |
|---|
| 311 | * Gets the value of the accent6 property. |
|---|
| 312 | * |
|---|
| 313 | * @return |
|---|
| 314 | * possible object is |
|---|
| 315 | * {@link STColorSchemeIndex } |
|---|
| 316 | * |
|---|
| 317 | */ |
|---|
| 318 | public STColorSchemeIndex getAccent6() { |
|---|
| 319 | return accent6; |
|---|
| 320 | } |
|---|
| 321 | |
|---|
| 322 | /** |
|---|
| 323 | * Sets the value of the accent6 property. |
|---|
| 324 | * |
|---|
| 325 | * @param value |
|---|
| 326 | * allowed object is |
|---|
| 327 | * {@link STColorSchemeIndex } |
|---|
| 328 | * |
|---|
| 329 | */ |
|---|
| 330 | public void setAccent6(STColorSchemeIndex value) { |
|---|
| 331 | this.accent6 = value; |
|---|
| 332 | } |
|---|
| 333 | |
|---|
| 334 | /** |
|---|
| 335 | * Gets the value of the hyperlink property. |
|---|
| 336 | * |
|---|
| 337 | * @return |
|---|
| 338 | * possible object is |
|---|
| 339 | * {@link STColorSchemeIndex } |
|---|
| 340 | * |
|---|
| 341 | */ |
|---|
| 342 | public STColorSchemeIndex getHyperlink() { |
|---|
| 343 | return hyperlink; |
|---|
| 344 | } |
|---|
| 345 | |
|---|
| 346 | /** |
|---|
| 347 | * Sets the value of the hyperlink property. |
|---|
| 348 | * |
|---|
| 349 | * @param value |
|---|
| 350 | * allowed object is |
|---|
| 351 | * {@link STColorSchemeIndex } |
|---|
| 352 | * |
|---|
| 353 | */ |
|---|
| 354 | public void setHyperlink(STColorSchemeIndex value) { |
|---|
| 355 | this.hyperlink = value; |
|---|
| 356 | } |
|---|
| 357 | |
|---|
| 358 | /** |
|---|
| 359 | * Gets the value of the followedHyperlink property. |
|---|
| 360 | * |
|---|
| 361 | * @return |
|---|
| 362 | * possible object is |
|---|
| 363 | * {@link STColorSchemeIndex } |
|---|
| 364 | * |
|---|
| 365 | */ |
|---|
| 366 | public STColorSchemeIndex getFollowedHyperlink() { |
|---|
| 367 | return followedHyperlink; |
|---|
| 368 | } |
|---|
| 369 | |
|---|
| 370 | /** |
|---|
| 371 | * Sets the value of the followedHyperlink property. |
|---|
| 372 | * |
|---|
| 373 | * @param value |
|---|
| 374 | * allowed object is |
|---|
| 375 | * {@link STColorSchemeIndex } |
|---|
| 376 | * |
|---|
| 377 | */ |
|---|
| 378 | public void setFollowedHyperlink(STColorSchemeIndex value) { |
|---|
| 379 | this.followedHyperlink = value; |
|---|
| 380 | } |
|---|
| 381 | |
|---|
| 382 | /** |
|---|
| 383 | * Gets the parent object in the object tree representing the unmarshalled xml document. |
|---|
| 384 | * |
|---|
| 385 | * @return |
|---|
| 386 | * The parent object. |
|---|
| 387 | */ |
|---|
| 388 | public Object getParent() { |
|---|
| 389 | return this.parent; |
|---|
| 390 | } |
|---|
| 391 | |
|---|
| 392 | public void setParent(Object parent) { |
|---|
| 393 | this.parent = parent; |
|---|
| 394 | } |
|---|
| 395 | |
|---|
| 396 | /** |
|---|
| 397 | * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. |
|---|
| 398 | * |
|---|
| 399 | * @param parent |
|---|
| 400 | * The parent object in the object tree. |
|---|
| 401 | * @param unmarshaller |
|---|
| 402 | * The unmarshaller that generated the instance. |
|---|
| 403 | */ |
|---|
| 404 | public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { |
|---|
| 405 | setParent(parent); |
|---|
| 406 | } |
|---|
| 407 | |
|---|
| 408 | } |
|---|