Enum MediaTypeCode
- java.lang.Object
-
- java.lang.Enum<MediaTypeCode>
-
- org.openehealth.ipf.commons.audit.codes.MediaTypeCode
-
- All Implemented Interfaces:
Serializable
,Comparable<MediaTypeCode>
,CodedValueType
,EnumeratedCodedValue<MediaType>
,EnumeratedValueSet<MediaType>
,MediaType
public enum MediaTypeCode extends Enum<MediaTypeCode> implements MediaType, EnumeratedCodedValue<MediaType>
Media Type Code as specified in http://dicom.nema.org/medical/dicom/current/output/html/part16.html#sect_CID_405 1.2.840.10008.6.1.908- Since:
- 3.5
- Author:
- Christian Ohr
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.openehealth.ipf.commons.audit.types.MediaType
MediaType.MediaTypeImpl
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CD
CompactFlash
DVD
Email
Film
MMC
PaperDocument
SD
URI
Usb
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MediaTypeCode
enumForCode(String code)
MediaType
getValue()
static MediaTypeCode
valueOf(String name)
Returns the enum constant of this type with the specified name.static MediaTypeCode[]
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, toString, valueOf
-
Methods inherited from interface org.openehealth.ipf.commons.audit.types.EnumeratedCodedValue
getCode, getCodeSystemName, getDisplayName, getOriginalText, matches
-
-
-
-
Enum Constant Detail
-
Usb
public static final MediaTypeCode Usb
-
Email
public static final MediaTypeCode Email
-
CD
public static final MediaTypeCode CD
-
DVD
public static final MediaTypeCode DVD
-
CompactFlash
public static final MediaTypeCode CompactFlash
-
MMC
public static final MediaTypeCode MMC
-
SD
public static final MediaTypeCode SD
-
URI
public static final MediaTypeCode URI
-
Film
public static final MediaTypeCode Film
-
PaperDocument
public static final MediaTypeCode PaperDocument
-
-
Method Detail
-
values
public static MediaTypeCode[] 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 (MediaTypeCode c : MediaTypeCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MediaTypeCode 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 nameNullPointerException
- if the argument is null
-
enumForCode
public static MediaTypeCode enumForCode(String code)
-
getValue
public MediaType getValue()
- Specified by:
getValue
in interfaceEnumeratedValueSet<MediaType>
-
-