public class Restriction extends Object
<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 and Description |
|---|
Restriction() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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()Copyright © 2008–2017. All rights reserved.