biweekly.property
Class CalendarScale
java.lang.Object
biweekly.property.ICalProperty
biweekly.property.ValuedProperty<String>
biweekly.property.TextProperty
biweekly.property.EnumProperty
biweekly.property.CalendarScale
public class CalendarScale
- extends EnumProperty
Specifies the calendar system that this iCalendar object uses. If none is
specified, then the calendar is assumed to be in "gregorian" format.
Examples:
//creating a new property
CalendarScale calscale = CalendarScale.gregorian();
if (calscale.isGregorian()) {
//its value is "GREGORIAN"
}
- Author:
- Michael Angstadt
- Specification Reference:
- RFC 5545 p.76-7
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CalendarScale
public CalendarScale(String value)
- Creates a new calendar scale property. Use of this constructor is
discouraged and may put the property in an invalid state. Use one of the
static factory methods instead.
- Parameters:
value
- the value of the property (e.g. "gregorian")
gregorian
public static CalendarScale gregorian()
- Creates a new property whose value is set to "gregorian".
- Returns:
- the new property
isGregorian
public boolean isGregorian()
- Determines whether the property is set to "gregorian".
- Returns:
- true if it's set to "gregorian", false if not
getStandardValues
protected Collection<String> getStandardValues()
- Description copied from class:
EnumProperty
- Gets the list of acceptable values for this property.
- Specified by:
getStandardValues
in class EnumProperty
- Returns:
- the list of acceptable values
Copyright © 2013 Michael Angstadt. All Rights Reserved.