roles
Class QualifiedRoleType
java.lang.Object
|
+--roles.RoleType
|
+--roles.QualifiedRoleType
- public abstract class QualifiedRoleType
- extends RoleType
This class is the root for any class representing
a particular qualified role type. An instance r1 of this class can be
the role of a role playing object o, if there exists no other instance of this class
r2 referencing o as the role player and having the same qualifier as r1.
If this constraint is violated, a
DuplicateRoleException is thrown by the constructor.
Field Summary |
protected java.lang.Object |
qualifier
|
Constructor Summary |
QualifiedRoleType(RoleProtocol ancestor,
java.lang.Object qualifier)
This constructor establishes the roleOf relationship
between the newly created role object and the role player and registers
a particular object as the qualifier. |
Method Summary |
java.lang.Object |
getQualifier()
Returns the qualifying object. |
Methods inherited from class roles.RoleType |
abandon,
allAs,
as,
as,
cancelRole,
existsAs,
existsAs,
existsInheritance,
existsSubclassInheritance,
getRoleOf,
getRoleTypeName,
getRoot,
isEntityEquivalentWith,
nullify,
recordNewQualifiedRole,
recordNewRole |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
qualifier
protected java.lang.Object qualifier
QualifiedRoleType
public QualifiedRoleType(RoleProtocol ancestor,
java.lang.Object qualifier)
throws DuplicateRoleException
- This constructor establishes the roleOf relationship
between the newly created role object and the role player and registers
a particular object as the qualifier. A DuplicateRoleException
is thrown if another role object of this role type having the same
qualifier already
exists for the ancestor.
- Parameters:
ancestor
- represents the role player; this parameter may be
either an instance of a subclass of ObjectWithRoles
or an instance of a subclass of RoleType (both classes
implement RoleProtocol)qualifier
- represents the qualifying object; this parameter ist used
to uniquely identify several qualified role objects for the same role playing object
getQualifier
public java.lang.Object getQualifier()
- Returns the qualifying object.