biweekly.property.marshaller
Class PropertyLibrary

java.lang.Object
  extended by biweekly.property.marshaller.PropertyLibrary

public class PropertyLibrary
extends Object

Contains the listing of all property marshallers.

Author:
Michael Angstadt

Method Summary
static ICalPropertyMarshaller<? extends ICalProperty> getMarshaller(Class<? extends ICalProperty> clazz)
          Gets a property marshaller by class.
static ICalPropertyMarshaller<? extends ICalProperty> getMarshaller(QName qname)
          Gets a property marshaller by XML local name and namespace.
static ICalPropertyMarshaller<? extends ICalProperty> getMarshaller(String propertyName)
          Gets a property 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 ICalPropertyMarshaller<? extends ICalProperty> getMarshaller(String propertyName)
Gets a property marshaller by name.

Parameters:
propertyName - the component name (e.g. "VERSION")
Returns:
the property marshaller or null if not found

getMarshaller

public static ICalPropertyMarshaller<? extends ICalProperty> getMarshaller(Class<? extends ICalProperty> clazz)
Gets a property marshaller by class.

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

getMarshaller

public static ICalPropertyMarshaller<? extends ICalProperty> getMarshaller(QName qname)
Gets a property marshaller by XML local name and namespace.

Parameters:
qname - the XML local name and namespace
Returns:
the property marshaller or null if not found


Copyright © 2013 Michael Angstadt. All Rights Reserved.