|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttico.rules.TUser
public class TUser
The TUser
object stores all features of an user, its name, and
a list of attributes that represents its limitations.
Constructor Summary | |
---|---|
TUser()
Creates a new empty TUser with no initial name . |
|
TUser(java.lang.String name)
Creates a new empty TUser with the specified initial
name . |
Method Summary | |
---|---|
void |
addAttribute(TAttribute attribute)
Add an attribute to the user. |
TAttribute |
getAttribute(int index)
Returs the user attribute in the specified index . |
TAttribute |
getAttribute(java.lang.String name)
Returs the user attribute with the specified name . |
int |
getAttributeCount()
Returns the number of attributes contained by the user |
java.util.List |
getAttributeList()
Returs the user attribute list. |
java.lang.String |
getName()
Returns the user name . |
void |
removeAttribute(TAttribute attribute)
Removes the specified attribute from the user. |
void |
setName(java.lang.String name)
Sets the user name . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TUser()
TUser
with no initial name
.
public TUser(java.lang.String name)
TUser
with the specified initial
name
.
name
- The specified initial name
Method Detail |
---|
public java.lang.String getName()
name
.
name
public void setName(java.lang.String name)
name
.
name
- The user name
to setpublic void addAttribute(TAttribute attribute)
attribute
to the user.
attribute
- The attribute
to addpublic void removeAttribute(TAttribute attribute)
attribute
from the user.
attribute
- The attribute
to deletepublic TAttribute getAttribute(java.lang.String name)
name
.
name
- The specified attribute name
name
. If the
user does not contain any attribute with that name, returns nullpublic TAttribute getAttribute(int index)
index
.
index
- The specified attribute index
index
public int getAttributeCount()
public java.util.List getAttributeList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |