source: trunk/docx4j/src/main/java/org/docx4j/wml/RangePermissionStart.java @ 1392

Revision 1392, 5.6 KB checked in by jharrop, 16 months ago (diff)

@XmlRootElement?(name = "permStart")

Line 
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
22package org.docx4j.wml;
23
24import java.math.BigInteger;
25import javax.xml.bind.Unmarshaller;
26import javax.xml.bind.annotation.XmlAccessType;
27import javax.xml.bind.annotation.XmlAccessorType;
28import javax.xml.bind.annotation.XmlAttribute;
29import javax.xml.bind.annotation.XmlRootElement;
30import javax.xml.bind.annotation.XmlTransient;
31import javax.xml.bind.annotation.XmlType;
32import org.jvnet.jaxb2_commons.ppp.Child;
33
34
35/**
36 * <p>Java class for CT_PermStart complex type.
37 *
38 * <p>The following schema fragment specifies the expected content contained within this class.
39 *
40 * <pre>
41 * &lt;complexType name="CT_PermStart">
42 *   &lt;complexContent>
43 *     &lt;extension base="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Perm">
44 *       &lt;attribute name="edGrp">
45 *         &lt;simpleType>
46 *           &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
47 *             &lt;enumeration value="none"/>
48 *             &lt;enumeration value="everyone"/>
49 *             &lt;enumeration value="administrators"/>
50 *             &lt;enumeration value="contributors"/>
51 *             &lt;enumeration value="editors"/>
52 *             &lt;enumeration value="owners"/>
53 *             &lt;enumeration value="current"/>
54 *           &lt;/restriction>
55 *         &lt;/simpleType>
56 *       &lt;/attribute>
57 *       &lt;attribute name="ed" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_String" />
58 *       &lt;attribute name="colFirst" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DecimalNumber" />
59 *       &lt;attribute name="colLast" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DecimalNumber" />
60 *     &lt;/extension>
61 *   &lt;/complexContent>
62 * &lt;/complexType>
63 * </pre>
64 *
65 *
66 */
67@XmlAccessorType(XmlAccessType.FIELD)
68@XmlType(name = "CT_PermStart")
69@XmlRootElement(name = "permStart")
70public class RangePermissionStart
71    extends CTPerm
72    implements Child
73{
74
75    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
76    protected String edGrp;
77    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
78    protected String ed;
79    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
80    protected BigInteger colFirst;
81    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
82    protected BigInteger colLast;
83    @XmlTransient
84    private Object parent;
85
86    /**
87     * Gets the value of the edGrp property.
88     *
89     * @return
90     *     possible object is
91     *     {@link String }
92     *     
93     */
94    public String getEdGrp() {
95        return edGrp;
96    }
97
98    /**
99     * Sets the value of the edGrp property.
100     *
101     * @param value
102     *     allowed object is
103     *     {@link String }
104     *     
105     */
106    public void setEdGrp(String value) {
107        this.edGrp = value;
108    }
109
110    /**
111     * Gets the value of the ed property.
112     *
113     * @return
114     *     possible object is
115     *     {@link String }
116     *     
117     */
118    public String getEd() {
119        return ed;
120    }
121
122    /**
123     * Sets the value of the ed property.
124     *
125     * @param value
126     *     allowed object is
127     *     {@link String }
128     *     
129     */
130    public void setEd(String value) {
131        this.ed = value;
132    }
133
134    /**
135     * Gets the value of the colFirst property.
136     *
137     * @return
138     *     possible object is
139     *     {@link BigInteger }
140     *     
141     */
142    public BigInteger getColFirst() {
143        return colFirst;
144    }
145
146    /**
147     * Sets the value of the colFirst property.
148     *
149     * @param value
150     *     allowed object is
151     *     {@link BigInteger }
152     *     
153     */
154    public void setColFirst(BigInteger value) {
155        this.colFirst = value;
156    }
157
158    /**
159     * Gets the value of the colLast property.
160     *
161     * @return
162     *     possible object is
163     *     {@link BigInteger }
164     *     
165     */
166    public BigInteger getColLast() {
167        return colLast;
168    }
169
170    /**
171     * Sets the value of the colLast property.
172     *
173     * @param value
174     *     allowed object is
175     *     {@link BigInteger }
176     *     
177     */
178    public void setColLast(BigInteger value) {
179        this.colLast = value;
180    }
181
182    /**
183     * Gets the parent object in the object tree representing the unmarshalled xml document.
184     *
185     * @return
186     *     The parent object.
187     */
188    public Object getParent() {
189        return this.parent;
190    }
191
192    public void setParent(Object parent) {
193        this.parent = parent;
194    }
195
196    /**
197     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
198     *
199     * @param parent
200     *     The parent object in the object tree.
201     * @param unmarshaller
202     *     The unmarshaller that generated the instance.
203     */
204    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
205        setParent(parent);
206    }
207
208}
Note: See TracBrowser for help on using the repository browser.