com.adobe.mediacore
Class MediaPlayerNotification

java.lang.Object
  extended by com.adobe.mediacore.MediaPlayerNotification
Direct Known Subclasses:
MediaPlayerNotification.Error, MediaPlayerNotification.Info, MediaPlayerNotification.Warning

public abstract class MediaPlayerNotification
extends Object


Nested Class Summary
static class MediaPlayerNotification.EntryType
           
static class MediaPlayerNotification.Error
          Describes an error notification.
static class MediaPlayerNotification.ErrorCode
          Enumeration with all the error notification codes.
static class MediaPlayerNotification.Info
          Describes a informational notification.
static class MediaPlayerNotification.InfoCode
          Enumeration with all the informational notification codes.
static interface MediaPlayerNotification.NotificationCode
          Generic interface describing a notification.
static class MediaPlayerNotification.Warning
          Describes a warning notification.
static class MediaPlayerNotification.WarningCode
          Enumeration with all the warning notification codes.
 
Field Summary
protected  MediaPlayerNotification.NotificationCode _code
           
protected  String _description
           
protected  MediaPlayerNotification _inner
           
protected  Metadata _metadata
           
protected  MediaPlayerNotification.EntryType _type
           
 
Constructor Summary
MediaPlayerNotification()
           
 
Method Summary
static MediaPlayerNotification.Error createErrorNotification(MediaPlayerNotification.ErrorCode code, String description)
          Factory method method
static MediaPlayerNotification.Info createInfoNotification(MediaPlayerNotification.InfoCode code, String description)
          Factory method method
static MediaPlayerNotification.Warning createWarningNotification(MediaPlayerNotification.WarningCode code, String description)
          Factory method method
 MediaPlayerNotification.NotificationCode getCode()
          Getter method
 String getDescription()
          Getter method
 MediaPlayerNotification getInnerNotification()
          Getter method
 Metadata getMetadata()
          Getter method
 MediaPlayerNotification.EntryType getType()
          Getter method
 void setInnerNotification(MediaPlayerNotification sessionEntry)
          Setter method
 void setMetadata(Metadata userInfo)
          Setter method
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_type

protected MediaPlayerNotification.EntryType _type

_code

protected MediaPlayerNotification.NotificationCode _code

_description

protected String _description

_inner

protected MediaPlayerNotification _inner

_metadata

protected Metadata _metadata
Constructor Detail

MediaPlayerNotification

public MediaPlayerNotification()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getType

public MediaPlayerNotification.EntryType getType()
Getter method

Returns:
the type of the notification object.

getCode

public MediaPlayerNotification.NotificationCode getCode()
Getter method

Returns:
the code associated to the notification object.

getDescription

public String getDescription()
Getter method

Returns:
a human-readable string containing a short description of the notification object.

getMetadata

public Metadata getMetadata()
Getter method

Returns:
the metadata information associated to the notification object.

setMetadata

public void setMetadata(Metadata userInfo)
Setter method

Parameters:
userInfo - the metadata information that gets associated to this notification object.

getInnerNotification

public MediaPlayerNotification getInnerNotification()
Getter method

Returns:
the inner notification object attached to this notification object.

setInnerNotification

public void setInnerNotification(MediaPlayerNotification sessionEntry)
Setter method

Parameters:
sessionEntry - the inner notification object that gets associated to this notification object.

createInfoNotification

public static MediaPlayerNotification.Info createInfoNotification(MediaPlayerNotification.InfoCode code,
                                                                  String description)
Factory method method

Returns:
a information notification object

createWarningNotification

public static MediaPlayerNotification.Warning createWarningNotification(MediaPlayerNotification.WarningCode code,
                                                                        String description)
Factory method method

Returns:
a warning notification object

createErrorNotification

public static MediaPlayerNotification.Error createErrorNotification(MediaPlayerNotification.ErrorCode code,
                                                                    String description)
Factory method method

Returns:
an error notification object