Modifier and Type | Field and Description |
---|---|
private String |
_context |
private String |
_id |
private String |
_label |
Constructor and Description |
---|
Profile(String id,
String label)
Constructor.
|
Profile(String id,
String label,
String context)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object another) |
String |
getContext()
Returns the context of this profile
|
String |
getId()
Returns the unique Id of this profile
|
String |
getLabel()
Returns the name of this profile
|
int |
hashCode() |
void |
setContext(String context)
Set the context of profile
|
void |
setId(String id)
Set the id of profile
|
void |
setLabel(String label)
Set the label of profile
|
Map<String,Object> |
toJSON()
Get the JSON representation of this Profile
|
public Profile(String id, String label)
id
- the unique id of this profilelabel
- the label of this profilepublic String getId()
public String getLabel()
public void setLabel(String label)
label
- The label to setpublic String getContext()
public void setContext(String context)
context
- The context to setpublic Map<String,Object> toJSON()