biweekly.property.marshaller
Class TextListPropertyMarshaller<T extends ListProperty<String>>

java.lang.Object
  extended by biweekly.property.marshaller.ICalPropertyMarshaller<T>
      extended by biweekly.property.marshaller.ListPropertyMarshaller<T,String>
          extended by biweekly.property.marshaller.TextListPropertyMarshaller<T>
Type Parameters:
T - the property class
Direct Known Subclasses:
CategoriesMarshaller, ResourcesMarshaller

public abstract class TextListPropertyMarshaller<T extends ListProperty<String>>
extends ListPropertyMarshaller<T,String>

Marshals properties that have a list of text values.

Author:
Michael Angstadt

Nested Class Summary
 
Nested classes/interfaces inherited from class biweekly.property.marshaller.ICalPropertyMarshaller
ICalPropertyMarshaller.DateParser, ICalPropertyMarshaller.DateWriter, ICalPropertyMarshaller.ListCallback<T>, ICalPropertyMarshaller.Result<T extends ICalProperty>, ICalPropertyMarshaller.SemiStructuredIterator, ICalPropertyMarshaller.Splitter, ICalPropertyMarshaller.StructuredIterator
 
Field Summary
 
Fields inherited from class biweekly.property.marshaller.ICalPropertyMarshaller
clazz, defaultDataType, propertyName, qname
 
Constructor Summary
TextListPropertyMarshaller(Class<T> clazz, String propertyName)
           
 
Method Summary
protected  String readValue(String value, ICalDataType dataType, ICalParameters parameters, List<String> warnings)
           
protected  String writeValue(T property, String value)
           
 
Methods inherited from class biweekly.property.marshaller.ListPropertyMarshaller
_parseJson, _parseText, _parseXml, _writeJson, _writeText, _writeXml, newInstance
 
Methods inherited from class biweekly.property.marshaller.ICalPropertyMarshaller
_dataType, _prepareParameters, dataType, date, date, escape, getDefaultDataType, getPropertyClass, getPropertyName, getQName, list, list, list, list, missingXmlElements, missingXmlElements, object, object, 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

TextListPropertyMarshaller

public TextListPropertyMarshaller(Class<T> clazz,
                                  String propertyName)
Method Detail

writeValue

protected String writeValue(T property,
                            String value)
Specified by:
writeValue in class ListPropertyMarshaller<T extends ListProperty<String>,String>

readValue

protected String readValue(String value,
                           ICalDataType dataType,
                           ICalParameters parameters,
                           List<String> warnings)
Specified by:
readValue in class ListPropertyMarshaller<T extends ListProperty<String>,String>


Copyright © 2013 Michael Angstadt. All Rights Reserved.