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

Revision 1041, 2.6 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_TextAlignType.
31 *
32 * <p>The following schema fragment specifies the expected content contained within this class.
33 * <p>
34 * <pre>
35 * &lt;simpleType name="ST_TextAlignType">
36 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}token">
37 *     &lt;enumeration value="l"/>
38 *     &lt;enumeration value="ctr"/>
39 *     &lt;enumeration value="r"/>
40 *     &lt;enumeration value="just"/>
41 *     &lt;enumeration value="justLow"/>
42 *     &lt;enumeration value="dist"/>
43 *     &lt;enumeration value="thaiDist"/>
44 *   &lt;/restriction>
45 * &lt;/simpleType>
46 * </pre>
47 *
48 */
49@XmlType(name = "ST_TextAlignType")
50@XmlEnum
51public enum STTextAlignType {
52
53
54    /**
55     * Text Alignment Enum ( Left )
56     *
57     */
58    @XmlEnumValue("l")
59    L("l"),
60
61    /**
62     * Text Alignment Enum ( Center )
63     *
64     */
65    @XmlEnumValue("ctr")
66    CTR("ctr"),
67
68    /**
69     * Text Alignment Enum ( Right )
70     *
71     */
72    @XmlEnumValue("r")
73    R("r"),
74
75    /**
76     * Text Alignment Enum ( Justified )
77     *
78     */
79    @XmlEnumValue("just")
80    JUST("just"),
81
82    /**
83     * Text Alignment Enum ( Justified Low )
84     *
85     */
86    @XmlEnumValue("justLow")
87    JUST_LOW("justLow"),
88
89    /**
90     * Text Alignment Enum ( Distributed )
91     *
92     */
93    @XmlEnumValue("dist")
94    DIST("dist"),
95
96    /**
97     * Text Alignment Enum ( Thai Distributed )
98     *
99     */
100    @XmlEnumValue("thaiDist")
101    THAI_DIST("thaiDist");
102    private final String value;
103
104    STTextAlignType(String v) {
105        value = v;
106    }
107
108    public String value() {
109        return value;
110    }
111
112    public static STTextAlignType fromValue(String v) {
113        for (STTextAlignType c: STTextAlignType.values()) {
114            if (c.value.equals(v)) {
115                return c;
116            }
117        }
118        throw new IllegalArgumentException(v);
119    }
120
121}
Note: See TracBrowser for help on using the repository browser.