public class AttendeeScribe extends ICalPropertyScribe<Attendee>
Attendee
properties.ICalPropertyScribe.DateParser, ICalPropertyScribe.DateWriter, ICalPropertyScribe.Result<T>
clazz, propertyName, qname
Constructor and Description |
---|
AttendeeScribe() |
Modifier and Type | Method and Description |
---|---|
protected ICalDataType |
_dataType(Attendee property,
ICalVersion version)
Determines the data type of a property instance.
|
protected ICalDataType |
_defaultDataType(ICalVersion version)
Determines the default data type of this property.
|
protected Attendee |
_parseText(String value,
ICalDataType dataType,
ICalParameters parameters,
ParseContext context)
Unmarshals a property from a plain-text iCalendar data stream.
|
protected ICalParameters |
_prepareParameters(Attendee property,
WriteContext context)
Sanitizes a property's parameters before the property is written.
|
protected String |
_writeText(Attendee property,
WriteContext context)
Marshals a property's value to a string.
|
_parseJson, _parseXml, _writeJson, _writeXml, dataType, date, date, date, date, date, defaultDataType, getPropertyClass, getPropertyName, getQName, getSupportedVersions, handleTzidParameter, isInObservance, missingXmlElements, missingXmlElements, parseJson, parseText, parseXml, prepareParameters, writeJson, writeText, writeXml
public AttendeeScribe()
protected ICalDataType _defaultDataType(ICalVersion version)
ICalPropertyScribe
Determines the default data type of this property.
This method should be overridden by child classes if a property's default
data type changes depending the iCalendar version. The default
implementation of this method returns the data type that was passed into
the ICalPropertyScribe.ICalPropertyScribe(Class, String, ICalDataType)
constructor.
Null is returned if this constructor was not invoked.
_defaultDataType
in class ICalPropertyScribe<Attendee>
version
- the version of the iCalendar object being generatedprotected ICalDataType _dataType(Attendee property, ICalVersion version)
ICalPropertyScribe
Determines the data type of a property instance.
This method should be overridden by child classes if a property's data type changes depending on its value. The default implementation of this method returns the property's default data type.
_dataType
in class ICalPropertyScribe<Attendee>
property
- the propertyversion
- the version of the iCalendar object being generatedprotected ICalParameters _prepareParameters(Attendee property, WriteContext context)
ICalPropertyScribe
Sanitizes a property's parameters before the property is written.
This method should be overridden by child classes that wish to tweak the property's parameters before the property is written. The default implementation of this method returns the property's parameters unmodified.
_prepareParameters
in class ICalPropertyScribe<Attendee>
property
- the property to writecontext
- the contextprotected Attendee _parseText(String value, ICalDataType dataType, ICalParameters parameters, ParseContext context)
ICalPropertyScribe
_parseText
in class ICalPropertyScribe<Attendee>
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 String _writeText(Attendee property, WriteContext context)
ICalPropertyScribe
_writeText
in class ICalPropertyScribe<Attendee>
property
- the propertycontext
- the write contextCopyright © 2013–2024 Michael Angstadt. All rights reserved.