ezvcard.parameters
Class SoundTypeParameter

java.lang.Object
  extended by ezvcard.parameters.VCardParameter
      extended by ezvcard.parameters.TypeParameter
          extended by ezvcard.parameters.MediaTypeParameter
              extended by ezvcard.parameters.SoundTypeParameter

public class SoundTypeParameter
extends MediaTypeParameter

Represents the TYPE parameter of the SOUND type.

vCard versions: 2.1, 3.0, 4.0

Author:
George El-Haddad Mar 10, 2010, Michael Angstadt

Field Summary
static SoundTypeParameter AAC
           
static SoundTypeParameter MIDI
           
static SoundTypeParameter MP3
           
static SoundTypeParameter MPEG
           
static SoundTypeParameter OGG
           
static SoundTypeParameter WAV
           
 
Fields inherited from class ezvcard.parameters.MediaTypeParameter
extension, mediaType
 
Fields inherited from class ezvcard.parameters.TypeParameter
NAME
 
Fields inherited from class ezvcard.parameters.VCardParameter
name, value
 
Constructor Summary
SoundTypeParameter(String value, String mediaType, String extension)
          Use of this constructor is discouraged and should only be used for defining non-standard TYPEs.
 
Method Summary
static SoundTypeParameter findByMediaType(String mediaType)
          Searches the static objects in this class for one that has a certain media type.
static SoundTypeParameter valueOf(String value)
          Searches the static objects in this class for one that has a certain type value.
 
Methods inherited from class ezvcard.parameters.MediaTypeParameter
equals, findByMediaType, getExtension, getMediaType, hashCode
 
Methods inherited from class ezvcard.parameters.VCardParameter
all, findByValue, getName, getValue, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

AAC

public static final SoundTypeParameter AAC

MIDI

public static final SoundTypeParameter MIDI

MP3

public static final SoundTypeParameter MP3

MPEG

public static final SoundTypeParameter MPEG

OGG

public static final SoundTypeParameter OGG

WAV

public static final SoundTypeParameter WAV
Constructor Detail

SoundTypeParameter

public SoundTypeParameter(String value,
                          String mediaType,
                          String extension)
Use of this constructor is discouraged and should only be used for defining non-standard TYPEs. Please use one of the predefined static objects.

Parameters:
value - the type value (e.g. "ogg")
mediaType - the media type (e.g. "audio/ogg")
extension - the file extension used for this type (e.g. "ogg")
Method Detail

valueOf

public static SoundTypeParameter valueOf(String value)
Searches the static objects in this class for one that has a certain type value.

Parameters:
value - the type value to search for (e.g. "ogg")
Returns:
the object or null if not found

findByMediaType

public static SoundTypeParameter findByMediaType(String mediaType)
Searches the static objects in this class for one that has a certain media type.

Parameters:
mediaType - the media type to search for (e.g. "audio/ogg")
Returns:
the object or null if not found


Copyright © 2012-2013. All Rights Reserved.