ezvcard.types
Class TypeList

java.lang.Object
  extended by ezvcard.types.TypeList

public class TypeList
extends Object

Contains listings of all the vCard type classes in this library.

Author:
Michael Angstadt

Constructor Summary
TypeList()
           
 
Method Summary
static Method getAddMethod(Class<? extends VCardType> typeClass)
          Gets the method of the VCard class that's used to add a vCard type object to the VCard.
static Class<? extends VCardType> getTypeClass(String typeName)
          Gets the class that represents a vCard type.
static Class<? extends VCardType> getTypeClassByHCardTypeName(String typeName)
          Gets the class that represents a vCard type using its hCard type name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeList

public TypeList()
Method Detail

getTypeClass

public static Class<? extends VCardType> getTypeClass(String typeName)
Gets the class that represents a vCard type.

Parameters:
typeName - the name of the vCard type (e.g. "ADR")
Returns:
the type class or null if not found

getTypeClassByHCardTypeName

public static Class<? extends VCardType> getTypeClassByHCardTypeName(String typeName)
Gets the class that represents a vCard type using its hCard type name.

Parameters:
typeName - the hCard name of the vCard type (e.g. "adr")
Returns:
the type class or null if not found

getAddMethod

public static Method getAddMethod(Class<? extends VCardType> typeClass)
Gets the method of the VCard class that's used to add a vCard type object to the VCard.

Parameters:
typeClass - the type class
Returns:
the method or null if not found


Copyright © 2012-2013. All Rights Reserved.