Class Year
java.lang.Object
com.independentsoft.office.odf.styles.Year
Represents a year in a date.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()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.voidsetCalendar(String calendar)Sets the calendar system used to extract parts of a date.voidsetDisplayFormat(DisplayFormat format)Sets the display format.toString()Converts the value of the current Year object to its equivalent string representation.
-
Constructor Details
-
Year
public Year()Initializes a new instance of the Year class.
-
-
Method Details
-
clone
Creates a new object that is a deep copy of the current instance. -
toString
Converts the value of the current Year object to its equivalent string representation. -
getDisplayFormat
Gets the display format.- Returns:
- the display format
-
setDisplayFormat
Sets the display format.- Parameters:
format- the new display format
-
getCalendar
Gets the calendar system used to extract parts of a date.- Returns:
- the calendar
-
setCalendar
Sets the calendar system used to extract parts of a date.- Parameters:
calendar- the new calendar
-