Top Description Fields Constructors Methods
net.fortuna.ical4j.model

public final Class ComponentFactoryImpl

extends AbstractContentFactory<ComponentFactory<?>>
Class Inheritance
Annotations
@Deprecated
Imports
net.fortuna.ical4j.model.component.XComponent, net.fortuna.ical4j.util.CompatibilityHints, java.io.IOException, .ObjectInputStream, java.util.ServiceLoader

Deprecated

$Id$ [05-Apr-2004]

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

Field Summary

Inherited from net.fortuna.ical4j.model.AbstractContentFactory:
factoryLoader

Constructor Summary

AccessConstructor and Description
public
ComponentFactoryImpl()

Constructor made private to prevent instantiation.

Method Summary

Modifier and TypeMethod and Description
public Component

Returns:

a new component instance of the specified type
createComponent
(final String
a component name
name
)

public Component

Returns:

a component
createComponent
(final String
name of the component
name
,
final PropertyList
a list of component properties
properties
)

Creates a component.

public Component

Returns:

a component
createComponent
(final String
name of the component
name
,
final PropertyList
a list of component properties
properties
,
final ComponentList<? extends Component>
a list of sub-components (namely standard/daylight timezones)
components
)

Creates a component which contains sub-components.

protected boolean
private boolean
private void
readObject(ObjectInputStream in)

Needed for initializing the transient member after deserializing a Calendar

Inherited from net.fortuna.ical4j.model.AbstractContentFactory:
allowIllegalNamesgetgetFactoryregisterExtendedFactory

Constructor Detail

ComponentFactoryImplback to summary
public ComponentFactoryImpl()

Constructor made private to prevent instantiation.

Method Detail

createComponentback to summary
public Component createComponent(final String name)
Parameters
name:String

a component name

Returns:Component

a new component instance of the specified type

createComponentback to summary
public Component createComponent(final String name, final PropertyList properties)

Creates a component.

Parameters
name:String

name of the component

properties:PropertyList

a list of component properties

Returns:Component

a component

createComponentback to summary
public Component createComponent(final String name, final PropertyList properties, final ComponentList<? extends Component> components)

Creates a component which contains sub-components. Currently the only such component is VTIMEZONE.

Parameters
name:String

name of the component

properties:PropertyList

a list of component properties

components:ComponentList<? extends Component>

a list of sub-components (namely standard/daylight timezones)

Returns:Component

a component

factorySupportsback to summary
protected boolean factorySupports(ComponentFactory<?> factory, String key)

Implements abstract net.fortuna.ical4j.model.AbstractContentFactory.factorySupports.

Annotations
@Override
isExperimentalNameback to summary
private boolean isExperimentalName(final String name)
readObjectback to summary
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException

Needed for initializing the transient member after deserializing a Calendar