ODRL2.0 Simple API
1.0
A simple API to manage simple ODRL2.0 expressions
|
Public Member Functions | |
Duty (String _uri) | |
Public Member Functions inherited from odrlmodel.Rule | |
Rule () | |
Rule (String _uri) | |
int | getKindOfRule () |
void | setKindOfRule (int _ikind) |
List< Action > | getActions () |
void | setActions (List< Action > _actions) |
List< Constraint > | getConstraints () |
void | setConstraints (List< Constraint > _constraints) |
void | addAction (Action a) |
void | addConstraint (Constraint a) |
void | setAssignee (Party _assignee) |
Party | getAssignee () |
void | setAssigner (Party _assigner) |
Party | getAssigner () |
String | toString () |
void | setTarget (String target1) |
Public Member Functions inherited from odrlmodel.MetadataObject | |
MetadataObject () | |
MetadataObject (String _uri) | |
MetadataObject (MetadataObject mo) | |
void | setURI (String _uri) |
String | getURI () |
boolean | isAnon () |
String | getComment () |
void | setComment (String _comment) |
String | getSeeAlso () |
String | getTitle () |
void | setTitle (String _title) |
String | getLabel (String lan) |
void | addLabel (String label) |
void | setLabel (String label, String lang) |
void | setLabel (String _label) |
String | toString () |
Additional Inherited Members | |
Public Attributes inherited from odrlmodel.Rule | |
List< Action > | actions = new ArrayList() |
List< Constraint > | constraints = new ArrayList() |
String | target ="" |
Static Public Attributes inherited from odrlmodel.Rule | |
static final int | RULE_PERMISSION = 0 |
static final int | RULE_PROHIBITION = 1 |
static final int | RULE_DUTY = 2 |
Protected Member Functions inherited from odrlmodel.Rule | |
String | getKindOfRuleString () |
Protected Attributes inherited from odrlmodel.Rule | |
Party | assignee =null |
Party | assigner = null |
This class represents an ODRL2.0 Duty The Duty entity indicates a requirement that MAY be fulfilled in return for being entitled to the referring Permission entity.
While implying different semantics, the Duty entity is similar to Permission in that it is an Action that can be undertaken. If a Permission refers to several Duty entities, all of them have to be fulfilled for the Permission to become valid. If several Permission entities refer to one Duty, then the Duty only has to be fulfilled once for all the Permission entities to become valid.
odrlmodel.Duty.Duty | ( | String | _uri | ) |
Creates a duty identified by the given URI.
_uri | URI of the duty |