biweekly.property.marshaller
Class ExceptionDatesMarshaller

java.lang.Object
  extended by biweekly.property.marshaller.ICalPropertyMarshaller<T>
      extended by biweekly.property.marshaller.ListPropertyMarshaller<ExceptionDates,Date>
          extended by biweekly.property.marshaller.ExceptionDatesMarshaller

public class ExceptionDatesMarshaller
extends ListPropertyMarshaller<ExceptionDates,Date>

Marshals ExceptionDates properties.

Author:
Michael Angstadt

Nested Class Summary
 
Nested classes/interfaces inherited from class biweekly.property.marshaller.ICalPropertyMarshaller
ICalPropertyMarshaller.DateParser, ICalPropertyMarshaller.DateWriter, ICalPropertyMarshaller.Result<T>, ICalPropertyMarshaller.Splitter
 
Field Summary
 
Fields inherited from class biweekly.property.marshaller.ListPropertyMarshaller
dataType
 
Fields inherited from class biweekly.property.marshaller.ICalPropertyMarshaller
clazz, propertyName, qname
 
Constructor Summary
ExceptionDatesMarshaller()
           
 
Method Summary
protected  ExceptionDates _parseXml(XCalElement element, ICalParameters parameters, List<String> warnings)
          Unmarshals a property's value from an XML document (xCal).
protected  void _prepareParameters(ExceptionDates property, ICalParameters copy)
          Sanitizes a property's parameters (called before the property is written).
protected  void _writeXml(ExceptionDates property, XCalElement element)
          Marshals a property's value to an XML element (xCal).
protected  ExceptionDates newInstance(ICalParameters parameters)
           
protected  Date readValue(String value, ICalParameters parameters, List<String> warnings)
           
protected  String writeValue(ExceptionDates property, Date value)
           
 
Methods inherited from class biweekly.property.marshaller.ListPropertyMarshaller
_parseText, _writeText
 
Methods inherited from class biweekly.property.marshaller.ICalPropertyMarshaller
date, date, escape, getPropertyClass, getPropertyName, getQName, parseComponent, parseList, parseText, parseXml, prepareParameters, split, unescape, writeText, writeXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionDatesMarshaller

public ExceptionDatesMarshaller()
Method Detail

_prepareParameters

protected void _prepareParameters(ExceptionDates property,
                                  ICalParameters copy)
Description copied from class: ICalPropertyMarshaller
Sanitizes a property's parameters (called before the property is written). This should be overridden by child classes when required.

Overrides:
_prepareParameters in class ICalPropertyMarshaller<ExceptionDates>
Parameters:
property - the property
copy - the list of parameters to make modifications to (it is a copy of the property's parameters)

newInstance

protected ExceptionDates newInstance(ICalParameters parameters)
Specified by:
newInstance in class ListPropertyMarshaller<ExceptionDates,Date>

writeValue

protected String writeValue(ExceptionDates property,
                            Date value)
Specified by:
writeValue in class ListPropertyMarshaller<ExceptionDates,Date>

readValue

protected Date readValue(String value,
                         ICalParameters parameters,
                         List<String> warnings)
Specified by:
readValue in class ListPropertyMarshaller<ExceptionDates,Date>

_writeXml

protected void _writeXml(ExceptionDates property,
                         XCalElement element)
Description copied from class: ICalPropertyMarshaller
Marshals a property's value to an XML element (xCal).

Overrides:
_writeXml in class ListPropertyMarshaller<ExceptionDates,Date>
Parameters:
property - the property
element - the XML element

_parseXml

protected ExceptionDates _parseXml(XCalElement element,
                                   ICalParameters parameters,
                                   List<String> warnings)
Description copied from class: ICalPropertyMarshaller
Unmarshals a property's value from an XML document (xCal).

Overrides:
_parseXml in class ListPropertyMarshaller<ExceptionDates,Date>
Parameters:
element - the property's XML element
parameters - the property's parameters
warnings - allows the programmer to alert the user to any note-worthy (but non-critical) issues that occurred during the unmarshalling process
Returns:
the unmarshalled property object


Copyright © 2013 Michael Angstadt. All Rights Reserved.