public class Role
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
java.lang.String |
name |
java.util.List<RoleAttribute> |
roleAttribute |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(java.lang.String name,
java.lang.String value) |
void |
check(boolean deep,
java.lang.String errorContext)
Checks this Role.
|
static Role |
fromString(java.lang.String s)
String representation of this Role.
|
java.lang.String |
getName()
$CONSTRAINTS
|
java.util.List<RoleAttribute> |
getRoleAttribute()
-
|
java.util.Map<java.lang.String,RoleAttribute> |
getRoleAttributeAsMap()
Get the map of RoleAttribute, indexed by name
|
RoleAttribute |
getRoleAttributeByName(java.lang.String _lookup)
Get the RoleAttribute for which the name matches _lookup
|
Role |
makeCopy()
Creates and returns a deep copy of this Role.
|
static Role |
readFrom(java.io.InputStream is)
Read this Role from an XML fragment.
|
boolean |
removeRoleAttributeByName(java.lang.String _lookup)
Removes the RoleAttribute for which the name matches _lookup
|
void |
setName(java.lang.String name)
$CONSTRAINTS
|
java.lang.String |
toString()
String representation of this Role.
|
Role |
withName(java.lang.String name) |
Role |
withRoleAttribute(java.util.Collection<RoleAttribute> __values) |
Role |
withRoleAttribute(RoleAttribute... __values)
-
|
void |
writeTo(java.io.OutputStream os)
Write this Role as an XML fragment
|
public java.lang.String name
public java.util.List<RoleAttribute> roleAttribute
public Role()
public Role(Role o)
public void setName(java.lang.String name)
public java.lang.String getName()
public Role withName(java.lang.String name)
public java.util.List<RoleAttribute> getRoleAttribute()
public RoleAttribute getRoleAttributeByName(java.lang.String _lookup)
public java.util.Map<java.lang.String,RoleAttribute> getRoleAttributeAsMap()
public boolean removeRoleAttributeByName(java.lang.String _lookup)
public Role withRoleAttribute(RoleAttribute... __values)
public Role withRoleAttribute(java.util.Collection<RoleAttribute> __values)
public Role makeCopy()
public static Role readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static Role fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
public void addAttribute(java.lang.String name, java.lang.String value)
Copyright © 2021 Dassault Systèmes, All Rights Reserved.