net.fortuna.ical4j.model
Class PropertyFactoryImpl

java.lang.Object
  extended bynet.fortuna.ical4j.model.PropertyFactoryImpl
All Implemented Interfaces:
PropertyFactory

public final class PropertyFactoryImpl
extends Object
implements PropertyFactory

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

Author:
Ben Fortuna

Method Summary
 Property createProperty(String name)
          Creates an uninitialised property.
 Property createProperty(String name, ParameterList parameters, String value)
          Creates a property.
static PropertyFactoryImpl getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

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

createProperty

public Property createProperty(String name)
Creates an uninitialised property.

Specified by:
createProperty in interface PropertyFactory
Parameters:
name - name of the property
Returns:
a property

createProperty

public Property createProperty(String name,
                               ParameterList parameters,
                               String value)
                        throws IOException,
                               URISyntaxException,
                               ParseException
Creates a property.

Specified by:
createProperty in interface PropertyFactory
Parameters:
name - name of the property
parameters - a list of property parameters
value - a property value
Returns:
a component
Throws:
ParseException
URISyntaxException
IOException