|
Lizzy v1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object christophedelory.rss.media.Restriction
public class Restriction
Allows restrictions to be placed on the aggregator rendering the media in the feed.
Currently, restrictions are based on distributor (uri) and country codes.
This element is purely informational and no obligation can be assumed or implied.
Only one media restriction element of the same type can be applied to a media object - all others will be ignored.
Entities in this element should be space separated.
To allow the producer to explicitly declare his/her intentions, two literals are reserved: 'all', 'none'.
These literals can only be used once.
Example:
<media:restriction relationship="allow" type="country">au us</media:restriction>Note: if the restriction element is empty and the type of relationship is "allow", it is assumed that the empty list means "allow nobody" and the media should not be syndicated.
Constructor Summary | |
---|---|
Restriction()
|
Method Summary | |
---|---|
String |
getRelationship()
Returns the type of relationship that the restriction represents (allow | deny). |
String |
getType()
Returns the type of restriction (country | uri) that the media can be syndicated. |
String |
getValue()
Returns the restriction itself. |
void |
setRelationship(String relationship)
Initializes the type of relationship that the restriction represents (allow | deny). |
void |
setType(String type)
Initializes the type of restriction (country | uri) that the media can be syndicated. |
void |
setValue(String value)
Initializes the restriction itself. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Restriction()
Method Detail |
---|
public String getValue()
null
.setValue(java.lang.String)
public void setValue(String value)
value
- the restriction. May be null
.getValue()
public String getType()
null
.setType(java.lang.String)
public void setType(String type)
type
- the type of restriction. May be null
.getType()
public String getRelationship()
null
if not yet initialized.setRelationship(java.lang.String)
public void setRelationship(String relationship)
relationship
- the relationship type. Shall not be null
.
NullPointerException
- if relationship
is null
.getRelationship()
|
© 2008-2009 Christophe Delory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |