biweekly.component.marshaller
Class ComponentLibrary

java.lang.Object
  extended by biweekly.component.marshaller.ComponentLibrary

public class ComponentLibrary
extends Object

Contains the listing of all component marshallers.

Author:
Michael Angstadt

Method Summary
static ICalComponentMarshaller<? extends ICalComponent> getMarshaller(Class<? extends ICalComponent> clazz)
          Gets a component marshaller by class.
static ICalComponentMarshaller<? extends ICalComponent> getMarshaller(String componentName)
          Gets a component marshaller by name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMarshaller

public static ICalComponentMarshaller<? extends ICalComponent> getMarshaller(String componentName)
Gets a component marshaller by name.

Parameters:
componentName - the component name (e.g. "VEVENT")
Returns:
the component marshaller or null if not found

getMarshaller

public static ICalComponentMarshaller<? extends ICalComponent> getMarshaller(Class<? extends ICalComponent> clazz)
Gets a component marshaller by class.

Parameters:
clazz - the component class
Returns:
the component marshaller or null if not found


Copyright © 2013 Michael Angstadt. All Rights Reserved.