biweekly.parameter
Class Role
java.lang.Object
biweekly.parameter.EnumParameterValue
biweekly.parameter.Role
public class Role
- extends EnumParameterValue
Defines the role that a calendar user holds.
- Author:
- Michael Angstadt
- Specification Reference:
- RFC 5545 p.25-6
Method Summary |
static Collection<Role> |
all()
Gets all of the parameter values that are defined as static constants in
this class. |
static Role |
find(String value)
Searches for a parameter value that is defined as a static constant in
this class. |
static Role |
get(String value)
Searches for a parameter value and creates one if it cannot be found. |
CHAIR
public static final Role CHAIR
REQ_PARTICIPANT
public static final Role REQ_PARTICIPANT
OPT_PARTICIPANT
public static final Role OPT_PARTICIPANT
NON_PARTICIPANT
public static final Role NON_PARTICIPANT
find
public static Role 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 Role 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<Role> 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.