biweekly.property
Class Action

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.Action

public class Action
extends EnumProperty

Defines the type of action to invoke when an alarm is triggered.

Examples:

 //creating a new property
 Action action = Action.audio();
 
 if (action.isAudio()) {
        //it's an "AUDIO" alarm
 }
 

Author:
Michael Angstadt
Specification Reference:
RFC 5545 p.132-3

Field Summary
 
Fields inherited from class biweekly.property.ValuedProperty
value
 
Fields inherited from class biweekly.property.ICalProperty
parameters
 
Constructor Summary
Action(String value)
          Creates an action property.
 
Method Summary
static Action audio()
          Creates an "audio" action property.
static Action display()
          Creates an "display" action property.
static Action email()
          Creates an "email" action property.
protected  Collection<String> getStandardValues()
          Gets the list of acceptable values for this property.
 boolean isAudio()
          Determines if this property is an "audio" action.
 boolean isDisplay()
          Determines if this property is an "display" action.
 boolean isEmail()
          Determines if this property is an "email" action.
 
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

Action

public Action(String value)
Creates an action 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 (e.g. "AUDIO")
Method Detail

audio

public static Action audio()
Creates an "audio" action property.

Returns:
the property

isAudio

public boolean isAudio()
Determines if this property is an "audio" action.

Returns:
true if it's an "audio" action, false if not

display

public static Action display()
Creates an "display" action property.

Returns:
the property

isDisplay

public boolean isDisplay()
Determines if this property is an "display" action.

Returns:
true if it's an "display" action, false if not

email

public static Action email()
Creates an "email" action property.

Returns:
the property

isEmail

public boolean isEmail()
Determines if this property is an "email" action.

Returns:
true if it's an "email" action, 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.