Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.docx4j.sharedtypes;
  

Java class for ST_CalendarType.

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

 <simpleType name="ST_CalendarType">
   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
     <enumeration value="gregorian"/>
     <enumeration value="gregorianUs"/>
     <enumeration value="gregorianMeFrench"/>
     <enumeration value="gregorianArabic"/>
     <enumeration value="hijri"/>
     <enumeration value="hebrew"/>
     <enumeration value="taiwan"/>
     <enumeration value="japan"/>
     <enumeration value="thai"/>
     <enumeration value="korea"/>
     <enumeration value="saka"/>
     <enumeration value="gregorianXlitEnglish"/>
     <enumeration value="gregorianXlitFrench"/>
     <enumeration value="none"/>
   </restriction>
 </simpleType>
 
 
 @XmlType(name = "ST_CalendarType", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes")
 public enum STCalendarType {


    
Gregorian
 
     @XmlEnumValue("gregorian")
     GREGORIAN("gregorian"),

    
Gregorian English Calendar
 
     @XmlEnumValue("gregorianUs")
     GREGORIAN_US("gregorianUs"),

    
Gregorian Middle East French Calendar
 
     @XmlEnumValue("gregorianMeFrench")
     GREGORIAN_ME_FRENCH("gregorianMeFrench"),

    
Gregorian Arabic Calendar
 
     @XmlEnumValue("gregorianArabic")
     GREGORIAN_ARABIC("gregorianArabic"),

    
Hijri
 
     @XmlEnumValue("hijri")
     HIJRI("hijri"),

    
Hebrew
 
     @XmlEnumValue("hebrew")
     HEBREW("hebrew"),

    
Taiwan
 
     @XmlEnumValue("taiwan")
     TAIWAN("taiwan"),

    
Japanese Emperor Era
 
     @XmlEnumValue("japan")
     JAPAN("japan"),

    
Thai
    @XmlEnumValue("thai")
    THAI("thai"),

    
Korean Tangun Era
    @XmlEnumValue("korea")
    KOREA("korea"),

    
Saka Era
    @XmlEnumValue("saka")
    SAKA("saka"),

    
Gregorian Transliterated English
    @XmlEnumValue("gregorianXlitEnglish")
    GREGORIAN_XLIT_ENGLISH("gregorianXlitEnglish"),

    
Gregorian Transliterated French
    @XmlEnumValue("gregorianXlitFrench")
    GREGORIAN_XLIT_FRENCH("gregorianXlitFrench"),

    
No Calendar Type
    @XmlEnumValue("none")
    NONE("none");
    private final String value;
    STCalendarType(String v) {
         = v;
    }
    public String value() {
        return ;
    }
    public static STCalendarType fromValue(String v) {
        for (STCalendarType c: STCalendarType.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }
New to GrepCode? Check out our FAQ X