source: trunk/docx4j/src/main/java/org/docx4j/wml/STChapterSep.java @ 359

Revision 359, 2.4 KB checked in by jharrop, 4 years ago (diff)

Change CT_FldChar to FldChar?;
Style is freestanding, rather than an inner class of Styles.
(Other changes largely whitespace in license header)

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 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_ChapterSep.
31 *
32 * <p>The following schema fragment specifies the expected content contained within this class.
33 * <p>
34 * <pre>
35 * &lt;simpleType name="ST_ChapterSep">
36 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
37 *     &lt;enumeration value="hyphen"/>
38 *     &lt;enumeration value="period"/>
39 *     &lt;enumeration value="colon"/>
40 *     &lt;enumeration value="emDash"/>
41 *     &lt;enumeration value="enDash"/>
42 *   &lt;/restriction>
43 * &lt;/simpleType>
44 * </pre>
45 *
46 */
47@XmlType(name = "ST_ChapterSep")
48@XmlEnum
49public enum STChapterSep {
50
51
52    /**
53     * Hyphen Chapter
54     *                                          Separator
55     *
56     */
57    @XmlEnumValue("hyphen")
58    HYPHEN("hyphen"),
59
60    /**
61     * Period Chapter
62     *                                          Separator
63     *
64     */
65    @XmlEnumValue("period")
66    PERIOD("period"),
67
68    /**
69     * Colon Chapter Separator
70     *
71     */
72    @XmlEnumValue("colon")
73    COLON("colon"),
74
75    /**
76     * Em Dash Chapter
77     *                                          Separator
78     *
79     */
80    @XmlEnumValue("emDash")
81    EM_DASH("emDash"),
82
83    /**
84     * En Dash Chapter
85     *                                          Separator
86     *
87     */
88    @XmlEnumValue("enDash")
89    EN_DASH("enDash");
90    private final String value;
91
92    STChapterSep(String v) {
93        value = v;
94    }
95
96    public String value() {
97        return value;
98    }
99
100    public static STChapterSep fromValue(String v) {
101        for (STChapterSep c: STChapterSep.values()) {
102            if (c.value.equals(v)) {
103                return c;
104            }
105        }
106        throw new IllegalArgumentException(v);
107    }
108
109}
Note: See TracBrowser for help on using the repository browser.