Build 1.0_r1(from source)

android.pim
Class ICalendar.Component

java.lang.Object
  extended by android.pim.ICalendar.Component
Enclosing class:
ICalendar

public static class ICalendar.Component
extends Object

A component within an iCalendar (VEVENT, VTODO, VJOURNAL, VFEEBUSY, VTIMEZONE, VALARM).


Field Summary
static String VALARM
           
static String VCALENDAR
           
static String VEVENT
           
static String VFREEBUSY
           
static String VJOURNAL
           
static String VTIMEZONE
           
static String VTODO
           
 
Constructor Summary
ICalendar.Component(String name, ICalendar.Component parent)
          Creates a new component with the provided name.
 
Method Summary
 void addChild(ICalendar.Component child)
          Adds a child component to this component.
 void addProperty(ICalendar.Property prop)
          Adds a Property to this component.
 List<ICalendar.Component> getComponents()
          Returns a list of the Component children of this component.
 ICalendar.Property getFirstProperty(String name)
          Returns the first property with the specified name.
 String getName()
          Returns the name of the component.
protected  LinkedList<ICalendar.Component> getOrCreateChildren()
          Helper that lazily gets/creates the list of children.
 ICalendar.Component getParent()
          Returns the parent of this component.
 List<ICalendar.Property> getProperties(String name)
          Returns a list of properties with the specified name.
 Set<String> getPropertyNames()
          Returns a set of the property names within this component.
 String toString()
          Returns a string containing a concise, human-readable description of the receiver.
 void toString(StringBuilder sb)
          Helper method that appends this component to a StringBuilder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VCALENDAR

public static final String VCALENDAR
See Also:
Constant Field Values

VEVENT

public static final String VEVENT
See Also:
Constant Field Values

VTODO

public static final String VTODO
See Also:
Constant Field Values

VJOURNAL

public static final String VJOURNAL
See Also:
Constant Field Values

VFREEBUSY

public static final String VFREEBUSY
See Also:
Constant Field Values

VTIMEZONE

public static final String VTIMEZONE
See Also:
Constant Field Values

VALARM

public static final String VALARM
See Also:
Constant Field Values
Constructor Detail

ICalendar.Component

public ICalendar.Component(String name,
                           ICalendar.Component parent)
Creates a new component with the provided name.

Parameters:
name - The name of the component.
Method Detail

getName

public String getName()
Returns the name of the component.

Returns:
The name of the component.

getParent

public ICalendar.Component getParent()
Returns the parent of this component.

Returns:
The parent of this component.

getOrCreateChildren

protected LinkedList<ICalendar.Component> getOrCreateChildren()
Helper that lazily gets/creates the list of children.

Returns:
The list of children.

addChild

public void addChild(ICalendar.Component child)
Adds a child component to this component.

Parameters:
child - The child component.

getComponents

public List<ICalendar.Component> getComponents()
Returns a list of the Component children of this component. May be null, if there are no children.

Returns:
A list of the children.

addProperty

public void addProperty(ICalendar.Property prop)
Adds a Property to this component.

Parameters:
prop -

getPropertyNames

public Set<String> getPropertyNames()
Returns a set of the property names within this component.

Returns:
A set of property names within this component.

getProperties

public List<ICalendar.Property> getProperties(String name)
Returns a list of properties with the specified name. Returns null if there are no such properties.

Parameters:
name - The name of the property that should be returned.
Returns:
A list of properties with the requested name.

getFirstProperty

public ICalendar.Property getFirstProperty(String name)
Returns the first property with the specified name. Returns null if there is no such property.

Parameters:
name - The name of the property that should be returned.
Returns:
The first property with the specified name.

toString

public String toString()
Description copied from class: Object
Returns a string containing a concise, human-readable description of the receiver.

Overrides:
toString in class Object
Returns:
String a printable representation for the receiver.

toString

public void toString(StringBuilder sb)
Helper method that appends this component to a StringBuilder. The caller is responsible for appending a newline at the end of the component.


Build 1.0_r1(from source)

Please submit a feedback, bug or feature