Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.docx4j.sharedtypes;
 

Java class for ST_OnOff.

The following schema fragment specifies the expected content contained within this class.

 <simpleType name="ST_OnOff">
   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
     <enumeration value="true"/>
     <enumeration value="false"/>
     <enumeration value="on"/>
     <enumeration value="off"/>
     <enumeration value="0"/>
     <enumeration value="1"/>
   </restriction>
 </simpleType>
 

Since:
3.0.0
@XmlType(name = "ST_OnOff", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes")
public enum STOnOff {


    
True
    @XmlEnumValue("true")
    TRUE("true"),

    
False
    @XmlEnumValue("false")
    FALSE("false"),

    
True
    @XmlEnumValue("on")
    ON("on"),

    
False
    @XmlEnumValue("off")
    OFF("off"),

    
False
    @XmlEnumValue("0")
    ZERO("0"),

    
True
    @XmlEnumValue("1")
    ONE("1");
    private final String value;
    STOnOff(String v) {
         = v;
    }
    public String value() {
        return ;
    }
    public static STOnOff fromValue(String v) {
        for (STOnOff c: STOnOff.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }
New to GrepCode? Check out our FAQ X