| 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.XmlTransient; |
|---|
| 30 | import javax.xml.bind.annotation.XmlType; |
|---|
| 31 | import org.jvnet.jaxb2_commons.ppp.Child; |
|---|
| 32 | |
|---|
| 33 | |
|---|
| 34 | /** |
|---|
| 35 | * <p>Java class for CT_TabStop complex type. |
|---|
| 36 | * |
|---|
| 37 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 38 | * |
|---|
| 39 | * <pre> |
|---|
| 40 | * <complexType name="CT_TabStop"> |
|---|
| 41 | * <complexContent> |
|---|
| 42 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 43 | * <attribute name="val" use="required" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_TabJc" /> |
|---|
| 44 | * <attribute name="leader" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_TabTlc" /> |
|---|
| 45 | * <attribute name="pos" use="required" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_SignedTwipsMeasure" /> |
|---|
| 46 | * </restriction> |
|---|
| 47 | * </complexContent> |
|---|
| 48 | * </complexType> |
|---|
| 49 | * </pre> |
|---|
| 50 | * |
|---|
| 51 | * |
|---|
| 52 | */ |
|---|
| 53 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 54 | @XmlType(name = "CT_TabStop") |
|---|
| 55 | public class CTTabStop |
|---|
| 56 | implements Child |
|---|
| 57 | { |
|---|
| 58 | |
|---|
| 59 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true) |
|---|
| 60 | protected STTabJc val; |
|---|
| 61 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 62 | protected STTabTlc leader; |
|---|
| 63 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true) |
|---|
| 64 | protected BigInteger pos; |
|---|
| 65 | @XmlTransient |
|---|
| 66 | private Object parent; |
|---|
| 67 | |
|---|
| 68 | /** |
|---|
| 69 | * Gets the value of the val property. |
|---|
| 70 | * |
|---|
| 71 | * @return |
|---|
| 72 | * possible object is |
|---|
| 73 | * {@link STTabJc } |
|---|
| 74 | * |
|---|
| 75 | */ |
|---|
| 76 | public STTabJc getVal() { |
|---|
| 77 | return val; |
|---|
| 78 | } |
|---|
| 79 | |
|---|
| 80 | /** |
|---|
| 81 | * Sets the value of the val property. |
|---|
| 82 | * |
|---|
| 83 | * @param value |
|---|
| 84 | * allowed object is |
|---|
| 85 | * {@link STTabJc } |
|---|
| 86 | * |
|---|
| 87 | */ |
|---|
| 88 | public void setVal(STTabJc value) { |
|---|
| 89 | this.val = value; |
|---|
| 90 | } |
|---|
| 91 | |
|---|
| 92 | /** |
|---|
| 93 | * Gets the value of the leader property. |
|---|
| 94 | * |
|---|
| 95 | * @return |
|---|
| 96 | * possible object is |
|---|
| 97 | * {@link STTabTlc } |
|---|
| 98 | * |
|---|
| 99 | */ |
|---|
| 100 | public STTabTlc getLeader() { |
|---|
| 101 | return leader; |
|---|
| 102 | } |
|---|
| 103 | |
|---|
| 104 | /** |
|---|
| 105 | * Sets the value of the leader property. |
|---|
| 106 | * |
|---|
| 107 | * @param value |
|---|
| 108 | * allowed object is |
|---|
| 109 | * {@link STTabTlc } |
|---|
| 110 | * |
|---|
| 111 | */ |
|---|
| 112 | public void setLeader(STTabTlc value) { |
|---|
| 113 | this.leader = value; |
|---|
| 114 | } |
|---|
| 115 | |
|---|
| 116 | /** |
|---|
| 117 | * Gets the value of the pos property. |
|---|
| 118 | * |
|---|
| 119 | * @return |
|---|
| 120 | * possible object is |
|---|
| 121 | * {@link BigInteger } |
|---|
| 122 | * |
|---|
| 123 | */ |
|---|
| 124 | public BigInteger getPos() { |
|---|
| 125 | return pos; |
|---|
| 126 | } |
|---|
| 127 | |
|---|
| 128 | /** |
|---|
| 129 | * Sets the value of the pos property. |
|---|
| 130 | * |
|---|
| 131 | * @param value |
|---|
| 132 | * allowed object is |
|---|
| 133 | * {@link BigInteger } |
|---|
| 134 | * |
|---|
| 135 | */ |
|---|
| 136 | public void setPos(BigInteger value) { |
|---|
| 137 | this.pos = value; |
|---|
| 138 | } |
|---|
| 139 | |
|---|
| 140 | /** |
|---|
| 141 | * Gets the parent object in the object tree representing the unmarshalled xml document. |
|---|
| 142 | * |
|---|
| 143 | * @return |
|---|
| 144 | * The parent object. |
|---|
| 145 | */ |
|---|
| 146 | public Object getParent() { |
|---|
| 147 | return this.parent; |
|---|
| 148 | } |
|---|
| 149 | |
|---|
| 150 | public void setParent(Object parent) { |
|---|
| 151 | this.parent = parent; |
|---|
| 152 | } |
|---|
| 153 | |
|---|
| 154 | /** |
|---|
| 155 | * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. |
|---|
| 156 | * |
|---|
| 157 | * @param parent |
|---|
| 158 | * The parent object in the object tree. |
|---|
| 159 | * @param unmarshaller |
|---|
| 160 | * The unmarshaller that generated the instance. |
|---|
| 161 | */ |
|---|
| 162 | public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { |
|---|
| 163 | setParent(parent); |
|---|
| 164 | } |
|---|
| 165 | |
|---|
| 166 | } |
|---|