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

public Class PropertyBuilder

extends AbstractContentBuilder
Class Inheritance
Imports
net.fortuna.ical4j.model.property.DateListProperty, .DateProperty, .UtcProperty, .XProperty, net.fortuna.ical4j.util.CompatibilityHints, org.apache.commons.codec.DecoderException, java.time.ZoneId, java.util.ArrayList, .Arrays, .List

Provides a configurable builder for creating Property instances from String values. You can specify an arbitrary list of supported property factories, and a list of property names to ignore.

Field Summary

Modifier and TypeField and Description
private ZoneId
private final List<PropertyFactory<?>>
private String
private final List<Parameter>
private String
private TimeZoneRegistry
private String

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public Property
public PropertyBuilder
defaultTimeZone(ZoneId defaultTimeZone)

public PropertyBuilder

Returns:

the builder instance
factories
(List<PropertyFactory<?>>
a list of property factories
factories
)
Deprecated preference the constructor option for specifying factories

Set the list of property factories supporting this builder instance.

public boolean
public PropertyBuilder
name(String name)

public PropertyBuilder
parameter(Parameter parameter)

public PropertyBuilder
public PropertyBuilder
value(String value)

Inherited from net.fortuna.ical4j.model.AbstractContentBuilder:
allowIllegalNamesisExperimentalName

Field Detail

defaultTimeZoneback to summary
private ZoneId defaultTimeZone
factoriesback to summary
private final List<PropertyFactory<?>> factories
nameback to summary
private String name
parametersback to summary
private final List<Parameter> parameters
prefixback to summary
private String prefix
timeZoneRegistryback to summary
private TimeZoneRegistry timeZoneRegistry
valueback to summary
private String value

Constructor Detail

PropertyBuilderback to summary
public PropertyBuilder()
PropertyBuilderback to summary
public PropertyBuilder(List<PropertyFactory<? extends Property>> factories)

Method Detail

buildback to summary
public Property build()
defaultTimeZoneback to summary
public PropertyBuilder defaultTimeZone(ZoneId defaultTimeZone)
factoriesback to summary
public PropertyBuilder factories(List<PropertyFactory<?>> factories)

Deprecated

preference the constructor option for specifying factories

Set the list of property factories supporting this builder instance.

Parameters
factories:List<PropertyFactory<?>>

a list of property factories

Returns:PropertyBuilder

the builder instance

Annotations
@Deprecated
hasNameback to summary
public boolean hasName(String name)
nameback to summary
public PropertyBuilder name(String name)
parameterback to summary
public PropertyBuilder parameter(Parameter parameter)
timeZoneRegistryback to summary
public PropertyBuilder timeZoneRegistry(TimeZoneRegistry timeZoneRegistry)
valueback to summary
public PropertyBuilder value(String value)