Lizzy v1.1.1

christophedelory.rss.media
Class Rating

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

public class Rating
extends Object

This allows the permissible audience to be declared. If this element is not included, it assumes that no restrictions are necessary.
Examples:

 <media:rating scheme="urn:simple">adult</media:rating>
 <media:rating scheme="urn:icra">r (cz 1 lz 1 nz 1 oz 1 vz 1)</media:rating>
 <media:rating scheme="urn:mpaa">pg</media:rating>
 <media:rating scheme="urn:v-chip">tv-y7-fv</media:rating>
 

Version:
$Revision: 92 $
Author:
Christophe Delory

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

Constructor Detail

Rating

public Rating()
Method Detail

getValue

public String getValue()
Returns the rating value itself.

Returns:
the rating's value. May be null if not yet initialized.
See Also:
setValue(java.lang.String)

setValue

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

Parameters:
value - the rating's value. Shall not be null.
Throws:
NullPointerException - if value is null.
See Also:
getValue()

getScheme

public String getScheme()
Returns the URI that identifies the rating scheme. If this attribute is not included, the default scheme is urn:simple (adult | nonadult).

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

setScheme

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

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

© 2008-2009 Christophe Delory

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