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

public class Action
extends TextProperty

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

Examples:

 Action action = Action.audio();
 
 if (action.isAudio()) {
   ...
 }
 

Author:
Michael Angstadt
See Also:
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.
 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.ValuedProperty
getValue, setValue, validate
 
Methods inherited from class biweekly.property.ICalProperty
addParameter, getAltRepresentation, getCommonName, getDirectoryEntry, getFormatType, getLanguage, getParameter, getParameters, getParameters, getSentBy, getTimezoneId, removeParameter, setAltRepresentation, setCommonName, setDirectoryEntry, setFormatType, setLanguage, setParameter, setParameter, setParameters, setSentBy, setTimezone, setTimezoneId, 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


Copyright © 2013 Michael Angstadt. All Rights Reserved.