ezvcard.parameter
Class MediaTypeCaseClasses<T extends MediaTypeParameter>

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

public class MediaTypeCaseClasses<T extends MediaTypeParameter>
extends CaseClasses<T,String[]>

Manages the list of pre-defined values for a media type parameter.

Author:
Michael Angstadt

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

MediaTypeCaseClasses

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


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