ezvcard.parameter
Class VCardParameterCaseClasses<T extends VCardParameter>

java.lang.Object
  extended by ezvcard.util.CaseClasses<T,String>
      extended by ezvcard.parameter.VCardParameterCaseClasses<T>
Type Parameters:
T - the parameter class

public class VCardParameterCaseClasses<T extends VCardParameter>
extends CaseClasses<T,String>

Manages the list of pre-defined values for a parameter that consists of a single String value.

Author:
Michael Angstadt

Field Summary
 
Fields inherited from class ezvcard.util.CaseClasses
clazz, preDefined, runtimeDefined
 
Constructor Summary
VCardParameterCaseClasses(Class<T> clazz)
           
 
Method Summary
protected  T create(String value)
          Creates a new instance of the case class.
protected  boolean matches(T object, String value)
          Determines if a value is associated with a case object.
 
Methods inherited from class ezvcard.util.CaseClasses
all, find, get
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VCardParameterCaseClasses

public VCardParameterCaseClasses(Class<T> clazz)
Method Detail

create

protected T create(String value)
Description copied from class: CaseClasses
Creates a new instance of the case class.

Specified by:
create in class CaseClasses<T extends VCardParameter,String>
Parameters:
value - the value to give the instance
Returns:
the new instance

matches

protected boolean matches(T object,
                          String value)
Description copied from class: CaseClasses
Determines if a value is associated with a case object.

Specified by:
matches in class CaseClasses<T extends VCardParameter,String>
Parameters:
object - the object
value - the value
Returns:
true if it matches, false if not


Copyright © 2012-2014 Michael Angstadt. All Rights Reserved.