com.gcapmedia.dab.epg.binary
Enum EnumType

java.lang.Object
  extended by java.lang.Enum<EnumType>
      extended by com.gcapmedia.dab.epg.binary.EnumType
All Implemented Interfaces:
Encodable, java.io.Serializable, java.lang.Comparable<EnumType>

public enum EnumType
extends java.lang.Enum<EnumType>
implements Encodable

Enumeration for enum types, confusingly enough. TODO need to work a mechanism for creating and parsing of default values.


Enum Constant Summary
alternateSourceProtocolDAB
           
alternateSourceProtocolDRN
           
alternateSourceProtocolURL
           
alternateSourceTypeIdentical
           
alternateSourceTypeLess
           
alternateSourceTypeMore
           
alternateSourceTypeSimilar
           
CATypeNone
           
CATypeUnspecified
           
epgSystemDAB
           
epgSystemDRM
           
frequencyTypePrimary
           
frequencyTypeSecondary
           
genreTypeMain
           
genreTypeOther
           
genreTypeSecondary
           
multimediaTypeLogoColourRectangle
           
multimediaTypeLogoColourSquare
           
multimediaTypeLogoMonoRectangle
           
multimediaTypeLogoMonoSquare
           
multimediaTypeLogoUnrestricted
           
programmeBroadcastOffair
           
programmeBroadcastOnair
           
programmeEventBroadcastOffair
           
programmeEventBroadcastOnair
           
programmeEventRecommendationNo
           
programmeEventRecommendationYes
           
programmeGroupTypeMagazine
           
programmeGroupTypeOtherChoice
           
programmeGroupTypeOtherCollection
           
programmeGroupTypeProgramCompilation
           
programmeGroupTypeProgramConcept
           
programmeGroupTypeSeries
           
programmeGroupTypeShow
           
programmeGroupTypeTopic
           
programmeRecommendationNo
           
programmeRecommendationYes
           
serviceFormatAudio
           
serviceFormatDGPS
           
serviceFormatDLS
           
serviceFormatMOTBWS
           
serviceFormatMOTSlideshow
           
serviceFormatProprietary
           
serviceFormatTPEG
           
serviceIDTypePrimary
           
serviceIDTypeSecondary
           
 
Method Summary
static EnumType fromByte(AttributeTag parent, byte value)
          Parse an object from its byte array representation
 byte[] getBytes()
           
 int getLength()
           
 AttributeTag getParent()
           
 int getValue()
           
static EnumType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EnumType[] 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 class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

epgSystemDAB

public static final EnumType epgSystemDAB

epgSystemDRM

public static final EnumType epgSystemDRM

programmeGroupTypeSeries

public static final EnumType programmeGroupTypeSeries

programmeGroupTypeShow

public static final EnumType programmeGroupTypeShow

programmeGroupTypeProgramConcept

public static final EnumType programmeGroupTypeProgramConcept

programmeGroupTypeMagazine

public static final EnumType programmeGroupTypeMagazine

programmeGroupTypeProgramCompilation

public static final EnumType programmeGroupTypeProgramCompilation

programmeGroupTypeOtherCollection

public static final EnumType programmeGroupTypeOtherCollection

programmeGroupTypeOtherChoice

public static final EnumType programmeGroupTypeOtherChoice

programmeGroupTypeTopic

public static final EnumType programmeGroupTypeTopic

alternateSourceProtocolURL

public static final EnumType alternateSourceProtocolURL

alternateSourceProtocolDAB

public static final EnumType alternateSourceProtocolDAB

alternateSourceProtocolDRN

public static final EnumType alternateSourceProtocolDRN

alternateSourceTypeIdentical

public static final EnumType alternateSourceTypeIdentical

alternateSourceTypeMore

public static final EnumType alternateSourceTypeMore

alternateSourceTypeLess

public static final EnumType alternateSourceTypeLess

alternateSourceTypeSimilar

public static final EnumType alternateSourceTypeSimilar

frequencyTypePrimary

public static final EnumType frequencyTypePrimary

frequencyTypeSecondary

public static final EnumType frequencyTypeSecondary

serviceFormatAudio

public static final EnumType serviceFormatAudio

serviceFormatDLS

public static final EnumType serviceFormatDLS

serviceFormatMOTSlideshow

public static final EnumType serviceFormatMOTSlideshow

serviceFormatMOTBWS

public static final EnumType serviceFormatMOTBWS

serviceFormatTPEG

public static final EnumType serviceFormatTPEG

serviceFormatDGPS

public static final EnumType serviceFormatDGPS

serviceFormatProprietary

public static final EnumType serviceFormatProprietary

serviceIDTypePrimary

public static final EnumType serviceIDTypePrimary

serviceIDTypeSecondary

public static final EnumType serviceIDTypeSecondary

CATypeNone

public static final EnumType CATypeNone

CATypeUnspecified

public static final EnumType CATypeUnspecified

programmeBroadcastOnair

public static final EnumType programmeBroadcastOnair

programmeBroadcastOffair

public static final EnumType programmeBroadcastOffair

programmeEventBroadcastOnair

public static final EnumType programmeEventBroadcastOnair

programmeEventBroadcastOffair

public static final EnumType programmeEventBroadcastOffair

programmeRecommendationNo

public static final EnumType programmeRecommendationNo

programmeRecommendationYes

public static final EnumType programmeRecommendationYes

programmeEventRecommendationNo

public static final EnumType programmeEventRecommendationNo

programmeEventRecommendationYes

public static final EnumType programmeEventRecommendationYes

multimediaTypeLogoUnrestricted

public static final EnumType multimediaTypeLogoUnrestricted

multimediaTypeLogoMonoSquare

public static final EnumType multimediaTypeLogoMonoSquare

multimediaTypeLogoColourSquare

public static final EnumType multimediaTypeLogoColourSquare

multimediaTypeLogoMonoRectangle

public static final EnumType multimediaTypeLogoMonoRectangle

multimediaTypeLogoColourRectangle

public static final EnumType multimediaTypeLogoColourRectangle

genreTypeMain

public static final EnumType genreTypeMain

genreTypeSecondary

public static final EnumType genreTypeSecondary

genreTypeOther

public static final EnumType genreTypeOther
Method Detail

values

public static EnumType[] 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 (EnumType c : EnumType.values())
    System.out.println(c);

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

valueOf

public static EnumType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getParent

public AttributeTag getParent()
Returns:
Returns the tags parent attribute tag

getValue

public int getValue()
Returns:
Returns the tag value

getBytes

public byte[] getBytes()
Specified by:
getBytes in interface Encodable
Returns:
Returns the data as bytes
See Also:
Encodable.getBytes()

getLength

public int getLength()
Specified by:
getLength in interface Encodable
Returns:
Returns the length of this data
See Also:
Encodable.getLength()

fromByte

public static EnumType fromByte(AttributeTag parent,
                                byte value)
Parse an object from its byte array representation

Parameters:
parent - Tag parent
bytes - Byte array representation


Copyright © 2007. All Rights Reserved.