| 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 java.math.BigInteger; |
|---|
| 25 | import java.util.ArrayList; |
|---|
| 26 | import java.util.List; |
|---|
| 27 | import javax.xml.bind.Unmarshaller; |
|---|
| 28 | import javax.xml.bind.annotation.XmlAccessType; |
|---|
| 29 | import javax.xml.bind.annotation.XmlAccessorType; |
|---|
| 30 | import javax.xml.bind.annotation.XmlAttribute; |
|---|
| 31 | import javax.xml.bind.annotation.XmlTransient; |
|---|
| 32 | import javax.xml.bind.annotation.XmlType; |
|---|
| 33 | import org.jvnet.jaxb2_commons.ppp.Child; |
|---|
| 34 | |
|---|
| 35 | |
|---|
| 36 | /** |
|---|
| 37 | * <p>Java class for CT_Odso complex type. |
|---|
| 38 | * |
|---|
| 39 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 40 | * |
|---|
| 41 | * <pre> |
|---|
| 42 | * <complexType name="CT_Odso"> |
|---|
| 43 | * <complexContent> |
|---|
| 44 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 45 | * <sequence> |
|---|
| 46 | * <element name="udl" minOccurs="0"> |
|---|
| 47 | * <complexType> |
|---|
| 48 | * <complexContent> |
|---|
| 49 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 50 | * <attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" /> |
|---|
| 51 | * </restriction> |
|---|
| 52 | * </complexContent> |
|---|
| 53 | * </complexType> |
|---|
| 54 | * </element> |
|---|
| 55 | * <element name="table" minOccurs="0"> |
|---|
| 56 | * <complexType> |
|---|
| 57 | * <complexContent> |
|---|
| 58 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 59 | * <attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" /> |
|---|
| 60 | * </restriction> |
|---|
| 61 | * </complexContent> |
|---|
| 62 | * </complexType> |
|---|
| 63 | * </element> |
|---|
| 64 | * <element name="src" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Rel" minOccurs="0"/> |
|---|
| 65 | * <element name="colDelim" minOccurs="0"> |
|---|
| 66 | * <complexType> |
|---|
| 67 | * <complexContent> |
|---|
| 68 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 69 | * <attribute name="val" use="required"> |
|---|
| 70 | * <simpleType> |
|---|
| 71 | * <restriction base="{http://www.w3.org/2001/XMLSchema}integer"> |
|---|
| 72 | * </restriction> |
|---|
| 73 | * </simpleType> |
|---|
| 74 | * </attribute> |
|---|
| 75 | * </restriction> |
|---|
| 76 | * </complexContent> |
|---|
| 77 | * </complexType> |
|---|
| 78 | * </element> |
|---|
| 79 | * <element name="type" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_MailMergeSourceType" minOccurs="0"/> |
|---|
| 80 | * <element name="fHdr" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/> |
|---|
| 81 | * <element name="fieldMapData" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_OdsoFieldMapData" maxOccurs="unbounded" minOccurs="0"/> |
|---|
| 82 | * <element name="recipientData" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Rel" maxOccurs="unbounded" minOccurs="0"/> |
|---|
| 83 | * </sequence> |
|---|
| 84 | * </restriction> |
|---|
| 85 | * </complexContent> |
|---|
| 86 | * </complexType> |
|---|
| 87 | * </pre> |
|---|
| 88 | * |
|---|
| 89 | * |
|---|
| 90 | */ |
|---|
| 91 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 92 | @XmlType(name = "CT_Odso", propOrder = { |
|---|
| 93 | "udl", |
|---|
| 94 | "table", |
|---|
| 95 | "src", |
|---|
| 96 | "colDelim", |
|---|
| 97 | "type", |
|---|
| 98 | "fHdr", |
|---|
| 99 | "fieldMapData", |
|---|
| 100 | "recipientData" |
|---|
| 101 | }) |
|---|
| 102 | public class CTOdso |
|---|
| 103 | implements Child |
|---|
| 104 | { |
|---|
| 105 | |
|---|
| 106 | protected CTOdso.Udl udl; |
|---|
| 107 | protected CTOdso.Table table; |
|---|
| 108 | protected CTRel src; |
|---|
| 109 | protected CTOdso.ColDelim colDelim; |
|---|
| 110 | protected CTMailMergeSourceType type; |
|---|
| 111 | protected BooleanDefaultTrue fHdr; |
|---|
| 112 | protected List<CTOdsoFieldMapData> fieldMapData; |
|---|
| 113 | protected List<CTRel> recipientData; |
|---|
| 114 | @XmlTransient |
|---|
| 115 | private Object parent; |
|---|
| 116 | |
|---|
| 117 | /** |
|---|
| 118 | * Gets the value of the udl property. |
|---|
| 119 | * |
|---|
| 120 | * @return |
|---|
| 121 | * possible object is |
|---|
| 122 | * {@link CTOdso.Udl } |
|---|
| 123 | * |
|---|
| 124 | */ |
|---|
| 125 | public CTOdso.Udl getUdl() { |
|---|
| 126 | return udl; |
|---|
| 127 | } |
|---|
| 128 | |
|---|
| 129 | /** |
|---|
| 130 | * Sets the value of the udl property. |
|---|
| 131 | * |
|---|
| 132 | * @param value |
|---|
| 133 | * allowed object is |
|---|
| 134 | * {@link CTOdso.Udl } |
|---|
| 135 | * |
|---|
| 136 | */ |
|---|
| 137 | public void setUdl(CTOdso.Udl value) { |
|---|
| 138 | this.udl = value; |
|---|
| 139 | } |
|---|
| 140 | |
|---|
| 141 | /** |
|---|
| 142 | * Gets the value of the table property. |
|---|
| 143 | * |
|---|
| 144 | * @return |
|---|
| 145 | * possible object is |
|---|
| 146 | * {@link CTOdso.Table } |
|---|
| 147 | * |
|---|
| 148 | */ |
|---|
| 149 | public CTOdso.Table getTable() { |
|---|
| 150 | return table; |
|---|
| 151 | } |
|---|
| 152 | |
|---|
| 153 | /** |
|---|
| 154 | * Sets the value of the table property. |
|---|
| 155 | * |
|---|
| 156 | * @param value |
|---|
| 157 | * allowed object is |
|---|
| 158 | * {@link CTOdso.Table } |
|---|
| 159 | * |
|---|
| 160 | */ |
|---|
| 161 | public void setTable(CTOdso.Table value) { |
|---|
| 162 | this.table = value; |
|---|
| 163 | } |
|---|
| 164 | |
|---|
| 165 | /** |
|---|
| 166 | * Gets the value of the src property. |
|---|
| 167 | * |
|---|
| 168 | * @return |
|---|
| 169 | * possible object is |
|---|
| 170 | * {@link CTRel } |
|---|
| 171 | * |
|---|
| 172 | */ |
|---|
| 173 | public CTRel getSrc() { |
|---|
| 174 | return src; |
|---|
| 175 | } |
|---|
| 176 | |
|---|
| 177 | /** |
|---|
| 178 | * Sets the value of the src property. |
|---|
| 179 | * |
|---|
| 180 | * @param value |
|---|
| 181 | * allowed object is |
|---|
| 182 | * {@link CTRel } |
|---|
| 183 | * |
|---|
| 184 | */ |
|---|
| 185 | public void setSrc(CTRel value) { |
|---|
| 186 | this.src = value; |
|---|
| 187 | } |
|---|
| 188 | |
|---|
| 189 | /** |
|---|
| 190 | * Gets the value of the colDelim property. |
|---|
| 191 | * |
|---|
| 192 | * @return |
|---|
| 193 | * possible object is |
|---|
| 194 | * {@link CTOdso.ColDelim } |
|---|
| 195 | * |
|---|
| 196 | */ |
|---|
| 197 | public CTOdso.ColDelim getColDelim() { |
|---|
| 198 | return colDelim; |
|---|
| 199 | } |
|---|
| 200 | |
|---|
| 201 | /** |
|---|
| 202 | * Sets the value of the colDelim property. |
|---|
| 203 | * |
|---|
| 204 | * @param value |
|---|
| 205 | * allowed object is |
|---|
| 206 | * {@link CTOdso.ColDelim } |
|---|
| 207 | * |
|---|
| 208 | */ |
|---|
| 209 | public void setColDelim(CTOdso.ColDelim value) { |
|---|
| 210 | this.colDelim = value; |
|---|
| 211 | } |
|---|
| 212 | |
|---|
| 213 | /** |
|---|
| 214 | * Gets the value of the type property. |
|---|
| 215 | * |
|---|
| 216 | * @return |
|---|
| 217 | * possible object is |
|---|
| 218 | * {@link CTMailMergeSourceType } |
|---|
| 219 | * |
|---|
| 220 | */ |
|---|
| 221 | public CTMailMergeSourceType getType() { |
|---|
| 222 | return type; |
|---|
| 223 | } |
|---|
| 224 | |
|---|
| 225 | /** |
|---|
| 226 | * Sets the value of the type property. |
|---|
| 227 | * |
|---|
| 228 | * @param value |
|---|
| 229 | * allowed object is |
|---|
| 230 | * {@link CTMailMergeSourceType } |
|---|
| 231 | * |
|---|
| 232 | */ |
|---|
| 233 | public void setType(CTMailMergeSourceType value) { |
|---|
| 234 | this.type = value; |
|---|
| 235 | } |
|---|
| 236 | |
|---|
| 237 | /** |
|---|
| 238 | * Gets the value of the fHdr property. |
|---|
| 239 | * |
|---|
| 240 | * @return |
|---|
| 241 | * possible object is |
|---|
| 242 | * {@link BooleanDefaultTrue } |
|---|
| 243 | * |
|---|
| 244 | */ |
|---|
| 245 | public BooleanDefaultTrue getFHdr() { |
|---|
| 246 | return fHdr; |
|---|
| 247 | } |
|---|
| 248 | |
|---|
| 249 | /** |
|---|
| 250 | * Sets the value of the fHdr property. |
|---|
| 251 | * |
|---|
| 252 | * @param value |
|---|
| 253 | * allowed object is |
|---|
| 254 | * {@link BooleanDefaultTrue } |
|---|
| 255 | * |
|---|
| 256 | */ |
|---|
| 257 | public void setFHdr(BooleanDefaultTrue value) { |
|---|
| 258 | this.fHdr = value; |
|---|
| 259 | } |
|---|
| 260 | |
|---|
| 261 | /** |
|---|
| 262 | * Gets the value of the fieldMapData property. |
|---|
| 263 | * |
|---|
| 264 | * <p> |
|---|
| 265 | * This accessor method returns a reference to the live list, |
|---|
| 266 | * not a snapshot. Therefore any modification you make to the |
|---|
| 267 | * returned list will be present inside the JAXB object. |
|---|
| 268 | * This is why there is not a <CODE>set</CODE> method for the fieldMapData property. |
|---|
| 269 | * |
|---|
| 270 | * <p> |
|---|
| 271 | * For example, to add a new item, do as follows: |
|---|
| 272 | * <pre> |
|---|
| 273 | * getFieldMapData().add(newItem); |
|---|
| 274 | * </pre> |
|---|
| 275 | * |
|---|
| 276 | * |
|---|
| 277 | * <p> |
|---|
| 278 | * Objects of the following type(s) are allowed in the list |
|---|
| 279 | * {@link CTOdsoFieldMapData } |
|---|
| 280 | * |
|---|
| 281 | * |
|---|
| 282 | */ |
|---|
| 283 | public List<CTOdsoFieldMapData> getFieldMapData() { |
|---|
| 284 | if (fieldMapData == null) { |
|---|
| 285 | fieldMapData = new ArrayList<CTOdsoFieldMapData>(); |
|---|
| 286 | } |
|---|
| 287 | return this.fieldMapData; |
|---|
| 288 | } |
|---|
| 289 | |
|---|
| 290 | /** |
|---|
| 291 | * Gets the value of the recipientData property. |
|---|
| 292 | * |
|---|
| 293 | * <p> |
|---|
| 294 | * This accessor method returns a reference to the live list, |
|---|
| 295 | * not a snapshot. Therefore any modification you make to the |
|---|
| 296 | * returned list will be present inside the JAXB object. |
|---|
| 297 | * This is why there is not a <CODE>set</CODE> method for the recipientData property. |
|---|
| 298 | * |
|---|
| 299 | * <p> |
|---|
| 300 | * For example, to add a new item, do as follows: |
|---|
| 301 | * <pre> |
|---|
| 302 | * getRecipientData().add(newItem); |
|---|
| 303 | * </pre> |
|---|
| 304 | * |
|---|
| 305 | * |
|---|
| 306 | * <p> |
|---|
| 307 | * Objects of the following type(s) are allowed in the list |
|---|
| 308 | * {@link CTRel } |
|---|
| 309 | * |
|---|
| 310 | * |
|---|
| 311 | */ |
|---|
| 312 | public List<CTRel> getRecipientData() { |
|---|
| 313 | if (recipientData == null) { |
|---|
| 314 | recipientData = new ArrayList<CTRel>(); |
|---|
| 315 | } |
|---|
| 316 | return this.recipientData; |
|---|
| 317 | } |
|---|
| 318 | |
|---|
| 319 | /** |
|---|
| 320 | * Gets the parent object in the object tree representing the unmarshalled xml document. |
|---|
| 321 | * |
|---|
| 322 | * @return |
|---|
| 323 | * The parent object. |
|---|
| 324 | */ |
|---|
| 325 | public Object getParent() { |
|---|
| 326 | return this.parent; |
|---|
| 327 | } |
|---|
| 328 | |
|---|
| 329 | public void setParent(Object parent) { |
|---|
| 330 | this.parent = parent; |
|---|
| 331 | } |
|---|
| 332 | |
|---|
| 333 | /** |
|---|
| 334 | * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. |
|---|
| 335 | * |
|---|
| 336 | * @param parent |
|---|
| 337 | * The parent object in the object tree. |
|---|
| 338 | * @param unmarshaller |
|---|
| 339 | * The unmarshaller that generated the instance. |
|---|
| 340 | */ |
|---|
| 341 | public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { |
|---|
| 342 | setParent(parent); |
|---|
| 343 | } |
|---|
| 344 | |
|---|
| 345 | |
|---|
| 346 | /** |
|---|
| 347 | * <p>Java class for anonymous complex type. |
|---|
| 348 | * |
|---|
| 349 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 350 | * |
|---|
| 351 | * <pre> |
|---|
| 352 | * <complexType> |
|---|
| 353 | * <complexContent> |
|---|
| 354 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 355 | * <attribute name="val" use="required"> |
|---|
| 356 | * <simpleType> |
|---|
| 357 | * <restriction base="{http://www.w3.org/2001/XMLSchema}integer"> |
|---|
| 358 | * </restriction> |
|---|
| 359 | * </simpleType> |
|---|
| 360 | * </attribute> |
|---|
| 361 | * </restriction> |
|---|
| 362 | * </complexContent> |
|---|
| 363 | * </complexType> |
|---|
| 364 | * </pre> |
|---|
| 365 | * |
|---|
| 366 | * |
|---|
| 367 | */ |
|---|
| 368 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 369 | @XmlType(name = "") |
|---|
| 370 | public static class ColDelim |
|---|
| 371 | implements Child |
|---|
| 372 | { |
|---|
| 373 | |
|---|
| 374 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true) |
|---|
| 375 | protected BigInteger val; |
|---|
| 376 | @XmlTransient |
|---|
| 377 | private Object parent; |
|---|
| 378 | |
|---|
| 379 | /** |
|---|
| 380 | * Gets the value of the val property. |
|---|
| 381 | * |
|---|
| 382 | * @return |
|---|
| 383 | * possible object is |
|---|
| 384 | * {@link BigInteger } |
|---|
| 385 | * |
|---|
| 386 | */ |
|---|
| 387 | public BigInteger getVal() { |
|---|
| 388 | return val; |
|---|
| 389 | } |
|---|
| 390 | |
|---|
| 391 | /** |
|---|
| 392 | * Sets the value of the val property. |
|---|
| 393 | * |
|---|
| 394 | * @param value |
|---|
| 395 | * allowed object is |
|---|
| 396 | * {@link BigInteger } |
|---|
| 397 | * |
|---|
| 398 | */ |
|---|
| 399 | public void setVal(BigInteger value) { |
|---|
| 400 | this.val = value; |
|---|
| 401 | } |
|---|
| 402 | |
|---|
| 403 | /** |
|---|
| 404 | * Gets the parent object in the object tree representing the unmarshalled xml document. |
|---|
| 405 | * |
|---|
| 406 | * @return |
|---|
| 407 | * The parent object. |
|---|
| 408 | */ |
|---|
| 409 | public Object getParent() { |
|---|
| 410 | return this.parent; |
|---|
| 411 | } |
|---|
| 412 | |
|---|
| 413 | public void setParent(Object parent) { |
|---|
| 414 | this.parent = parent; |
|---|
| 415 | } |
|---|
| 416 | |
|---|
| 417 | /** |
|---|
| 418 | * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. |
|---|
| 419 | * |
|---|
| 420 | * @param parent |
|---|
| 421 | * The parent object in the object tree. |
|---|
| 422 | * @param unmarshaller |
|---|
| 423 | * The unmarshaller that generated the instance. |
|---|
| 424 | */ |
|---|
| 425 | public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { |
|---|
| 426 | setParent(parent); |
|---|
| 427 | } |
|---|
| 428 | |
|---|
| 429 | } |
|---|
| 430 | |
|---|
| 431 | |
|---|
| 432 | /** |
|---|
| 433 | * <p>Java class for anonymous complex type. |
|---|
| 434 | * |
|---|
| 435 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 436 | * |
|---|
| 437 | * <pre> |
|---|
| 438 | * <complexType> |
|---|
| 439 | * <complexContent> |
|---|
| 440 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 441 | * <attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" /> |
|---|
| 442 | * </restriction> |
|---|
| 443 | * </complexContent> |
|---|
| 444 | * </complexType> |
|---|
| 445 | * </pre> |
|---|
| 446 | * |
|---|
| 447 | * |
|---|
| 448 | */ |
|---|
| 449 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 450 | @XmlType(name = "") |
|---|
| 451 | public static class Table |
|---|
| 452 | implements Child |
|---|
| 453 | { |
|---|
| 454 | |
|---|
| 455 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 456 | protected String val; |
|---|
| 457 | @XmlTransient |
|---|
| 458 | private Object parent; |
|---|
| 459 | |
|---|
| 460 | /** |
|---|
| 461 | * Gets the value of the val property. |
|---|
| 462 | * |
|---|
| 463 | * @return |
|---|
| 464 | * possible object is |
|---|
| 465 | * {@link String } |
|---|
| 466 | * |
|---|
| 467 | */ |
|---|
| 468 | public String getVal() { |
|---|
| 469 | return val; |
|---|
| 470 | } |
|---|
| 471 | |
|---|
| 472 | /** |
|---|
| 473 | * Sets the value of the val property. |
|---|
| 474 | * |
|---|
| 475 | * @param value |
|---|
| 476 | * allowed object is |
|---|
| 477 | * {@link String } |
|---|
| 478 | * |
|---|
| 479 | */ |
|---|
| 480 | public void setVal(String value) { |
|---|
| 481 | this.val = value; |
|---|
| 482 | } |
|---|
| 483 | |
|---|
| 484 | /** |
|---|
| 485 | * Gets the parent object in the object tree representing the unmarshalled xml document. |
|---|
| 486 | * |
|---|
| 487 | * @return |
|---|
| 488 | * The parent object. |
|---|
| 489 | */ |
|---|
| 490 | public Object getParent() { |
|---|
| 491 | return this.parent; |
|---|
| 492 | } |
|---|
| 493 | |
|---|
| 494 | public void setParent(Object parent) { |
|---|
| 495 | this.parent = parent; |
|---|
| 496 | } |
|---|
| 497 | |
|---|
| 498 | /** |
|---|
| 499 | * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. |
|---|
| 500 | * |
|---|
| 501 | * @param parent |
|---|
| 502 | * The parent object in the object tree. |
|---|
| 503 | * @param unmarshaller |
|---|
| 504 | * The unmarshaller that generated the instance. |
|---|
| 505 | */ |
|---|
| 506 | public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { |
|---|
| 507 | setParent(parent); |
|---|
| 508 | } |
|---|
| 509 | |
|---|
| 510 | } |
|---|
| 511 | |
|---|
| 512 | |
|---|
| 513 | /** |
|---|
| 514 | * <p>Java class for anonymous complex type. |
|---|
| 515 | * |
|---|
| 516 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 517 | * |
|---|
| 518 | * <pre> |
|---|
| 519 | * <complexType> |
|---|
| 520 | * <complexContent> |
|---|
| 521 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 522 | * <attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" /> |
|---|
| 523 | * </restriction> |
|---|
| 524 | * </complexContent> |
|---|
| 525 | * </complexType> |
|---|
| 526 | * </pre> |
|---|
| 527 | * |
|---|
| 528 | * |
|---|
| 529 | */ |
|---|
| 530 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 531 | @XmlType(name = "") |
|---|
| 532 | public static class Udl |
|---|
| 533 | implements Child |
|---|
| 534 | { |
|---|
| 535 | |
|---|
| 536 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 537 | protected String val; |
|---|
| 538 | @XmlTransient |
|---|
| 539 | private Object parent; |
|---|
| 540 | |
|---|
| 541 | /** |
|---|
| 542 | * Gets the value of the val property. |
|---|
| 543 | * |
|---|
| 544 | * @return |
|---|
| 545 | * possible object is |
|---|
| 546 | * {@link String } |
|---|
| 547 | * |
|---|
| 548 | */ |
|---|
| 549 | public String getVal() { |
|---|
| 550 | return val; |
|---|
| 551 | } |
|---|
| 552 | |
|---|
| 553 | /** |
|---|
| 554 | * Sets the value of the val property. |
|---|
| 555 | * |
|---|
| 556 | * @param value |
|---|
| 557 | * allowed object is |
|---|
| 558 | * {@link String } |
|---|
| 559 | * |
|---|
| 560 | */ |
|---|
| 561 | public void setVal(String value) { |
|---|
| 562 | this.val = value; |
|---|
| 563 | } |
|---|
| 564 | |
|---|
| 565 | /** |
|---|
| 566 | * Gets the parent object in the object tree representing the unmarshalled xml document. |
|---|
| 567 | * |
|---|
| 568 | * @return |
|---|
| 569 | * The parent object. |
|---|
| 570 | */ |
|---|
| 571 | public Object getParent() { |
|---|
| 572 | return this.parent; |
|---|
| 573 | } |
|---|
| 574 | |
|---|
| 575 | public void setParent(Object parent) { |
|---|
| 576 | this.parent = parent; |
|---|
| 577 | } |
|---|
| 578 | |
|---|
| 579 | /** |
|---|
| 580 | * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. |
|---|
| 581 | * |
|---|
| 582 | * @param parent |
|---|
| 583 | * The parent object in the object tree. |
|---|
| 584 | * @param unmarshaller |
|---|
| 585 | * The unmarshaller that generated the instance. |
|---|
| 586 | */ |
|---|
| 587 | public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { |
|---|
| 588 | setParent(parent); |
|---|
| 589 | } |
|---|
| 590 | |
|---|
| 591 | } |
|---|
| 592 | |
|---|
| 593 | } |
|---|