All Downloads are FREE. Search and download functionalities are using the official Maven repository.

chameleon.rss.media.Credit Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2008, Christophe Delory
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 *   * Redistributions of source code must retain the above copyright
 *     notice, this list of conditions and the following disclaimer.
 *   * Redistributions in binary form must reproduce the above copyright
 *     notice, this list of conditions and the following disclaimer in the
 *     documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY CHRISTOPHE DELORY ``AS IS'' AND ANY
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED. IN NO EVENT SHALL CHRISTOPHE DELORY BE LIABLE FOR ANY
 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
package chameleon.rss.media;

/**
 * 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>
 * 
* @author Christophe Delory * @version $Revision: 92 $ * @castor.class xml="media:credit" ns-uri="http://search.yahoo.com/mrss/" ns-prefix="media" */ public class Credit { /** * The URI that identifies the role scheme. */ private String _scheme = null; /** * Specifies the role the entity played. */ private String _role = null; /** * The credit itself. */ private String _value = null; /** * Returns the credit itself. * @return a credit value. May be null if not yet initialized. * @see #setValue * @castor.field * get-method="getValue" * set-method="setValue" * required="true" * @castor.field-xml * node="text" */ public String getValue() { return _value; } /** * Initializes the credit itself. * @param value a credit value. Shall not be null. * @throws NullPointerException if value is null. * @see #getValue */ public void setValue(final String value) { _value = value.trim(); // Throws NullPointerException if value is null. } /** * 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. * @return the credit's scheme. May be null. * @see #setScheme * @castor.field * get-method="getScheme" * set-method="setScheme" * @castor.field-xml * name="scheme" * node="attribute" */ public String getScheme() { return _scheme; } /** * Initializes the URI that identifies the role scheme. * @param scheme the credit's scheme. May be null. * @see #getScheme */ public void setScheme(final String scheme) { _scheme = scheme; } /** * Returns the role the entity played. * Must be lowercase. *
* 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. * @return the entity role. May be null. * @see #setRole * @castor.field * get-method="getRole" * set-method="setRole" * @castor.field-xml * name="role" * node="attribute" */ public String getRole() { return _role; } /** * Initializes the role the entity played. * @param role the entity role. May be null. * @see #getRole */ public void setRole(final String role) { _role = role; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy