PageRenderTime 46ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/docx4j-openxml-objects/src/main/java/org/docx4j/dml/CTGvmlGroupShape.java

http://github.com/plutext/docx4j
Java | 224 lines | 70 code | 17 blank | 137 comment | 2 complexity | 49463174c390bb46e271e644780830b7 MD5 | raw file
Possible License(s): Apache-2.0
  1. /*
  2. * Copyright 2007-2008, Plutext Pty Ltd.
  3. *
  4. * This file is part of docx4j.
  5. docx4j is licensed under the Apache License, Version 2.0 (the "License");
  6. you may not use this file except in compliance with the License.
  7. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. */
  15. package org.docx4j.dml;
  16. import org.docx4j.dml.ArrayListDml;
  17. import java.util.List;
  18. import javax.xml.bind.Unmarshaller;
  19. import javax.xml.bind.annotation.XmlAccessType;
  20. import javax.xml.bind.annotation.XmlAccessorType;
  21. import javax.xml.bind.annotation.XmlElement;
  22. import javax.xml.bind.annotation.XmlElements;
  23. import javax.xml.bind.annotation.XmlTransient;
  24. import javax.xml.bind.annotation.XmlType;
  25. import org.jvnet.jaxb2_commons.ppp.Child;
  26. /**
  27. * <p>Java class for CT_GvmlGroupShape complex type.
  28. *
  29. * <p>The following schema fragment specifies the expected content contained within this class.
  30. *
  31. * <pre>
  32. * &lt;complexType name="CT_GvmlGroupShape"&gt;
  33. * &lt;complexContent&gt;
  34. * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
  35. * &lt;sequence&gt;
  36. * &lt;element name="nvGrpSpPr" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_GvmlGroupShapeNonVisual"/&gt;
  37. * &lt;element name="grpSpPr" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_GroupShapeProperties"/&gt;
  38. * &lt;choice maxOccurs="unbounded" minOccurs="0"&gt;
  39. * &lt;element name="txSp" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_GvmlTextShape"/&gt;
  40. * &lt;element name="sp" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_GvmlShape"/&gt;
  41. * &lt;element name="cxnSp" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_GvmlConnector"/&gt;
  42. * &lt;element name="pic" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_GvmlPicture"/&gt;
  43. * &lt;element name="graphicFrame" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_GvmlGraphicalObjectFrame"/&gt;
  44. * &lt;element name="grpSp" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_GvmlGroupShape"/&gt;
  45. * &lt;/choice&gt;
  46. * &lt;element name="extLst" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_OfficeArtExtensionList" minOccurs="0"/&gt;
  47. * &lt;/sequence&gt;
  48. * &lt;/restriction&gt;
  49. * &lt;/complexContent&gt;
  50. * &lt;/complexType&gt;
  51. * </pre>
  52. *
  53. *
  54. */
  55. @XmlAccessorType(XmlAccessType.FIELD)
  56. @XmlType(name = "CT_GvmlGroupShape", propOrder = {
  57. "nvGrpSpPr",
  58. "grpSpPr",
  59. "txSpOrSpOrCxnSp",
  60. "extLst"
  61. })
  62. public class CTGvmlGroupShape implements Child
  63. {
  64. @XmlElement(required = true)
  65. protected CTGvmlGroupShapeNonVisual nvGrpSpPr;
  66. @XmlElement(required = true)
  67. protected CTGroupShapeProperties grpSpPr;
  68. @XmlElements({
  69. @XmlElement(name = "txSp", type = CTGvmlTextShape.class),
  70. @XmlElement(name = "sp", type = CTGvmlShape.class),
  71. @XmlElement(name = "cxnSp", type = CTGvmlConnector.class),
  72. @XmlElement(name = "pic", type = CTGvmlPicture.class),
  73. @XmlElement(name = "graphicFrame", type = CTGvmlGraphicalObjectFrame.class),
  74. @XmlElement(name = "grpSp", type = CTGvmlGroupShape.class)
  75. })
  76. protected List<Object> txSpOrSpOrCxnSp = new ArrayListDml<Object>(this);
  77. protected CTOfficeArtExtensionList extLst;
  78. @XmlTransient
  79. private Object parent;
  80. /**
  81. * Gets the value of the nvGrpSpPr property.
  82. *
  83. * @return
  84. * possible object is
  85. * {@link CTGvmlGroupShapeNonVisual }
  86. *
  87. */
  88. public CTGvmlGroupShapeNonVisual getNvGrpSpPr() {
  89. return nvGrpSpPr;
  90. }
  91. /**
  92. * Sets the value of the nvGrpSpPr property.
  93. *
  94. * @param value
  95. * allowed object is
  96. * {@link CTGvmlGroupShapeNonVisual }
  97. *
  98. */
  99. public void setNvGrpSpPr(CTGvmlGroupShapeNonVisual value) {
  100. this.nvGrpSpPr = value;
  101. }
  102. /**
  103. * Gets the value of the grpSpPr property.
  104. *
  105. * @return
  106. * possible object is
  107. * {@link CTGroupShapeProperties }
  108. *
  109. */
  110. public CTGroupShapeProperties getGrpSpPr() {
  111. return grpSpPr;
  112. }
  113. /**
  114. * Sets the value of the grpSpPr property.
  115. *
  116. * @param value
  117. * allowed object is
  118. * {@link CTGroupShapeProperties }
  119. *
  120. */
  121. public void setGrpSpPr(CTGroupShapeProperties value) {
  122. this.grpSpPr = value;
  123. }
  124. /**
  125. * Gets the value of the txSpOrSpOrCxnSp property.
  126. *
  127. * <p>
  128. * This accessor method returns a reference to the live list,
  129. * not a snapshot. Therefore any modification you make to the
  130. * returned list will be present inside the JAXB object.
  131. * This is why there is not a <CODE>set</CODE> method for the txSpOrSpOrCxnSp property.
  132. *
  133. * <p>
  134. * For example, to add a new item, do as follows:
  135. * <pre>
  136. * getTxSpOrSpOrCxnSp().add(newItem);
  137. * </pre>
  138. *
  139. *
  140. * <p>
  141. * Objects of the following type(s) are allowed in the list
  142. * {@link CTGvmlTextShape }
  143. * {@link CTGvmlShape }
  144. * {@link CTGvmlConnector }
  145. * {@link CTGvmlPicture }
  146. * {@link CTGvmlGraphicalObjectFrame }
  147. * {@link CTGvmlGroupShape }
  148. *
  149. *
  150. */
  151. public List<Object> getTxSpOrSpOrCxnSp() {
  152. if (txSpOrSpOrCxnSp == null) {
  153. txSpOrSpOrCxnSp = new ArrayListDml<Object>(this);
  154. }
  155. return this.txSpOrSpOrCxnSp;
  156. }
  157. /**
  158. * Gets the value of the extLst property.
  159. *
  160. * @return
  161. * possible object is
  162. * {@link CTOfficeArtExtensionList }
  163. *
  164. */
  165. public CTOfficeArtExtensionList getExtLst() {
  166. return extLst;
  167. }
  168. /**
  169. * Sets the value of the extLst property.
  170. *
  171. * @param value
  172. * allowed object is
  173. * {@link CTOfficeArtExtensionList }
  174. *
  175. */
  176. public void setExtLst(CTOfficeArtExtensionList value) {
  177. this.extLst = value;
  178. }
  179. /**
  180. * Gets the parent object in the object tree representing the unmarshalled xml document.
  181. *
  182. * @return
  183. * The parent object.
  184. */
  185. public Object getParent() {
  186. return this.parent;
  187. }
  188. public void setParent(Object parent) {
  189. this.parent = parent;
  190. }
  191. /**
  192. * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
  193. *
  194. * @param parent
  195. * The parent object in the object tree.
  196. * @param unmarshaller
  197. * The unmarshaller that generated the instance.
  198. */
  199. public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
  200. setParent(parent);
  201. }
  202. }