Modifier and Type | Field and Description |
---|---|
private I18nizableText |
_category |
private String |
_declaration |
private I18nizableText |
_description |
private String |
_id |
private I18nizableText |
_label |
Constructor and Description |
---|
Right(String id,
I18nizableText label,
I18nizableText description,
I18nizableText category,
String declaration)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
I18nizableText |
getCategory()
Returns the i18n category of this Right
|
String |
getDeclaration()
Returns the declaration of this Right
|
I18nizableText |
getDescription()
Returns the i18n description of this Right
|
String |
getId()
Returns the unique Id of this Right
|
I18nizableText |
getLabel()
Returns the i18n label of this Right
|
int |
hashCode() |
Map<String,Object> |
toJSON()
Represents this Right as JSON
|
void |
toSAX(ContentHandler ch)
Represents this Right as SAX events
|
private final I18nizableText _label
private final I18nizableText _description
private final I18nizableText _category
private final String _declaration
Right(String id, I18nizableText label, I18nizableText description, I18nizableText category, String declaration)
id
- the unique Id of this rightlabel
- the i18n label of this Rightdescription
- the i18n description of the usage of this rightcategory
- the i18n cateogry of the usage of this rightdeclaration
- the declaration source (for debug purposes)public String getId()
public I18nizableText getLabel()
public I18nizableText getDescription()
public I18nizableText getCategory()
public String getDeclaration()
public void toSAX(ContentHandler ch) throws SAXException
ch
- the ContentHandler to process SAX eventsSAXException
- if an error occurspublic Map<String,Object> toJSON()