com.sun.syndication.feed.module.mediarss.types
Class Credit

java.lang.Object
  extended by com.sun.syndication.feed.module.mediarss.types.Credit
All Implemented Interfaces:
java.io.Serializable

public class Credit
extends java.lang.Object
implements java.io.Serializable

<media:credit>

Notable entity and the contribution to the creation of the media object. Current entities can include people, companies, locations, etc. Specific entities can have multiple roles, and several entities can have the same role. These should appear as distinct <media:credit> elements. It has 2 optional attributes.

        <media:credit role="producer" scheme="urn:ebu">entity name</media:credit>
 

role specifies the role the entity played. Must be lowercase. It is an optional attribute.

scheme is the URI that identifies the role scheme. It is an optional attribute. If this attribute is not included, the default scheme is 'urn:ebu'. See: European Broadcasting Union Role Codes.

Example roles:

        actor
        anchor person
        author
        choreographer
        composer
        conductor
        director
        editor
        graphic designer
        grip
        illustrator
        lyricist
        music arranger
        music group
        musician
        orchestra
        performer
        photographer
        producer
        reporter
        vocalist
 

Additional roles: European Broadcasting Union Role Codes

Author:
cooper
See Also:
Serialized Form

Field Summary
static java.lang.String SCHEME_EBU
          Scheme value for the EBU credits.
 
Constructor Summary
Credit(java.lang.String scheme, java.lang.String role, java.lang.String name)
          Creates a new instance of Credit
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getName()
          Person/organizations name
 java.lang.String getRole()
          Role name
 java.lang.String getScheme()
          Scheme used.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SCHEME_EBU

public static final java.lang.String SCHEME_EBU
Scheme value for the EBU credits.

See Also:
Constant Field Values
Constructor Detail

Credit

public Credit(java.lang.String scheme,
              java.lang.String role,
              java.lang.String name)
Creates a new instance of Credit

Parameters:
scheme - schem used
role - role name
name - persons name
Method Detail

getName

public java.lang.String getName()
Person/organizations name

Returns:
Person/organizations name

getRole

public java.lang.String getRole()
Role name

Returns:
Role name

getScheme

public java.lang.String getScheme()
Scheme used.

Returns:
Scheme used.

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2006-2009. All Rights Reserved.