ezvcard.io.scribe
Class StringPropertyScribe<T extends TextProperty>

java.lang.Object
  extended by ezvcard.io.scribe.VCardPropertyScribe<T>
      extended by ezvcard.io.scribe.SimplePropertyScribe<T>
          extended by ezvcard.io.scribe.StringPropertyScribe<T>
Type Parameters:
T - the property class
Direct Known Subclasses:
ClassificationScribe, EmailScribe, ExpertiseScribe, FormattedNameScribe, HobbyScribe, InterestScribe, KindScribe, LabelScribe, LanguageScribe, MailerScribe, MemberScribe, NoteScribe, OrgDirectoryScribe, ProductIdScribe, ProfileScribe, RoleScribe, SortStringScribe, SourceDisplayTextScribe, TitleScribe, UriPropertyScribe

public abstract class StringPropertyScribe<T extends TextProperty>
extends SimplePropertyScribe<T>

Marshals properties that contain a single string value (like text or a URI).

Author:
Michael Angstadt

Nested Class Summary
 
Nested classes/interfaces inherited from class ezvcard.io.scribe.VCardPropertyScribe
VCardPropertyScribe.DateWriter, VCardPropertyScribe.Result<T extends VCardProperty>, VCardPropertyScribe.SemiStructuredIterator, VCardPropertyScribe.Splitter, VCardPropertyScribe.StructuredIterator
 
Field Summary
 
Fields inherited from class ezvcard.io.scribe.SimplePropertyScribe
dataType
 
Fields inherited from class ezvcard.io.scribe.VCardPropertyScribe
clazz, propertyName, qname
 
Constructor Summary
StringPropertyScribe(Class<T> clazz, String propertyName)
           
StringPropertyScribe(Class<T> clazz, String propertyName, VCardDataType dataType)
           
 
Method Summary
protected  String _writeValue(T property)
          Writes the property value to a string.
 
Methods inherited from class ezvcard.io.scribe.SimplePropertyScribe
_defaultDataType, _parseHtml, _parseJson, _parseText, _parseValue, _parseXml, _writeJson, _writeText, _writeXml
 
Methods inherited from class ezvcard.io.scribe.VCardPropertyScribe
_dataType, _prepareParameters, dataType, date, date, defaultDataType, escape, getPropertyClass, getPropertyName, getQName, handlePrefParam, list, list, list, missingXmlElements, missingXmlElements, parseHtml, parseJson, parseText, parseXml, prepareParameters, semistructured, semistructured, split, structured, structured, structured, unescape, writeJson, writeText, writeXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringPropertyScribe

public StringPropertyScribe(Class<T> clazz,
                            String propertyName)

StringPropertyScribe

public StringPropertyScribe(Class<T> clazz,
                            String propertyName,
                            VCardDataType dataType)
Method Detail

_writeValue

protected String _writeValue(T property)
Description copied from class: SimplePropertyScribe
Writes the property value to a string.

Specified by:
_writeValue in class SimplePropertyScribe<T extends TextProperty>
Parameters:
property - the property to write
Returns:
the property value


Copyright © 2012-2014 Michael Angstadt. All Rights Reserved.