SdtCalendarType

Inheritance: java.lang.Object

public class SdtCalendarType

Specifies the possible types of calendars which can be used to specify StructuredDocumentTag.getCalendarType() / StructuredDocumentTag.setCalendarType(int) in an Office Open XML document.

Fields

FieldDescription
DEFAULTUsed as default value in OOXML.
GREGORIANSpecifies that the Gregorian calendar, as defined in ISO 8601, shall be used.
GREGORIAN_ARABICSpecifies that the Gregorian calendar, as defined in ISO 8601, shall be used.
GREGORIAN_ME_FRENCHSpecifies that the Gregorian calendar, as defined in ISO 8601, shall be used.
GREGORIAN_USSpecifies that the Gregorian calendar, as defined in ISO 8601, shall be used.
GREGORIAN_XLIT_ENGLISHSpecifies that the Gregorian calendar, as defined in ISO 8601, shall be used.
GREGORIAN_XLIT_FRENCHSpecifies that the Gregorian calendar, as defined in ISO 8601, shall be used.
HEBREWSpecifies that the Hebrew lunar calendar, as described by the Gauss formula for Passover [CITATION] and The Complete Restatement of Oral Law (Mishneh Torah),shall be used.
HIJRISpecifies that the Hijri lunar calendar, as described by the Kingdom of Saudi Arabia, Ministry of Islamic Affairs, Endowments, Da\u2018wah and Guidance, shall be used.
JAPANSpecifies that the Japanese Emperor Era calendar, as described by Japanese Industrial Standard JIS X 0301, shall be used.
KOREASpecifies that the Korean Tangun Era calendar, as described by Korean Law Enactment No.
NONESpecifies that no calendar should be used.
SAKASpecifies that the Saka Era calendar, as described by the Calendar Reform Committee of India, as part of the Indian Ephemeris and Nautical Almanac, shall be used.
TAIWANSpecifies that the Taiwanese calendar, as defined by the Chinese National Standard CNS 7648, shall be used.
THAISpecifies that the Thai calendar, as defined by the Royal Decree of H.M.
length

Methods

MethodDescription
fromName(String sdtCalendarTypeName)
getName(int sdtCalendarType)
getValues()
toString(int sdtCalendarType)

DEFAULT

public static int DEFAULT

Used as default value in OOXML. Equals GREGORIAN.

GREGORIAN

public static int GREGORIAN

Specifies that the Gregorian calendar, as defined in ISO 8601, shall be used. This calendar should be localized into the appropriate language.

GREGORIAN_ARABIC

public static int GREGORIAN_ARABIC

Specifies that the Gregorian calendar, as defined in ISO 8601, shall be used. The values for this calendar should be presented in Arabic.

GREGORIAN_ME_FRENCH

public static int GREGORIAN_ME_FRENCH

Specifies that the Gregorian calendar, as defined in ISO 8601, shall be used. The values for this calendar should be presented in Middle East French.

GREGORIAN_US

public static int GREGORIAN_US

Specifies that the Gregorian calendar, as defined in ISO 8601, shall be used. The values for this calendar should be presented in English.

GREGORIAN_XLIT_ENGLISH

public static int GREGORIAN_XLIT_ENGLISH

Specifies that the Gregorian calendar, as defined in ISO 8601, shall be used. The values for this calendar should be the representation of the English strings in the corresponding Arabic characters (the Arabic transliteration of the English for the Gregorian calendar).

GREGORIAN_XLIT_FRENCH

public static int GREGORIAN_XLIT_FRENCH

Specifies that the Gregorian calendar, as defined in ISO 8601, shall be used. The values for this calendar should be the representation of the French strings in the corresponding Arabic characters (the Arabic transliteration of the French for the Gregorian calendar).

HEBREW

public static int HEBREW

Specifies that the Hebrew lunar calendar, as described by the Gauss formula for Passover [CITATION] and The Complete Restatement of Oral Law (Mishneh Torah),shall be used.

HIJRI

public static int HIJRI

Specifies that the Hijri lunar calendar, as described by the Kingdom of Saudi Arabia, Ministry of Islamic Affairs, Endowments, Da\u2018wah and Guidance, shall be used.

JAPAN

public static int JAPAN

Specifies that the Japanese Emperor Era calendar, as described by Japanese Industrial Standard JIS X 0301, shall be used.

KOREA

public static int KOREA

Specifies that the Korean Tangun Era calendar, as described by Korean Law Enactment No. 4, shall be used.

NONE

public static int NONE

Specifies that no calendar should be used.

Remarks:

Usually in AW, None is the first and default value for enums, but not in this case. None is not default for OOXML, instead GREGORIAN is default and is first member of this enum.

SAKA

public static int SAKA

Specifies that the Saka Era calendar, as described by the Calendar Reform Committee of India, as part of the Indian Ephemeris and Nautical Almanac, shall be used.

TAIWAN

public static int TAIWAN

Specifies that the Taiwanese calendar, as defined by the Chinese National Standard CNS 7648, shall be used.

THAI

public static int THAI

Specifies that the Thai calendar, as defined by the Royal Decree of H.M. King Vajiravudh (Rama VI) in Royal Gazette B. E. 2456 (1913 A.D.) and by the decree of Prime Minister Phibunsongkhram (1941 A.D.) to start the year on the Gregorian January 1 and to map year zero to Gregorian year 543 B.C., shall be used.

length

public static int length

fromName(String sdtCalendarTypeName)

public static int fromName(String sdtCalendarTypeName)

Parameters:

ParameterTypeDescription
sdtCalendarTypeNamejava.lang.String

Returns: int

getName(int sdtCalendarType)

public static String getName(int sdtCalendarType)

Parameters:

ParameterTypeDescription
sdtCalendarTypeint

Returns: java.lang.String

getValues()

public static int[] getValues()

Returns: int[]

toString(int sdtCalendarType)

public static String toString(int sdtCalendarType)

Parameters:

ParameterTypeDescription
sdtCalendarTypeint

Returns: java.lang.String