public class Role extends Object
Java class for role complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="role"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/> <element name="description" type="{http://www.w3.org/2001/XMLSchema}string"/> <element name="permission" type="{http://www.appng.org/schema/application}permissionRef" maxOccurs="unbounded" minOccurs="0"/> </sequence> <attribute name="admin-role" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> </restriction> </complexContent> </complexType>
Modifier and Type | Field and Description |
---|---|
protected Boolean |
adminRole |
protected String |
description |
protected String |
name |
protected List<PermissionRef> |
permission |
Constructor and Description |
---|
Role() |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Gets the value of the description property.
|
String |
getName()
Gets the value of the name property.
|
List<PermissionRef> |
getPermission()
Gets the value of the permission property.
|
boolean |
isAdminRole()
Gets the value of the adminRole property.
|
void |
setAdminRole(Boolean value)
Sets the value of the adminRole property.
|
void |
setDescription(String value)
Sets the value of the description property.
|
void |
setName(String value)
Sets the value of the name property.
|
protected String name
protected String description
protected List<PermissionRef> permission
protected Boolean adminRole
public String getName()
String
public void setName(String value)
value
- allowed object is
String
public String getDescription()
String
public void setDescription(String value)
value
- allowed object is
String
public List<PermissionRef> getPermission()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set
method for the permission property.
For example, to add a new item, do as follows:
getPermission().add(newItem);
Objects of the following type(s) are allowed in the list
PermissionRef
public boolean isAdminRole()
Boolean
Copyright © 2011–2020 aiticon GmbH. All rights reserved.