|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.apelon.dts.client.attribute.RoleGroup
public class RoleGroup
RoleGroup
represents a specific grouping of roles. This class
facilitates the creation and modification of a single role grouping.
Copyright: Copyright (c) 2004
Company: Apelon, Inc.
Constructor Summary | |
---|---|
RoleGroup(int groupNum,
int conceptNamespaceId)
This object represents a group of roles. |
Method Summary | |
---|---|
void |
add(DTSRole r)
Adds a role to the role group. |
Object |
clone()
Deep copy of role group. |
int |
getConceptNamespaceId()
Returns the concept's Namespace ID. |
int |
getGroupNum()
Returns the RoleGroup number. |
int |
getNumberOfRoles()
Returns number of roles in the group. |
Iterator |
iterator()
Used to iterate over all the roles in this RoleGroup . |
static int |
minimumSize()
The minimum size of any RoleGroup . |
void |
remove(DTSRole r)
Removes a role from the group. |
void |
setGroupNum(int newGroupNum)
Sets the group number for this RoleGroup . |
Vector |
unGroup()
Ungroups roles. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RoleGroup(int groupNum, int conceptNamespaceId)
Method Detail |
---|
public static final int minimumSize()
RoleGroup
.
DTSRole
s in a group.public void add(DTSRole r)
r
- role to addpublic Object clone()
clone
in class Object
public int getGroupNum()
RoleGroup
number.
public int getConceptNamespaceId()
Namespace
ID. When dealing with Ontylog
Extension namespaces, the role values may be in a different namespace from
the concept's namespace.
Namespace
ID.public int getNumberOfRoles()
public Iterator iterator()
RoleGroup
.
public void remove(DTSRole r)
public void setGroupNum(int newGroupNum)
RoleGroup
.
newGroupNum
- intpublic Vector unGroup()
Vector
of the ungrouped
roles and each role's group reference is set to the role's group number.
This is used to keep track of the last group a particular role belonged to.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |