public abstract class VCalAlarmPropertyScribe<T extends VCalAlarmProperty> extends ICalPropertyScribe<T>
VCalAlarmProperty
properties.ICalPropertyScribe.DateParser, ICalPropertyScribe.DateWriter, ICalPropertyScribe.ListCallback<T>, ICalPropertyScribe.Result<T>, ICalPropertyScribe.SemiStructuredIterator, ICalPropertyScribe.Splitter, ICalPropertyScribe.StructuredIterator
clazz, propertyName, qname
Constructor and Description |
---|
VCalAlarmPropertyScribe(Class<T> clazz,
String propertyName) |
VCalAlarmPropertyScribe(Class<T> clazz,
String propertyName,
ICalDataType defaultDataType) |
Modifier and Type | Method and Description |
---|---|
protected T |
_parseText(String value,
ICalDataType dataType,
ICalParameters parameters,
ParseContext context)
Unmarshals a property from a plain-text iCalendar data stream.
|
protected String |
_writeText(T property,
WriteContext context)
Marshals a property's value to a string.
|
protected abstract T |
create(ICalDataType dataType,
ICalPropertyScribe.SemiStructuredIterator it) |
Set<ICalVersion> |
getSupportedVersions()
Gets the iCalendar versions that support this property.
|
protected abstract List<String> |
writeData(T property) |
_dataType, _defaultDataType, _parseJson, _parseXml, _prepareParameters, _writeJson, _writeXml, dataType, date, date, date, date, date, defaultDataType, escape, getPropertyClass, getPropertyName, getQName, handleTzidParameter, isInObservance, list, list, list, list, missingXmlElements, missingXmlElements, object, object, parseJson, parseText, parseXml, prepareParameters, semistructured, semistructured, splitter, structured, structured, structured, unescape, writeJson, writeText, writeXml
public VCalAlarmPropertyScribe(Class<T> clazz, String propertyName)
public VCalAlarmPropertyScribe(Class<T> clazz, String propertyName, ICalDataType defaultDataType)
protected String _writeText(T property, WriteContext context)
ICalPropertyScribe
_writeText
in class ICalPropertyScribe<T extends VCalAlarmProperty>
property
- the propertycontext
- the write contextprotected T _parseText(String value, ICalDataType dataType, ICalParameters parameters, ParseContext context)
ICalPropertyScribe
_parseText
in class ICalPropertyScribe<T extends VCalAlarmProperty>
value
- the value as read off the wiredataType
- the data type of the property value. The property's VALUE
parameter is used to determine the data type. If the property has no
VALUE parameter, then this parameter will be set to the property's
default datatype. Note that the VALUE parameter is removed from the
property's parameter list after it has been read.parameters
- the parsed parameters. These parameters will be
assigned to the property object once this method returns. Therefore, do
not assign any parameters to the property object itself whilst inside of
this method, or else they will be overwritten.context
- the parse contextprotected abstract T create(ICalDataType dataType, ICalPropertyScribe.SemiStructuredIterator it)
public Set<ICalVersion> getSupportedVersions()
ICalPropertyScribe
getSupportedVersions
in class ICalPropertyScribe<T extends VCalAlarmProperty>
Copyright © 2013-2015 Michael Angstadt. All Rights Reserved.