biweekly.property
Class CalendarScale

java.lang.Object
  extended by biweekly.property.ICalProperty
      extended by biweekly.property.ValuedProperty<String>
          extended by biweekly.property.TextProperty
              extended by biweekly.property.EnumProperty
                  extended by 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

Field Summary
 
Fields inherited from class biweekly.property.ValuedProperty
value
 
Fields inherited from class biweekly.property.ICalProperty
parameters
 
Constructor Summary
CalendarScale(String value)
          Creates a new calendar scale property.
 
Method Summary
protected  Collection<String> getStandardValues()
          Gets the list of acceptable values for this property.
static CalendarScale gregorian()
          Creates a new property whose value is set to "gregorian".
 boolean isGregorian()
          Determines whether the property is set to "gregorian".
 
Methods inherited from class biweekly.property.EnumProperty
is, validate
 
Methods inherited from class biweekly.property.ValuedProperty
getValue, setValue
 
Methods inherited from class biweekly.property.ICalProperty
addParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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")
Method Detail

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.