com.pkrete.jsip2.variables
Enum MediaType

java.lang.Object
  extended by java.lang.Enum<MediaType>
      extended by com.pkrete.jsip2.variables.MediaType
All Implemented Interfaces:
Serializable, Comparable<MediaType>

public enum MediaType
extends Enum<MediaType>

This enum defines a set of media types that can be used in SIP2 response messages to describe the media type of an item.

Author:
Petteri Kivimäki

Enum Constant Summary
AUDIO_TAPE
           
BOOK
           
BOOK_WITH_AUDIO_TAPE
           
BOOK_WITH_CD
           
BOOK_WITH_DISKETTE
           
BOUND_JOURNAL
           
CD_CDROM
           
DISKETTE
           
MAGAZINE
           
OTHER
           
VIDEO_TAPE
           
 
Method Summary
 String toString()
           
static MediaType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MediaType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

OTHER

public static final MediaType OTHER

BOOK

public static final MediaType BOOK

MAGAZINE

public static final MediaType MAGAZINE

BOUND_JOURNAL

public static final MediaType BOUND_JOURNAL

AUDIO_TAPE

public static final MediaType AUDIO_TAPE

VIDEO_TAPE

public static final MediaType VIDEO_TAPE

CD_CDROM

public static final MediaType CD_CDROM

DISKETTE

public static final MediaType DISKETTE

BOOK_WITH_DISKETTE

public static final MediaType BOOK_WITH_DISKETTE

BOOK_WITH_CD

public static final MediaType BOOK_WITH_CD

BOOK_WITH_AUDIO_TAPE

public static final MediaType BOOK_WITH_AUDIO_TAPE
Method Detail

values

public static MediaType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (MediaType c : MediaType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static MediaType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

toString

public String toString()
Overrides:
toString in class Enum<MediaType>


Copyright © 2012-2014. All Rights Reserved.