source: trunk/docx4j/src/main/java/org/docx4j/vml/STStrokeArrowType.java @ 1461

Revision 1461, 2.4 KB checked in by jharrop, 14 months ago (diff)

VML generated classes, based on ECMA 376 1ed (rather than earlier draft).
Includes @XmlType? namespace annotations from revs 940 and 1129.

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.vml;
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_StrokeArrowType.
31 *
32 * <p>The following schema fragment specifies the expected content contained within this class.
33 * <p>
34 * <pre>
35 * &lt;simpleType name="ST_StrokeArrowType">
36 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
37 *     &lt;enumeration value="none"/>
38 *     &lt;enumeration value="block"/>
39 *     &lt;enumeration value="classic"/>
40 *     &lt;enumeration value="oval"/>
41 *     &lt;enumeration value="diamond"/>
42 *     &lt;enumeration value="open"/>
43 *   &lt;/restriction>
44 * &lt;/simpleType>
45 * </pre>
46 *
47 */
48@XmlType(name = "ST_StrokeArrowType")
49@XmlEnum
50public enum STStrokeArrowType {
51
52
53    /**
54     * No Arrowhead
55     *
56     */
57    @XmlEnumValue("none")
58    NONE("none"),
59
60    /**
61     * Block Arrowhead
62     *
63     */
64    @XmlEnumValue("block")
65    BLOCK("block"),
66
67    /**
68     * Classic Arrowhead
69     *
70     */
71    @XmlEnumValue("classic")
72    CLASSIC("classic"),
73
74    /**
75     * Oval Arrowhead
76     *
77     */
78    @XmlEnumValue("oval")
79    OVAL("oval"),
80
81    /**
82     * Diamond Arrowhead
83     *
84     */
85    @XmlEnumValue("diamond")
86    DIAMOND("diamond"),
87
88    /**
89     * Open Arrowhead
90     *
91     */
92    @XmlEnumValue("open")
93    OPEN("open");
94    private final String value;
95
96    STStrokeArrowType(String v) {
97        value = v;
98    }
99
100    public String value() {
101        return value;
102    }
103
104    public static STStrokeArrowType fromValue(String v) {
105        for (STStrokeArrowType c: STStrokeArrowType.values()) {
106            if (c.value.equals(v)) {
107                return c;
108            }
109        }
110        throw new IllegalArgumentException(v);
111    }
112
113}
Note: See TracBrowser for help on using the repository browser.