| 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 javax.xml.bind.Unmarshaller; |
|---|
| 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.XmlTransient; |
|---|
| 31 | import javax.xml.bind.annotation.XmlType; |
|---|
| 32 | import org.jvnet.jaxb2_commons.ppp.Child; |
|---|
| 33 | |
|---|
| 34 | |
|---|
| 35 | /** |
|---|
| 36 | * <p>Java class for CT_RecipientData complex type. |
|---|
| 37 | * |
|---|
| 38 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 39 | * |
|---|
| 40 | * <pre> |
|---|
| 41 | * <complexType name="CT_RecipientData"> |
|---|
| 42 | * <complexContent> |
|---|
| 43 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 44 | * <sequence> |
|---|
| 45 | * <element name="active" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/> |
|---|
| 46 | * <element name="column"> |
|---|
| 47 | * <complexType> |
|---|
| 48 | * <complexContent> |
|---|
| 49 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 50 | * <attribute name="val" use="required"> |
|---|
| 51 | * <simpleType> |
|---|
| 52 | * <restriction base="{http://www.w3.org/2001/XMLSchema}integer"> |
|---|
| 53 | * </restriction> |
|---|
| 54 | * </simpleType> |
|---|
| 55 | * </attribute> |
|---|
| 56 | * </restriction> |
|---|
| 57 | * </complexContent> |
|---|
| 58 | * </complexType> |
|---|
| 59 | * </element> |
|---|
| 60 | * <element name="uniqueTag" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/> |
|---|
| 61 | * </sequence> |
|---|
| 62 | * </restriction> |
|---|
| 63 | * </complexContent> |
|---|
| 64 | * </complexType> |
|---|
| 65 | * </pre> |
|---|
| 66 | * |
|---|
| 67 | * |
|---|
| 68 | */ |
|---|
| 69 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 70 | @XmlType(name = "CT_RecipientData", propOrder = { |
|---|
| 71 | "active", |
|---|
| 72 | "column", |
|---|
| 73 | "uniqueTag" |
|---|
| 74 | }) |
|---|
| 75 | public class CTRecipientData |
|---|
| 76 | implements Child |
|---|
| 77 | { |
|---|
| 78 | |
|---|
| 79 | protected BooleanDefaultTrue active; |
|---|
| 80 | @XmlElement(required = true) |
|---|
| 81 | protected CTRecipientData.Column column; |
|---|
| 82 | @XmlElement(required = true) |
|---|
| 83 | protected byte[] uniqueTag; |
|---|
| 84 | @XmlTransient |
|---|
| 85 | private Object parent; |
|---|
| 86 | |
|---|
| 87 | /** |
|---|
| 88 | * Gets the value of the active property. |
|---|
| 89 | * |
|---|
| 90 | * @return |
|---|
| 91 | * possible object is |
|---|
| 92 | * {@link BooleanDefaultTrue } |
|---|
| 93 | * |
|---|
| 94 | */ |
|---|
| 95 | public BooleanDefaultTrue getActive() { |
|---|
| 96 | return active; |
|---|
| 97 | } |
|---|
| 98 | |
|---|
| 99 | /** |
|---|
| 100 | * Sets the value of the active property. |
|---|
| 101 | * |
|---|
| 102 | * @param value |
|---|
| 103 | * allowed object is |
|---|
| 104 | * {@link BooleanDefaultTrue } |
|---|
| 105 | * |
|---|
| 106 | */ |
|---|
| 107 | public void setActive(BooleanDefaultTrue value) { |
|---|
| 108 | this.active = value; |
|---|
| 109 | } |
|---|
| 110 | |
|---|
| 111 | /** |
|---|
| 112 | * Gets the value of the column property. |
|---|
| 113 | * |
|---|
| 114 | * @return |
|---|
| 115 | * possible object is |
|---|
| 116 | * {@link CTRecipientData.Column } |
|---|
| 117 | * |
|---|
| 118 | */ |
|---|
| 119 | public CTRecipientData.Column getColumn() { |
|---|
| 120 | return column; |
|---|
| 121 | } |
|---|
| 122 | |
|---|
| 123 | /** |
|---|
| 124 | * Sets the value of the column property. |
|---|
| 125 | * |
|---|
| 126 | * @param value |
|---|
| 127 | * allowed object is |
|---|
| 128 | * {@link CTRecipientData.Column } |
|---|
| 129 | * |
|---|
| 130 | */ |
|---|
| 131 | public void setColumn(CTRecipientData.Column value) { |
|---|
| 132 | this.column = value; |
|---|
| 133 | } |
|---|
| 134 | |
|---|
| 135 | /** |
|---|
| 136 | * Gets the value of the uniqueTag property. |
|---|
| 137 | * |
|---|
| 138 | * @return |
|---|
| 139 | * possible object is |
|---|
| 140 | * byte[] |
|---|
| 141 | */ |
|---|
| 142 | public byte[] getUniqueTag() { |
|---|
| 143 | return uniqueTag; |
|---|
| 144 | } |
|---|
| 145 | |
|---|
| 146 | /** |
|---|
| 147 | * Sets the value of the uniqueTag property. |
|---|
| 148 | * |
|---|
| 149 | * @param value |
|---|
| 150 | * allowed object is |
|---|
| 151 | * byte[] |
|---|
| 152 | */ |
|---|
| 153 | public void setUniqueTag(byte[] value) { |
|---|
| 154 | this.uniqueTag = ((byte[]) value); |
|---|
| 155 | } |
|---|
| 156 | |
|---|
| 157 | /** |
|---|
| 158 | * Gets the parent object in the object tree representing the unmarshalled xml document. |
|---|
| 159 | * |
|---|
| 160 | * @return |
|---|
| 161 | * The parent object. |
|---|
| 162 | */ |
|---|
| 163 | public Object getParent() { |
|---|
| 164 | return this.parent; |
|---|
| 165 | } |
|---|
| 166 | |
|---|
| 167 | public void setParent(Object parent) { |
|---|
| 168 | this.parent = parent; |
|---|
| 169 | } |
|---|
| 170 | |
|---|
| 171 | /** |
|---|
| 172 | * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. |
|---|
| 173 | * |
|---|
| 174 | * @param parent |
|---|
| 175 | * The parent object in the object tree. |
|---|
| 176 | * @param unmarshaller |
|---|
| 177 | * The unmarshaller that generated the instance. |
|---|
| 178 | */ |
|---|
| 179 | public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { |
|---|
| 180 | setParent(parent); |
|---|
| 181 | } |
|---|
| 182 | |
|---|
| 183 | |
|---|
| 184 | /** |
|---|
| 185 | * <p>Java class for anonymous complex type. |
|---|
| 186 | * |
|---|
| 187 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 188 | * |
|---|
| 189 | * <pre> |
|---|
| 190 | * <complexType> |
|---|
| 191 | * <complexContent> |
|---|
| 192 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 193 | * <attribute name="val" use="required"> |
|---|
| 194 | * <simpleType> |
|---|
| 195 | * <restriction base="{http://www.w3.org/2001/XMLSchema}integer"> |
|---|
| 196 | * </restriction> |
|---|
| 197 | * </simpleType> |
|---|
| 198 | * </attribute> |
|---|
| 199 | * </restriction> |
|---|
| 200 | * </complexContent> |
|---|
| 201 | * </complexType> |
|---|
| 202 | * </pre> |
|---|
| 203 | * |
|---|
| 204 | * |
|---|
| 205 | */ |
|---|
| 206 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 207 | @XmlType(name = "") |
|---|
| 208 | public static class Column |
|---|
| 209 | implements Child |
|---|
| 210 | { |
|---|
| 211 | |
|---|
| 212 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true) |
|---|
| 213 | protected BigInteger val; |
|---|
| 214 | @XmlTransient |
|---|
| 215 | private Object parent; |
|---|
| 216 | |
|---|
| 217 | /** |
|---|
| 218 | * Gets the value of the val property. |
|---|
| 219 | * |
|---|
| 220 | * @return |
|---|
| 221 | * possible object is |
|---|
| 222 | * {@link BigInteger } |
|---|
| 223 | * |
|---|
| 224 | */ |
|---|
| 225 | public BigInteger getVal() { |
|---|
| 226 | return val; |
|---|
| 227 | } |
|---|
| 228 | |
|---|
| 229 | /** |
|---|
| 230 | * Sets the value of the val property. |
|---|
| 231 | * |
|---|
| 232 | * @param value |
|---|
| 233 | * allowed object is |
|---|
| 234 | * {@link BigInteger } |
|---|
| 235 | * |
|---|
| 236 | */ |
|---|
| 237 | public void setVal(BigInteger value) { |
|---|
| 238 | this.val = value; |
|---|
| 239 | } |
|---|
| 240 | |
|---|
| 241 | /** |
|---|
| 242 | * Gets the parent object in the object tree representing the unmarshalled xml document. |
|---|
| 243 | * |
|---|
| 244 | * @return |
|---|
| 245 | * The parent object. |
|---|
| 246 | */ |
|---|
| 247 | public Object getParent() { |
|---|
| 248 | return this.parent; |
|---|
| 249 | } |
|---|
| 250 | |
|---|
| 251 | public void setParent(Object parent) { |
|---|
| 252 | this.parent = parent; |
|---|
| 253 | } |
|---|
| 254 | |
|---|
| 255 | /** |
|---|
| 256 | * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. |
|---|
| 257 | * |
|---|
| 258 | * @param parent |
|---|
| 259 | * The parent object in the object tree. |
|---|
| 260 | * @param unmarshaller |
|---|
| 261 | * The unmarshaller that generated the instance. |
|---|
| 262 | */ |
|---|
| 263 | public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { |
|---|
| 264 | setParent(parent); |
|---|
| 265 | } |
|---|
| 266 | |
|---|
| 267 | } |
|---|
| 268 | |
|---|
| 269 | } |
|---|