java.lang.Object
com.independentsoft.office.odf.styles.Month

public class Month extends Object
Represents a month in a date.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Initializes a new instance of the Month class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a new object that is a deep copy of the current instance.
    Gets the calendar system used to extract parts of a date.
    Gets the display format.
    boolean
    Specifies whether the month is displayed as a noun or using the possessive form.
    boolean
    Specifies whether the name or number of a month is displayed in the month element of a date.
    void
    setCalendar​(String calendar)
    Sets the calendar system used to extract parts of a date.
    void
    Sets the display format.
    void
    setPossessiveForm​(boolean isPossessiveForm)
    Specifies whether the month is displayed as a noun or using the possessive form.
    void
    setTextual​(boolean isTextual)
    Specifies whether the name or number of a month is displayed in the month element of a date.
    Converts the value of the current Month object to its equivalent string representation.

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Month

      public Month()
      Initializes a new instance of the Month class.
  • Method Details

    • clone

      public Month clone()
      Creates a new object that is a deep copy of the current instance.
      Overrides:
      clone in class Object
      Returns:
      A new object that is a copy of this instance.
    • toString

      public String toString()
      Converts the value of the current Month object to its equivalent string representation.
      Overrides:
      toString in class Object
      Returns:
      the string
    • getDisplayFormat

      public DisplayFormat getDisplayFormat()
      Gets the display format.
      Returns:
      the display format
    • setDisplayFormat

      public void setDisplayFormat(DisplayFormat format)
      Sets the display format.
      Parameters:
      format - the new display format
    • getCalendar

      public String getCalendar()
      Gets the calendar system used to extract parts of a date.
      Returns:
      the calendar
    • setCalendar

      public void setCalendar(String calendar)
      Sets the calendar system used to extract parts of a date.
      Parameters:
      calendar - the new calendar
    • isTextual

      public boolean isTextual()
      Specifies whether the name or number of a month is displayed in the month element of a date.
      Returns:
      true, if is textual
    • setTextual

      public void setTextual(boolean isTextual)
      Specifies whether the name or number of a month is displayed in the month element of a date.
      Parameters:
      isTextual - the new textual
    • isPossessiveForm

      public boolean isPossessiveForm()
      Specifies whether the month is displayed as a noun or using the possessive form.
      Returns:
      true, if is possessive form
    • setPossessiveForm

      public void setPossessiveForm(boolean isPossessiveForm)
      Specifies whether the month is displayed as a noun or using the possessive form.
      Parameters:
      isPossessiveForm - the new possessive form