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

Revision 1041, 2.9 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.XmlEnum;
25import javax.xml.bind.annotation.XmlEnumValue;
26import javax.xml.bind.annotation.XmlType;
27
28
29/**
30 * <p>Java class for ST_RectAlignment.
31 *
32 * <p>The following schema fragment specifies the expected content contained within this class.
33 * <p>
34 * <pre>
35 * &lt;simpleType name="ST_RectAlignment">
36 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}token">
37 *     &lt;enumeration value="tl"/>
38 *     &lt;enumeration value="t"/>
39 *     &lt;enumeration value="tr"/>
40 *     &lt;enumeration value="l"/>
41 *     &lt;enumeration value="ctr"/>
42 *     &lt;enumeration value="r"/>
43 *     &lt;enumeration value="bl"/>
44 *     &lt;enumeration value="b"/>
45 *     &lt;enumeration value="br"/>
46 *   &lt;/restriction>
47 * &lt;/simpleType>
48 * </pre>
49 *
50 */
51@XmlType(name = "ST_RectAlignment")
52@XmlEnum
53public enum STRectAlignment {
54
55
56    /**
57     * Rectangle Alignment Enum ( Top Left )
58     *
59     */
60    @XmlEnumValue("tl")
61    TL("tl"),
62
63    /**
64     * Rectangle Alignment Enum ( Top )
65     *
66     */
67    @XmlEnumValue("t")
68    T("t"),
69
70    /**
71     * Rectangle Alignment Enum ( Top Right )
72     *
73     */
74    @XmlEnumValue("tr")
75    TR("tr"),
76
77    /**
78     * Rectangle Alignment Enum ( Left )
79     *
80     */
81    @XmlEnumValue("l")
82    L("l"),
83
84    /**
85     * Rectangle Alignment Enum ( Center )
86     *
87     */
88    @XmlEnumValue("ctr")
89    CTR("ctr"),
90
91    /**
92     * Rectangle Alignment Enum ( Right )
93     *
94     */
95    @XmlEnumValue("r")
96    R("r"),
97
98    /**
99     * Rectangle Alignment Enum ( Bottom Left )
100     *
101     */
102    @XmlEnumValue("bl")
103    BL("bl"),
104
105    /**
106     * Rectangle Alignment Enum ( Bottom )
107     *
108     */
109    @XmlEnumValue("b")
110    B("b"),
111
112    /**
113     * Rectangle Alignment Enum ( Bottom Right )
114     *
115     */
116    @XmlEnumValue("br")
117    BR("br");
118    private final String value;
119
120    STRectAlignment(String v) {
121        value = v;
122    }
123
124    public String value() {
125        return value;
126    }
127
128    public static STRectAlignment fromValue(String v) {
129        for (STRectAlignment c: STRectAlignment.values()) {
130            if (c.value.equals(v)) {
131                return c;
132            }
133        }
134        throw new IllegalArgumentException(v);
135    }
136
137}
Note: See TracBrowser for help on using the repository browser.