net.fortuna.ical4j.model
Class ComponentFactory

java.lang.Object
  extended by net.fortuna.ical4j.model.ComponentFactory

public final class ComponentFactory
extends java.lang.Object

A factory for creating iCalendar components. Note that if relaxed parsing is enabled (via specifying the system property: icalj.parsing.relaxed=true) illegal component names are allowed.

Author:
Ben Fortuna

Method Summary
protected  boolean allowIllegalNames()
           
 Component createComponent(java.lang.String name)
           
 Component createComponent(java.lang.String name, PropertyList properties)
          Creates a component.
 Component createComponent(java.lang.String name, PropertyList properties, ComponentList components)
          Creates a component which contains sub-components.
static ComponentFactory getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ComponentFactory getInstance()
Returns:
Returns the instance.

createComponent

public Component createComponent(java.lang.String name)
Parameters:
name -
Returns:

createComponent

public Component createComponent(java.lang.String name,
                                 PropertyList properties)
Creates a component.

Parameters:
name - name of the component
properties - a list of component properties
Returns:
a component

createComponent

public Component createComponent(java.lang.String name,
                                 PropertyList properties,
                                 ComponentList components)
Creates a component which contains sub-components. Currently the only such component is VTIMEZONE.

Parameters:
name - name of the component
properties - a list of component properties
components - a list of sub-components (namely standard/daylight timezones)
Returns:
a component

allowIllegalNames

protected boolean allowIllegalNames()
Returns:


Copyright © 2004-2007 Modularity. All Rights Reserved.