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