Changeset 1555 for trunk/docx4j/src/main/java/org/docx4j/dml
- Timestamp:
- 06/22/11 01:36:38 (11 months ago)
- Location:
- trunk/docx4j/src/main/java/org/docx4j/dml
- Files:
-
- 3 edited
-
CTBlip.java (modified) (4 diffs)
-
wordprocessingDrawing/Anchor.java (modified) (5 diffs)
-
wordprocessingDrawing/Inline.java (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/docx4j/src/main/java/org/docx4j/dml/CTBlip.java
r1201 r1555 22 22 package org.docx4j.dml; 23 23 24 import org.jvnet.jaxb2_commons.ppp.Child; 25 24 26 import java.util.ArrayList; 25 27 import java.util.List; 26 import javax.xml.bind.annotation.XmlAccessType; 27 import javax.xml.bind.annotation.XmlAccessorType; 28 import javax.xml.bind.annotation.XmlAttribute; 29 import javax.xml.bind.annotation.XmlElement; 30 import javax.xml.bind.annotation.XmlElements; 31 import javax.xml.bind.annotation.XmlType; 28 import javax.xml.bind.Unmarshaller; 29 import javax.xml.bind.annotation.*; 32 30 33 31 … … 77 75 "extLst" 78 76 }) 79 public class CTBlip {77 public class CTBlip implements Child { 80 78 81 79 @XmlElements({ … … 106 104 @XmlAttribute(namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships") 107 105 protected String link; 106 @XmlTransient 107 private Object parent; 108 108 109 109 /** … … 259 259 this.link = value; 260 260 } 261 261 /** 262 * Gets the parent object in the object tree representing the unmarshalled xml document. 263 * 264 * @return 265 * The parent object. 266 */ 267 public Object getParent() { 268 return this.parent; 269 } 270 271 public void setParent(Object parent) { 272 this.parent = parent; 273 } 274 275 /** 276 * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. 277 * 278 * @param parent 279 * The parent object in the object tree. 280 * @param unmarshaller 281 * The unmarshaller that generated the instance. 282 */ 283 public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { 284 setParent(parent); 285 } 262 286 } -
trunk/docx4j/src/main/java/org/docx4j/dml/wordprocessingDrawing/Anchor.java
r1041 r1555 22 22 package org.docx4j.dml.wordprocessingDrawing; 23 23 24 import javax.xml.bind.annotation.XmlAccessType; 25 import javax.xml.bind.annotation.XmlAccessorType; 26 import javax.xml.bind.annotation.XmlAttribute; 27 import javax.xml.bind.annotation.XmlElement; 28 import javax.xml.bind.annotation.XmlSchemaType; 29 import javax.xml.bind.annotation.XmlType; 24 import javax.xml.bind.Unmarshaller; 25 import javax.xml.bind.annotation.*; 26 30 27 import org.docx4j.dml.CTNonVisualDrawingProps; 31 28 import org.docx4j.dml.CTNonVisualGraphicFrameProperties; … … 33 30 import org.docx4j.dml.CTPositiveSize2D; 34 31 import org.docx4j.dml.Graphic; 32 import org.jvnet.jaxb2_commons.ppp.Child; 35 33 36 34 … … 89 87 "graphic" 90 88 }) 91 public class Anchor {89 public class Anchor implements Child { 92 90 93 91 @XmlElement(required = true) … … 133 131 @XmlAttribute(required = true) 134 132 protected boolean allowOverlap; 135 133 @XmlTransient 134 private Object parent; 136 135 /** 137 136 * Gets the value of the simplePos property. … … 670 669 } 671 670 671 /** 672 * Gets the parent object in the object tree representing the unmarshalled xml document. 673 * 674 * @return 675 * The parent object. 676 */ 677 public Object getParent() { 678 return this.parent; 679 } 680 681 public void setParent(Object parent) { 682 this.parent = parent; 683 } 684 685 /** 686 * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. 687 * 688 * @param parent 689 * The parent object in the object tree. 690 * @param unmarshaller 691 * The unmarshaller that generated the instance. 692 */ 693 public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { 694 setParent(parent); 695 } 672 696 } -
trunk/docx4j/src/main/java/org/docx4j/dml/wordprocessingDrawing/Inline.java
r1041 r1555 22 22 package org.docx4j.dml.wordprocessingDrawing; 23 23 24 import javax.xml.bind.annotation.XmlAccessType; 25 import javax.xml.bind.annotation.XmlAccessorType; 26 import javax.xml.bind.annotation.XmlAttribute; 27 import javax.xml.bind.annotation.XmlElement; 28 import javax.xml.bind.annotation.XmlType; 24 import javax.xml.bind.Unmarshaller; 25 import javax.xml.bind.annotation.*; 26 29 27 import org.docx4j.dml.CTNonVisualDrawingProps; 30 28 import org.docx4j.dml.CTNonVisualGraphicFrameProperties; 31 29 import org.docx4j.dml.CTPositiveSize2D; 32 30 import org.docx4j.dml.Graphic; 31 import org.jvnet.jaxb2_commons.ppp.Child; 33 32 34 33 … … 68 67 "graphic" 69 68 }) 70 public class Inline {69 public class Inline implements Child { 71 70 72 71 @XmlElement(required = true) … … 86 85 @XmlAttribute 87 86 protected Long distR; 88 87 @XmlTransient 88 private Object parent; 89 89 /** 90 90 * Gets the value of the extent property. … … 302 302 this.distR = value; 303 303 } 304 304 /** 305 * Gets the parent object in the object tree representing the unmarshalled xml document. 306 * 307 * @return 308 * The parent object. 309 */ 310 public Object getParent() { 311 return this.parent; 312 } 313 314 public void setParent(Object parent) { 315 this.parent = parent; 316 } 317 318 /** 319 * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. 320 * 321 * @param parent 322 * The parent object in the object tree. 323 * @param unmarshaller 324 * The unmarshaller that generated the instance. 325 */ 326 public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { 327 setParent(parent); 328 } 305 329 }
Note: See TracChangeset
for help on using the changeset viewer.
