biweekly.parameter
Class Value

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

public class Value
extends EnumParameterValue

Defines the data type of a property's value.

Author:
Michael Angstadt
See Also:
RFC 5545 p.29-50

Field Summary
static Value BINARY
           
static Value BOOLEAN
           
static Value CAL_ADDRESS
           
static Value DATE
           
static Value DATE_TIME
           
static Value DURATION
           
static Value FLOAT
           
static Value INTEGER
           
static Value PERIOD
           
static Value RECUR
           
static Value TEXT
           
static Value TIME
           
static Value URI
           
static Value UTC_OFFSET
           
 
Fields inherited from class biweekly.parameter.EnumParameterValue
value
 
Method Summary
static Value find(String value)
          Searches for a parameter value that is defined as a static constant in this class.
static Value get(String value)
          Searches for a parameter value and creates one if it cannot be found.
 
Methods inherited from class biweekly.parameter.EnumParameterValue
equals, getValue, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BINARY

public static final Value BINARY

BOOLEAN

public static final Value BOOLEAN

CAL_ADDRESS

public static final Value CAL_ADDRESS

DATE

public static final Value DATE

DATE_TIME

public static final Value DATE_TIME

DURATION

public static final Value DURATION

FLOAT

public static final Value FLOAT

INTEGER

public static final Value INTEGER

PERIOD

public static final Value PERIOD

RECUR

public static final Value RECUR

TEXT

public static final Value TEXT

TIME

public static final Value TIME

URI

public static final Value URI

UTC_OFFSET

public static final Value UTC_OFFSET
Method Detail

find

public static Value 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 Value 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


Copyright © 2013 Michael Angstadt. All Rights Reserved.