T
- the class of the property's valuepublic class SimpleProperty<T> extends VCardProperty
Modifier and Type | Field and Description |
---|---|
protected T |
value |
group, parameters
Constructor and Description |
---|
SimpleProperty(T value)
Creates a valued property
|
Modifier and Type | Method and Description |
---|---|
protected void |
_validate(List<Warning> warnings,
VCardVersion version,
VCard vcard)
Checks the property for data consistency problems or deviations from the
spec.
|
T |
getValue()
Gets the value of this property.
|
void |
setValue(T value)
Sets the value of this property.
|
_supportedVersions, addParameter, compareTo, getGroup, getParameter, getParameters, getParameters, getSupportedVersions, removeParameter, setGroup, setParameter, setParameters, validate
protected T value
public SimpleProperty(T value)
value
- the valuepublic T getValue()
public void setValue(T value)
value
- the valueprotected void _validate(List<Warning> warnings, VCardVersion version, VCard vcard)
VCardProperty
_validate
in class VCardProperty
warnings
- the list to add the warnings toversion
- the version to check the property againstvcard
- the vCard this property belongs toThis software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.