biweekly.parameter
Class ICalParameterCaseClasses<T extends EnumParameterValue>

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

public class ICalParameterCaseClasses<T extends EnumParameterValue>
extends CaseClasses<T,String>

Manages the list of pre-defined values for a parameter (such as VALUE or ENCODING).

Author:
Michael Angstadt

Field Summary
 
Fields inherited from class biweekly.util.CaseClasses
clazz, preDefined, runtimeDefined
 
Constructor Summary
ICalParameterCaseClasses(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 biweekly.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

ICalParameterCaseClasses

public ICalParameterCaseClasses(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 EnumParameterValue,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 EnumParameterValue,String>
Parameters:
object - the object
value - the value
Returns:
true if it matches, false if not


Copyright © 2013 Michael Angstadt. All Rights Reserved.