T
- the value typepublic class ListProperty<T> extends ICalProperty
parameters
Constructor and Description |
---|
ListProperty()
Creates a new list property.
|
ListProperty(List<T> values)
Creates a new list property.
|
ListProperty(T... values)
Creates a new list property.
|
Modifier and Type | Method and Description |
---|---|
void |
addValue(T value)
Adds a value to this property.
|
List<T> |
getValues()
Gets the values of this property.
|
protected void |
validate(List<ICalComponent> components,
ICalVersion version,
List<Warning> warnings)
Checks the property for data consistency problems or deviations from the
spec.
|
addParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, validate
public ListProperty()
public ListProperty(T... values)
values
- the values to initialize the property withpublic ListProperty(List<T> values)
values
- the values to initialize the property withpublic void addValue(T value)
value
- the value to addprotected void validate(List<ICalComponent> components, ICalVersion version, List<Warning> warnings)
ICalProperty
Checks the property for data consistency problems or deviations from the spec.
This method should be overridden by child classes that wish to provide validation logic. The default implementation of this method does nothing.
validate
in class ICalProperty
components
- the hierarchy of components that the property belongs
toversion
- the version to validate againstwarnings
- the list to add the warnings toCopyright © 2013-2015 Michael Angstadt. All Rights Reserved.