source: trunk/docx4j/src/main/java/org/docx4j/dml/CTBevel.java @ 1041

Revision 1041, 3.4 KB checked in by jharrop, 2 years ago (diff)

More complete DML, generated from TC45 1.0 final, using dmlROOT.xsd

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.dml;
23
24import javax.xml.bind.annotation.XmlAccessType;
25import javax.xml.bind.annotation.XmlAccessorType;
26import javax.xml.bind.annotation.XmlAttribute;
27import javax.xml.bind.annotation.XmlType;
28
29
30/**
31 * <p>Java class for CT_Bevel complex type.
32 *
33 * <p>The following schema fragment specifies the expected content contained within this class.
34 *
35 * <pre>
36 * &lt;complexType name="CT_Bevel">
37 *   &lt;complexContent>
38 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
39 *       &lt;attribute name="w" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_PositiveCoordinate" default="76200" />
40 *       &lt;attribute name="h" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_PositiveCoordinate" default="76200" />
41 *       &lt;attribute name="prst" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_BevelPresetType" default="circle" />
42 *     &lt;/restriction>
43 *   &lt;/complexContent>
44 * &lt;/complexType>
45 * </pre>
46 *
47 *
48 */
49@XmlAccessorType(XmlAccessType.FIELD)
50@XmlType(name = "CT_Bevel")
51public class CTBevel {
52
53    @XmlAttribute
54    protected Long w;
55    @XmlAttribute
56    protected Long h;
57    @XmlAttribute
58    protected STBevelPresetType prst;
59
60    /**
61     * Gets the value of the w property.
62     *
63     * @return
64     *     possible object is
65     *     {@link Long }
66     *     
67     */
68    public long getW() {
69        if (w == null) {
70            return  76200L;
71        } else {
72            return w;
73        }
74    }
75
76    /**
77     * Sets the value of the w property.
78     *
79     * @param value
80     *     allowed object is
81     *     {@link Long }
82     *     
83     */
84    public void setW(Long value) {
85        this.w = value;
86    }
87
88    /**
89     * Gets the value of the h property.
90     *
91     * @return
92     *     possible object is
93     *     {@link Long }
94     *     
95     */
96    public long getH() {
97        if (h == null) {
98            return  76200L;
99        } else {
100            return h;
101        }
102    }
103
104    /**
105     * Sets the value of the h property.
106     *
107     * @param value
108     *     allowed object is
109     *     {@link Long }
110     *     
111     */
112    public void setH(Long value) {
113        this.h = value;
114    }
115
116    /**
117     * Gets the value of the prst property.
118     *
119     * @return
120     *     possible object is
121     *     {@link STBevelPresetType }
122     *     
123     */
124    public STBevelPresetType getPrst() {
125        if (prst == null) {
126            return STBevelPresetType.CIRCLE;
127        } else {
128            return prst;
129        }
130    }
131
132    /**
133     * Sets the value of the prst property.
134     *
135     * @param value
136     *     allowed object is
137     *     {@link STBevelPresetType }
138     *     
139     */
140    public void setPrst(STBevelPresetType value) {
141        this.prst = value;
142    }
143
144}
Note: See TracBrowser for help on using the repository browser.