biweekly.property.marshaller
Class RawPropertyMarshaller

java.lang.Object
  extended by biweekly.property.marshaller.ICalPropertyMarshaller<RawProperty>
      extended by biweekly.property.marshaller.RawPropertyMarshaller

public class RawPropertyMarshaller
extends ICalPropertyMarshaller<RawProperty>

Marshals properties that do not have a marshaller associated with them.

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.ICalPropertyMarshaller
clazz, propertyName, qname
 
Constructor Summary
RawPropertyMarshaller()
           
RawPropertyMarshaller(String propertyName)
           
 
Method Summary
protected  RawProperty _parseText(String value, ICalParameters parameters, List<String> warnings)
          Unmarshals a property's value.
protected  RawProperty _parseXml(XCalElement element, ICalParameters parameters, List<String> warnings)
          Unmarshals a property's value from an XML document (xCal).
protected  String _writeText(RawProperty property)
          Marshals a property's value to a string.
 
Methods inherited from class biweekly.property.marshaller.ICalPropertyMarshaller
_prepareParameters, _writeXml, 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

RawPropertyMarshaller

public RawPropertyMarshaller()

RawPropertyMarshaller

public RawPropertyMarshaller(String propertyName)
Method Detail

_writeText

protected String _writeText(RawProperty property)
Description copied from class: ICalPropertyMarshaller
Marshals a property's value to a string.

Specified by:
_writeText in class ICalPropertyMarshaller<RawProperty>
Parameters:
property - the property
Returns:
the marshalled value

_parseText

protected RawProperty _parseText(String value,
                                 ICalParameters parameters,
                                 List<String> warnings)
Description copied from class: ICalPropertyMarshaller
Unmarshals a property's value.

Specified by:
_parseText in class ICalPropertyMarshaller<RawProperty>
Parameters:
value - the value
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

_parseXml

protected RawProperty _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 ICalPropertyMarshaller<RawProperty>
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.