biweekly
Class ICalDataType

java.lang.Object
  extended by biweekly.ICalDataType

public class ICalDataType
extends Object

Defines the data type of a property's value.

Author:
Michael Angstadt
Specification Reference:
RFC 5545 p.29-50

Field Summary
static ICalDataType BINARY
           
static ICalDataType BOOLEAN
           
static ICalDataType CAL_ADDRESS
           
static ICalDataType DATE
           
static ICalDataType DATE_TIME
           
static ICalDataType DURATION
           
static ICalDataType FLOAT
           
static ICalDataType INTEGER
           
static ICalDataType PERIOD
           
static ICalDataType RECUR
           
static ICalDataType TEXT
           
static ICalDataType TIME
           
static ICalDataType URI
           
static ICalDataType UTC_OFFSET
           
 
Method Summary
static Collection<ICalDataType> all()
          Gets all of the parameter values that are defined as static constants in this class.
static ICalDataType find(String value)
          Searches for a parameter value that is defined as a static constant in this class.
static ICalDataType get(String value)
          Searches for a parameter value and creates one if it cannot be found.
 String getName()
          Gets the name of the data type.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BINARY

public static final ICalDataType BINARY

BOOLEAN

public static final ICalDataType BOOLEAN

CAL_ADDRESS

public static final ICalDataType CAL_ADDRESS

DATE

public static final ICalDataType DATE

DATE_TIME

public static final ICalDataType DATE_TIME

DURATION

public static final ICalDataType DURATION

FLOAT

public static final ICalDataType FLOAT

INTEGER

public static final ICalDataType INTEGER

PERIOD

public static final ICalDataType PERIOD

RECUR

public static final ICalDataType RECUR

TEXT

public static final ICalDataType TEXT

TIME

public static final ICalDataType TIME

URI

public static final ICalDataType URI

UTC_OFFSET

public static final ICalDataType UTC_OFFSET
Method Detail

getName

public String getName()
Gets the name of the data type.

Returns:
the name of the data type (e.g. "text")

toString

public String toString()
Overrides:
toString in class Object

find

public static ICalDataType 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 ICalDataType 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<ICalDataType> 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.