Lizzy v1.1.1

christophedelory.rss.media
Class Credit

java.lang.Object
  extended by christophedelory.rss.media.Credit

public class Credit
extends Object

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.
Example:

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

Version:
$Revision: 92 $
Author:
Christophe Delory

Constructor Summary
Credit()
           
 
Method Summary
 String getRole()
          Returns the role the entity played.
 String getScheme()
          Returns the URI that identifies the role scheme.
 String getValue()
          Returns the credit itself.
 void setRole(String role)
          Initializes the role the entity played.
 void setScheme(String scheme)
          Initializes the URI that identifies the role scheme.
 void setValue(String value)
          Initializes the credit itself.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Credit

public Credit()
Method Detail

getValue

public String getValue()
Returns the credit itself.

Returns:
a credit value. May be null if not yet initialized.
See Also:
setValue(java.lang.String)

setValue

public void setValue(String value)
Initializes the credit itself.

Parameters:
value - a credit value. Shall not be null.
Throws:
NullPointerException - if value is null.
See Also:
getValue()

getScheme

public String getScheme()
Returns the URI that identifies the role scheme. If this attribute is not included, the default scheme is 'urn:ebu'. See: European Broadcasting Union Role Codes.

Returns:
the credit's scheme. May be null.
See Also:
setScheme(java.lang.String)

setScheme

public void setScheme(String scheme)
Initializes the URI that identifies the role scheme.

Parameters:
scheme - the credit's scheme. May be null.
See Also:
getScheme()

getRole

public String getRole()
Returns the role the entity played. Must be lowercase.
Example roles: Additional roles: European Broadcasting Union Role Codes.

Returns:
the entity role. May be null.
See Also:
setRole(java.lang.String)

setRole

public void setRole(String role)
Initializes the role the entity played.

Parameters:
role - the entity role. May be null.
See Also:
getRole()

© 2008-2009 Christophe Delory

Copyright © 2008-2009 Christophe Delory. All Rights Reserved.