T - the value type (e.g. String)public class ValuedProperty<T> extends ICalProperty
| Modifier and Type | Field and Description |
|---|---|
protected T |
value |
parameters| Constructor and Description |
|---|
ValuedProperty(T value)
Creates a new valued property.
|
| Modifier and Type | Method and Description |
|---|---|
T |
getValue()
Gets the value of this property.
|
void |
setValue(T value)
Sets the value of this property.
|
protected void |
validate(List<ICalComponent> components,
List<Warning> warnings)
Checks the property for data consistency problems or deviations from the
spec.
|
addParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, validatepublic ValuedProperty(T value)
value - the property's valuepublic void setValue(T value)
value - the valueprotected void validate(List<ICalComponent> components, List<Warning> warnings)
ICalPropertyvalidate in class ICalPropertycomponents - the hierarchy of components that the property belongs
towarnings - the list to add the warnings toCopyright © 2013-2014 Michael Angstadt. All Rights Reserved.