public class EmailScribe extends StringPropertyScribe<Email>
Email
properties.VCardPropertyScribe.DateWriter
dataType
clazz, propertyName, qname
Constructor and Description |
---|
EmailScribe() |
Modifier and Type | Method and Description |
---|---|
protected Email |
_parseHtml(HCardElement element,
ParseContext context)
Unmarshals the property from an hCard (HTML document).
|
protected Email |
_parseValue(String value)
Parses the property from a string.
|
protected void |
_prepareParameters(Email property,
VCardParameters copy,
VCardVersion version,
VCard vcard)
Sanitizes a property's parameters before the property is written.
|
_writeValue
_defaultDataType, _parseJson, _parseText, _parseXml, _writeJson, _writeText, _writeXml
_dataType, dataType, date, date, defaultDataType, escape, getPropertyClass, getPropertyName, getQName, handlePrefParam, missingXmlElements, missingXmlElements, parseHtml, parseJson, parseText, parseXml, prepareParameters, writeJson, writeText, writeXml
public EmailScribe()
protected void _prepareParameters(Email property, VCardParameters copy, VCardVersion version, VCard vcard)
VCardPropertyScribe
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 does nothing.
_prepareParameters
in class VCardPropertyScribe<Email>
property
- the propertycopy
- the list of parameters to make modifications to (it is a copy
of the property's parameters)version
- the version of the vCard that is being generatedvcard
- the vCard that the property belongs toprotected Email _parseValue(String value)
SimplePropertyScribe
_parseValue
in class SimplePropertyScribe<Email>
value
- the property valueprotected Email _parseHtml(HCardElement element, ParseContext context)
VCardPropertyScribe
Unmarshals the property from an hCard (HTML document).
This method should be overridden by child classes that wish to support
hCard. The default implementation of this method will retrieve the HTML
element's hCard value (as described in HCardElement.value()
), and
pass it into the VCardPropertyScribe._parseText(java.lang.String, ezvcard.VCardDataType, ezvcard.parameter.VCardParameters, ezvcard.io.ParseContext)
method.
_parseHtml
in class SimplePropertyScribe<Email>
element
- the property's HTML elementcontext
- the parse contextCopyright © 2012–2023 Michael Angstadt. All rights reserved.