net.fortuna.ical4j.transform

Class Transformer


public abstract class Transformer
extends java.lang.Object

$Id: Transformer.java,v 1.7 2008/12/16 12:34:54 fortuna Exp $ Created: 23/09/2004 Base class of calendar transformations.

Method Summary

abstract Calendar
transform(Calendar calendar)
Transforms the specified calendar according to the implementation of this method.
Calendar
transform(Component component)
Transforms the specified component according to the transformer implementation.

Method Details

transform

public abstract Calendar transform(Calendar calendar)
Transforms the specified calendar according to the implementation of this method. By definition this method will modify the existing calendar instance and return it for convenience.
Parameters:
calendar - a calendar to transform
Returns:
a transformed calendar

transform

public final Calendar transform(Component component)
Transforms the specified component according to the transformer implementation.
Parameters:
component - a component to transform
Returns:
a calendar containing the transformed component