STStyleSimulations.java :  » XML » java-axp » javaaxp » core » service » model » document » page » Java Open Source

Java Open Source » XML » java axp 
java axp » javaaxp » core » service » model » document » page » STStyleSimulations.java
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.3-b01-fcs 
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2006.10.23 at 11:22:55 PM EDT 
//


package javaaxp.core.service.model.document.page;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;


/**
 * <p>Java class for ST_StyleSimulations.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * <p>
 * <pre>
 * &lt;simpleType name="ST_StyleSimulations">
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *     &lt;enumeration value="None"/>
 *     &lt;enumeration value="ItalicSimulation"/>
 *     &lt;enumeration value="BoldSimulation"/>
 *     &lt;enumeration value="BoldItalicSimulation"/>
 *   &lt;/restriction>
 * &lt;/simpleType>
 * </pre>
 * 
 */
@XmlEnum
public enum STStyleSimulations {

    @XmlEnumValue("None")
    NONE("None"),
    @XmlEnumValue("ItalicSimulation")
    ITALIC_SIMULATION("ItalicSimulation"),
    @XmlEnumValue("BoldSimulation")
    BOLD_SIMULATION("BoldSimulation"),
    @XmlEnumValue("BoldItalicSimulation")
    BOLD_ITALIC_SIMULATION("BoldItalicSimulation");
    private final String value;

    STStyleSimulations(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static STStyleSimulations fromValue(String v) {
        for (STStyleSimulations c: STStyleSimulations.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v.toString());
    }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.