biweekly.parameter
Class CalendarUserType

java.lang.Object
  extended by biweekly.parameter.EnumParameterValue
      extended by biweekly.parameter.CalendarUserType

public class CalendarUserType
extends EnumParameterValue

Defines the type of user an entity is.

Author:
Michael Angstadt
Specification Reference:
RFC 5545 p.16

Field Summary
static CalendarUserType GROUP
           
static CalendarUserType INDIVIDUAL
           
static CalendarUserType RESOURCE
           
static CalendarUserType ROOM
           
static CalendarUserType UNKNOWN
           
 
Fields inherited from class biweekly.parameter.EnumParameterValue
value
 
Method Summary
static Collection<CalendarUserType> all()
          Gets all of the parameter values that are defined as static constants in this class.
static CalendarUserType find(String value)
          Searches for a parameter value that is defined as a static constant in this class.
static CalendarUserType get(String value)
          Searches for a parameter value and creates one if it cannot be found.
 
Methods inherited from class biweekly.parameter.EnumParameterValue
getValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INDIVIDUAL

public static final CalendarUserType INDIVIDUAL

GROUP

public static final CalendarUserType GROUP

RESOURCE

public static final CalendarUserType RESOURCE

ROOM

public static final CalendarUserType ROOM

UNKNOWN

public static final CalendarUserType UNKNOWN
Method Detail

find

public static CalendarUserType find(String value)
Searches for a parameter value that is defined as a static constant in this class.

Parameters:
value - the parameter value
Returns:
the object or null if not found

get

public static CalendarUserType get(String value)
Searches for a parameter value and creates one if it cannot be found. All objects are guaranteed to be unique, so they can be compared with == equality.

Parameters:
value - the parameter value
Returns:
the object

all

public static Collection<CalendarUserType> all()
Gets all of the parameter values that are defined as static constants in this class.

Returns:
the parameter values


Copyright © 2013 Michael Angstadt. All Rights Reserved.