Class WeekOfYear

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

public class WeekOfYear extends Object
Represents a week of a year in a date.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Initializes a new instance of the WeekOfYear 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.
    void
    setCalendar​(String calendar)
    Sets the calendar system used to extract parts of a date.
    Converts the value of the current WeekOfYear object to its equivalent string representation.

    Methods inherited from class java.lang.Object

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

    • WeekOfYear

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

    • clone

      public WeekOfYear 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 WeekOfYear object to its equivalent string representation.
      Overrides:
      toString in class Object
      Returns:
      the string
    • 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