| 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.vml; |
|---|
| 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.docx4j.vml.officedrawing.STConnectType; |
|---|
| 31 | import org.jvnet.jaxb2_commons.ppp.Child; |
|---|
| 32 | |
|---|
| 33 | |
|---|
| 34 | /** |
|---|
| 35 | * <p>Java class for CT_Path complex type. |
|---|
| 36 | * |
|---|
| 37 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 38 | * |
|---|
| 39 | * <pre> |
|---|
| 40 | * <complexType name="CT_Path"> |
|---|
| 41 | * <complexContent> |
|---|
| 42 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 43 | * <attGroup ref="{urn:schemas-microsoft-com:vml}AG_Id"/> |
|---|
| 44 | * <attribute name="v" type="{http://www.w3.org/2001/XMLSchema}string" /> |
|---|
| 45 | * <attribute name="limo" type="{http://www.w3.org/2001/XMLSchema}string" /> |
|---|
| 46 | * <attribute name="textboxrect" type="{http://www.w3.org/2001/XMLSchema}string" /> |
|---|
| 47 | * <attribute name="fillok" type="{urn:schemas-microsoft-com:vml}ST_TrueFalse" /> |
|---|
| 48 | * <attribute name="strokeok" type="{urn:schemas-microsoft-com:vml}ST_TrueFalse" /> |
|---|
| 49 | * <attribute name="shadowok" type="{urn:schemas-microsoft-com:vml}ST_TrueFalse" /> |
|---|
| 50 | * <attribute name="arrowok" type="{urn:schemas-microsoft-com:vml}ST_TrueFalse" /> |
|---|
| 51 | * <attribute name="gradientshapeok" type="{urn:schemas-microsoft-com:vml}ST_TrueFalse" /> |
|---|
| 52 | * <attribute name="textpathok" type="{urn:schemas-microsoft-com:vml}ST_TrueFalse" /> |
|---|
| 53 | * <attribute name="insetpenok" type="{urn:schemas-microsoft-com:vml}ST_TrueFalse" /> |
|---|
| 54 | * <attribute ref="{urn:schemas-microsoft-com:office:office}connecttype"/> |
|---|
| 55 | * <attribute ref="{urn:schemas-microsoft-com:office:office}connectlocs"/> |
|---|
| 56 | * <attribute ref="{urn:schemas-microsoft-com:office:office}connectangles"/> |
|---|
| 57 | * <attribute ref="{urn:schemas-microsoft-com:office:office}extrusionok"/> |
|---|
| 58 | * </restriction> |
|---|
| 59 | * </complexContent> |
|---|
| 60 | * </complexType> |
|---|
| 61 | * </pre> |
|---|
| 62 | * |
|---|
| 63 | * |
|---|
| 64 | */ |
|---|
| 65 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 66 | @XmlType(name = "CT_Path") |
|---|
| 67 | public class CTPath implements Child |
|---|
| 68 | { |
|---|
| 69 | |
|---|
| 70 | @XmlAttribute(name = "v") |
|---|
| 71 | protected String v; |
|---|
| 72 | @XmlAttribute(name = "limo") |
|---|
| 73 | protected String limo; |
|---|
| 74 | @XmlAttribute(name = "textboxrect") |
|---|
| 75 | protected String textboxrect; |
|---|
| 76 | @XmlAttribute(name = "fillok") |
|---|
| 77 | protected org.docx4j.vml.STTrueFalse fillok; |
|---|
| 78 | @XmlAttribute(name = "strokeok") |
|---|
| 79 | protected org.docx4j.vml.STTrueFalse strokeok; |
|---|
| 80 | @XmlAttribute(name = "shadowok") |
|---|
| 81 | protected org.docx4j.vml.STTrueFalse shadowok; |
|---|
| 82 | @XmlAttribute(name = "arrowok") |
|---|
| 83 | protected org.docx4j.vml.STTrueFalse arrowok; |
|---|
| 84 | @XmlAttribute(name = "gradientshapeok") |
|---|
| 85 | protected org.docx4j.vml.STTrueFalse gradientshapeok; |
|---|
| 86 | @XmlAttribute(name = "textpathok") |
|---|
| 87 | protected org.docx4j.vml.STTrueFalse textpathok; |
|---|
| 88 | @XmlAttribute(name = "insetpenok") |
|---|
| 89 | protected org.docx4j.vml.STTrueFalse insetpenok; |
|---|
| 90 | @XmlAttribute(name = "connecttype", namespace = "urn:schemas-microsoft-com:office:office") |
|---|
| 91 | protected STConnectType connecttype; |
|---|
| 92 | @XmlAttribute(name = "connectlocs", namespace = "urn:schemas-microsoft-com:office:office") |
|---|
| 93 | protected String connectlocs; |
|---|
| 94 | @XmlAttribute(name = "connectangles", namespace = "urn:schemas-microsoft-com:office:office") |
|---|
| 95 | protected String connectangles; |
|---|
| 96 | @XmlAttribute(name = "extrusionok", namespace = "urn:schemas-microsoft-com:office:office") |
|---|
| 97 | protected org.docx4j.vml.officedrawing.STTrueFalse extrusionok; |
|---|
| 98 | @XmlAttribute(name = "id") |
|---|
| 99 | protected String vmlId; |
|---|
| 100 | @XmlTransient |
|---|
| 101 | private Object parent; |
|---|
| 102 | |
|---|
| 103 | /** |
|---|
| 104 | * Gets the value of the v property. |
|---|
| 105 | * |
|---|
| 106 | * @return |
|---|
| 107 | * possible object is |
|---|
| 108 | * {@link String } |
|---|
| 109 | * |
|---|
| 110 | */ |
|---|
| 111 | public String getV() { |
|---|
| 112 | return v; |
|---|
| 113 | } |
|---|
| 114 | |
|---|
| 115 | /** |
|---|
| 116 | * Sets the value of the v property. |
|---|
| 117 | * |
|---|
| 118 | * @param value |
|---|
| 119 | * allowed object is |
|---|
| 120 | * {@link String } |
|---|
| 121 | * |
|---|
| 122 | */ |
|---|
| 123 | public void setV(String value) { |
|---|
| 124 | this.v = value; |
|---|
| 125 | } |
|---|
| 126 | |
|---|
| 127 | /** |
|---|
| 128 | * Gets the value of the limo property. |
|---|
| 129 | * |
|---|
| 130 | * @return |
|---|
| 131 | * possible object is |
|---|
| 132 | * {@link String } |
|---|
| 133 | * |
|---|
| 134 | */ |
|---|
| 135 | public String getLimo() { |
|---|
| 136 | return limo; |
|---|
| 137 | } |
|---|
| 138 | |
|---|
| 139 | /** |
|---|
| 140 | * Sets the value of the limo property. |
|---|
| 141 | * |
|---|
| 142 | * @param value |
|---|
| 143 | * allowed object is |
|---|
| 144 | * {@link String } |
|---|
| 145 | * |
|---|
| 146 | */ |
|---|
| 147 | public void setLimo(String value) { |
|---|
| 148 | this.limo = value; |
|---|
| 149 | } |
|---|
| 150 | |
|---|
| 151 | /** |
|---|
| 152 | * Gets the value of the textboxrect property. |
|---|
| 153 | * |
|---|
| 154 | * @return |
|---|
| 155 | * possible object is |
|---|
| 156 | * {@link String } |
|---|
| 157 | * |
|---|
| 158 | */ |
|---|
| 159 | public String getTextboxrect() { |
|---|
| 160 | return textboxrect; |
|---|
| 161 | } |
|---|
| 162 | |
|---|
| 163 | /** |
|---|
| 164 | * Sets the value of the textboxrect property. |
|---|
| 165 | * |
|---|
| 166 | * @param value |
|---|
| 167 | * allowed object is |
|---|
| 168 | * {@link String } |
|---|
| 169 | * |
|---|
| 170 | */ |
|---|
| 171 | public void setTextboxrect(String value) { |
|---|
| 172 | this.textboxrect = value; |
|---|
| 173 | } |
|---|
| 174 | |
|---|
| 175 | /** |
|---|
| 176 | * Gets the value of the fillok property. |
|---|
| 177 | * |
|---|
| 178 | * @return |
|---|
| 179 | * possible object is |
|---|
| 180 | * {@link org.docx4j.vml.STTrueFalse } |
|---|
| 181 | * |
|---|
| 182 | */ |
|---|
| 183 | public org.docx4j.vml.STTrueFalse getFillok() { |
|---|
| 184 | return fillok; |
|---|
| 185 | } |
|---|
| 186 | |
|---|
| 187 | /** |
|---|
| 188 | * Sets the value of the fillok property. |
|---|
| 189 | * |
|---|
| 190 | * @param value |
|---|
| 191 | * allowed object is |
|---|
| 192 | * {@link org.docx4j.vml.STTrueFalse } |
|---|
| 193 | * |
|---|
| 194 | */ |
|---|
| 195 | public void setFillok(org.docx4j.vml.STTrueFalse value) { |
|---|
| 196 | this.fillok = value; |
|---|
| 197 | } |
|---|
| 198 | |
|---|
| 199 | /** |
|---|
| 200 | * Gets the value of the strokeok property. |
|---|
| 201 | * |
|---|
| 202 | * @return |
|---|
| 203 | * possible object is |
|---|
| 204 | * {@link org.docx4j.vml.STTrueFalse } |
|---|
| 205 | * |
|---|
| 206 | */ |
|---|
| 207 | public org.docx4j.vml.STTrueFalse getStrokeok() { |
|---|
| 208 | return strokeok; |
|---|
| 209 | } |
|---|
| 210 | |
|---|
| 211 | /** |
|---|
| 212 | * Sets the value of the strokeok property. |
|---|
| 213 | * |
|---|
| 214 | * @param value |
|---|
| 215 | * allowed object is |
|---|
| 216 | * {@link org.docx4j.vml.STTrueFalse } |
|---|
| 217 | * |
|---|
| 218 | */ |
|---|
| 219 | public void setStrokeok(org.docx4j.vml.STTrueFalse value) { |
|---|
| 220 | this.strokeok = value; |
|---|
| 221 | } |
|---|
| 222 | |
|---|
| 223 | /** |
|---|
| 224 | * Gets the value of the shadowok property. |
|---|
| 225 | * |
|---|
| 226 | * @return |
|---|
| 227 | * possible object is |
|---|
| 228 | * {@link org.docx4j.vml.STTrueFalse } |
|---|
| 229 | * |
|---|
| 230 | */ |
|---|
| 231 | public org.docx4j.vml.STTrueFalse getShadowok() { |
|---|
| 232 | return shadowok; |
|---|
| 233 | } |
|---|
| 234 | |
|---|
| 235 | /** |
|---|
| 236 | * Sets the value of the shadowok property. |
|---|
| 237 | * |
|---|
| 238 | * @param value |
|---|
| 239 | * allowed object is |
|---|
| 240 | * {@link org.docx4j.vml.STTrueFalse } |
|---|
| 241 | * |
|---|
| 242 | */ |
|---|
| 243 | public void setShadowok(org.docx4j.vml.STTrueFalse value) { |
|---|
| 244 | this.shadowok = value; |
|---|
| 245 | } |
|---|
| 246 | |
|---|
| 247 | /** |
|---|
| 248 | * Gets the value of the arrowok property. |
|---|
| 249 | * |
|---|
| 250 | * @return |
|---|
| 251 | * possible object is |
|---|
| 252 | * {@link org.docx4j.vml.STTrueFalse } |
|---|
| 253 | * |
|---|
| 254 | */ |
|---|
| 255 | public org.docx4j.vml.STTrueFalse getArrowok() { |
|---|
| 256 | return arrowok; |
|---|
| 257 | } |
|---|
| 258 | |
|---|
| 259 | /** |
|---|
| 260 | * Sets the value of the arrowok property. |
|---|
| 261 | * |
|---|
| 262 | * @param value |
|---|
| 263 | * allowed object is |
|---|
| 264 | * {@link org.docx4j.vml.STTrueFalse } |
|---|
| 265 | * |
|---|
| 266 | */ |
|---|
| 267 | public void setArrowok(org.docx4j.vml.STTrueFalse value) { |
|---|
| 268 | this.arrowok = value; |
|---|
| 269 | } |
|---|
| 270 | |
|---|
| 271 | /** |
|---|
| 272 | * Gets the value of the gradientshapeok property. |
|---|
| 273 | * |
|---|
| 274 | * @return |
|---|
| 275 | * possible object is |
|---|
| 276 | * {@link org.docx4j.vml.STTrueFalse } |
|---|
| 277 | * |
|---|
| 278 | */ |
|---|
| 279 | public org.docx4j.vml.STTrueFalse getGradientshapeok() { |
|---|
| 280 | return gradientshapeok; |
|---|
| 281 | } |
|---|
| 282 | |
|---|
| 283 | /** |
|---|
| 284 | * Sets the value of the gradientshapeok property. |
|---|
| 285 | * |
|---|
| 286 | * @param value |
|---|
| 287 | * allowed object is |
|---|
| 288 | * {@link org.docx4j.vml.STTrueFalse } |
|---|
| 289 | * |
|---|
| 290 | */ |
|---|
| 291 | public void setGradientshapeok(org.docx4j.vml.STTrueFalse value) { |
|---|
| 292 | this.gradientshapeok = value; |
|---|
| 293 | } |
|---|
| 294 | |
|---|
| 295 | /** |
|---|
| 296 | * Gets the value of the textpathok property. |
|---|
| 297 | * |
|---|
| 298 | * @return |
|---|
| 299 | * possible object is |
|---|
| 300 | * {@link org.docx4j.vml.STTrueFalse } |
|---|
| 301 | * |
|---|
| 302 | */ |
|---|
| 303 | public org.docx4j.vml.STTrueFalse getTextpathok() { |
|---|
| 304 | return textpathok; |
|---|
| 305 | } |
|---|
| 306 | |
|---|
| 307 | /** |
|---|
| 308 | * Sets the value of the textpathok property. |
|---|
| 309 | * |
|---|
| 310 | * @param value |
|---|
| 311 | * allowed object is |
|---|
| 312 | * {@link org.docx4j.vml.STTrueFalse } |
|---|
| 313 | * |
|---|
| 314 | */ |
|---|
| 315 | public void setTextpathok(org.docx4j.vml.STTrueFalse value) { |
|---|
| 316 | this.textpathok = value; |
|---|
| 317 | } |
|---|
| 318 | |
|---|
| 319 | /** |
|---|
| 320 | * Gets the value of the insetpenok property. |
|---|
| 321 | * |
|---|
| 322 | * @return |
|---|
| 323 | * possible object is |
|---|
| 324 | * {@link org.docx4j.vml.STTrueFalse } |
|---|
| 325 | * |
|---|
| 326 | */ |
|---|
| 327 | public org.docx4j.vml.STTrueFalse getInsetpenok() { |
|---|
| 328 | return insetpenok; |
|---|
| 329 | } |
|---|
| 330 | |
|---|
| 331 | /** |
|---|
| 332 | * Sets the value of the insetpenok property. |
|---|
| 333 | * |
|---|
| 334 | * @param value |
|---|
| 335 | * allowed object is |
|---|
| 336 | * {@link org.docx4j.vml.STTrueFalse } |
|---|
| 337 | * |
|---|
| 338 | */ |
|---|
| 339 | public void setInsetpenok(org.docx4j.vml.STTrueFalse value) { |
|---|
| 340 | this.insetpenok = value; |
|---|
| 341 | } |
|---|
| 342 | |
|---|
| 343 | /** |
|---|
| 344 | * Connection Point Type |
|---|
| 345 | * |
|---|
| 346 | * @return |
|---|
| 347 | * possible object is |
|---|
| 348 | * {@link STConnectType } |
|---|
| 349 | * |
|---|
| 350 | */ |
|---|
| 351 | public STConnectType getConnecttype() { |
|---|
| 352 | return connecttype; |
|---|
| 353 | } |
|---|
| 354 | |
|---|
| 355 | /** |
|---|
| 356 | * Sets the value of the connecttype property. |
|---|
| 357 | * |
|---|
| 358 | * @param value |
|---|
| 359 | * allowed object is |
|---|
| 360 | * {@link STConnectType } |
|---|
| 361 | * |
|---|
| 362 | */ |
|---|
| 363 | public void setConnecttype(STConnectType value) { |
|---|
| 364 | this.connecttype = value; |
|---|
| 365 | } |
|---|
| 366 | |
|---|
| 367 | /** |
|---|
| 368 | * Connection Points |
|---|
| 369 | * |
|---|
| 370 | * @return |
|---|
| 371 | * possible object is |
|---|
| 372 | * {@link String } |
|---|
| 373 | * |
|---|
| 374 | */ |
|---|
| 375 | public String getConnectlocs() { |
|---|
| 376 | return connectlocs; |
|---|
| 377 | } |
|---|
| 378 | |
|---|
| 379 | /** |
|---|
| 380 | * Sets the value of the connectlocs property. |
|---|
| 381 | * |
|---|
| 382 | * @param value |
|---|
| 383 | * allowed object is |
|---|
| 384 | * {@link String } |
|---|
| 385 | * |
|---|
| 386 | */ |
|---|
| 387 | public void setConnectlocs(String value) { |
|---|
| 388 | this.connectlocs = value; |
|---|
| 389 | } |
|---|
| 390 | |
|---|
| 391 | /** |
|---|
| 392 | * Connection Point Connect Angles |
|---|
| 393 | * |
|---|
| 394 | * @return |
|---|
| 395 | * possible object is |
|---|
| 396 | * {@link String } |
|---|
| 397 | * |
|---|
| 398 | */ |
|---|
| 399 | public String getConnectangles() { |
|---|
| 400 | return connectangles; |
|---|
| 401 | } |
|---|
| 402 | |
|---|
| 403 | /** |
|---|
| 404 | * Sets the value of the connectangles property. |
|---|
| 405 | * |
|---|
| 406 | * @param value |
|---|
| 407 | * allowed object is |
|---|
| 408 | * {@link String } |
|---|
| 409 | * |
|---|
| 410 | */ |
|---|
| 411 | public void setConnectangles(String value) { |
|---|
| 412 | this.connectangles = value; |
|---|
| 413 | } |
|---|
| 414 | |
|---|
| 415 | /** |
|---|
| 416 | * Extrusion Toggle |
|---|
| 417 | * |
|---|
| 418 | * @return |
|---|
| 419 | * possible object is |
|---|
| 420 | * {@link org.docx4j.vml.officedrawing.STTrueFalse } |
|---|
| 421 | * |
|---|
| 422 | */ |
|---|
| 423 | public org.docx4j.vml.officedrawing.STTrueFalse getExtrusionok() { |
|---|
| 424 | return extrusionok; |
|---|
| 425 | } |
|---|
| 426 | |
|---|
| 427 | /** |
|---|
| 428 | * Sets the value of the extrusionok property. |
|---|
| 429 | * |
|---|
| 430 | * @param value |
|---|
| 431 | * allowed object is |
|---|
| 432 | * {@link org.docx4j.vml.officedrawing.STTrueFalse } |
|---|
| 433 | * |
|---|
| 434 | */ |
|---|
| 435 | public void setExtrusionok(org.docx4j.vml.officedrawing.STTrueFalse value) { |
|---|
| 436 | this.extrusionok = value; |
|---|
| 437 | } |
|---|
| 438 | |
|---|
| 439 | /** |
|---|
| 440 | * Gets the value of the vmlId property. |
|---|
| 441 | * |
|---|
| 442 | * @return |
|---|
| 443 | * possible object is |
|---|
| 444 | * {@link String } |
|---|
| 445 | * |
|---|
| 446 | */ |
|---|
| 447 | public String getVmlId() { |
|---|
| 448 | return vmlId; |
|---|
| 449 | } |
|---|
| 450 | |
|---|
| 451 | /** |
|---|
| 452 | * Sets the value of the vmlId property. |
|---|
| 453 | * |
|---|
| 454 | * @param value |
|---|
| 455 | * allowed object is |
|---|
| 456 | * {@link String } |
|---|
| 457 | * |
|---|
| 458 | */ |
|---|
| 459 | public void setVmlId(String value) { |
|---|
| 460 | this.vmlId = value; |
|---|
| 461 | } |
|---|
| 462 | |
|---|
| 463 | /** |
|---|
| 464 | * Gets the parent object in the object tree representing the unmarshalled xml document. |
|---|
| 465 | * |
|---|
| 466 | * @return |
|---|
| 467 | * The parent object. |
|---|
| 468 | */ |
|---|
| 469 | public Object getParent() { |
|---|
| 470 | return this.parent; |
|---|
| 471 | } |
|---|
| 472 | |
|---|
| 473 | public void setParent(Object parent) { |
|---|
| 474 | this.parent = parent; |
|---|
| 475 | } |
|---|
| 476 | |
|---|
| 477 | /** |
|---|
| 478 | * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. |
|---|
| 479 | * |
|---|
| 480 | * @param parent |
|---|
| 481 | * The parent object in the object tree. |
|---|
| 482 | * @param unmarshaller |
|---|
| 483 | * The unmarshaller that generated the instance. |
|---|
| 484 | */ |
|---|
| 485 | public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { |
|---|
| 486 | setParent(parent); |
|---|
| 487 | } |
|---|
| 488 | |
|---|
| 489 | } |
|---|