A C D E G I N O P Q R S

A

abandon() - Method in class roles.RoleType
Abandons the roleOf relationship between the receiver and its role player.
allAs(String) - Method in class roles.ObjectWithRoles
Returns an enumeration of qualified role objects whose class is the qualified role type with name qualifiedRoleTypeName.
allAs(String) - Method in interface roles.RoleProtocol
Returns an enumeration of qualified role objects whose class is the qualified role type with name qualifiedRoleTypeName.
allAs(String) - Method in class roles.RoleType
Returns an enumeration of qualified role objects whose class is the qualified role type with name qualifiedRoleTypeName.
as(String) - Method in class roles.ObjectWithRoles
Returns an (unqualified) role object whose class is the role type with name roleTypeName.
as(String) - Method in interface roles.RoleProtocol
Returns an (unqualified) role object whose class is the role type with name roleTypeName.
as(String) - Method in class roles.RoleType
Returns an (unqualified) role object whose class is the role type with name roleTypeName.
as(String, Object) - Method in class roles.ObjectWithRoles
Returns an instance of the qualified role type with name qualifiedRoleTypeName whose qualifier is identical with qualifyingObject.
as(String, Object) - Method in interface roles.RoleProtocol
Returns an instance of the qualified role type with name qualifiedRoleTypeName whose qualifier is identical with qualifyingObject.
as(String, Object) - Method in class roles.RoleType
Returns an instance of the qualified role type with name qualifiedRoleTypeName whose qualifier is identical with qualifyingObject.

C

cancelQualifiedRole(QualifiedRoleType) - Method in class roles.ObjectWithRoles
Deregisters a qualified role that the receiver is currently playing.
cancelRole(RoleType) - Method in class roles.ObjectWithRoles
Deregisters an (unqualified) role that the receiver is currently playing.
cancelRole(RoleType) - Method in class roles.RoleType
Removes a role from the receiver's subroles and informs the root to cancel that role.

D

DuplicateRoleException - exception roles.DuplicateRoleException.
This exception class is used to alert a situation, in which a role player should take on a particular role although already playing that role.
DuplicateRoleException(String) - Constructor for class roles.DuplicateRoleException
 

E

existsAs(String) - Method in class roles.ObjectWithRoles
Examines whether an instance of a particular role type has been registered as a role of the receiver.
existsAs(String) - Method in interface roles.RoleProtocol
Examines whether an instance of the role type with name roleTypeName has been registered by the receiver.
existsAs(String) - Method in class roles.RoleType
Examines whether an instance of the role type with name roleTypeName has been registered by the receiver.
existsAs(String, Object) - Method in class roles.ObjectWithRoles
Examines whether an instance of the qualified role type with name qualifiedRoleTypeName has been registered by the receiver using qualifier qualifyingObj.
existsAs(String, Object) - Method in interface roles.RoleProtocol
Examines whether an instance of the qualified role type with name qualifiedRoleTypeName has been registered by the receiver using qualifier qualifyingObj.
existsAs(String, Object) - Method in class roles.RoleType
Examines whether an instance of a particular qualified role type has been registered by the receiver using a particular qualifier
existsInheritance(String, String) - Static method in class roles.RoleType
Examines whether there exists any kind of inheritance relationship between two classes with names className1 and className2.
existsSubclassInheritance(String, String) - Static method in class roles.RoleType
Examines whether class with name superClassName is a superclass of class with name subClassName.

G

getQualifier() - Method in class roles.QualifiedRoleType
Returns the qualifying object.
getRegisteredQualifiedRoleTypeNames() - Method in class roles.ObjectWithRoles
Returns an enumeration of qualified role type names, of which instances are currently registered with the receiver.
getRegisteredRoleTypeNames() - Method in class roles.ObjectWithRoles
Returns an enumeration of (unqualified) role type names, of which instances are currently registered with the receiver.
getRoleOf() - Method in class roles.RoleType
Returns the ancestor of this role object (may be an ObjectWithRoles or another RoleType).
getRolePlayer() - Method in class roles.ProxyObjectWithRoles
Returns the role player
getRoleTypeName() - Method in class roles.RoleType
Returns the fully qualified Java class name as the role type name.
getRoot() - Method in class roles.ObjectWithRoles
Returns the root (=this) of the role hierarchy.
getRoot() - Method in interface roles.RoleProtocol
Returns the root of the role hierarchy (must be an ObjectWithRoles).
getRoot() - Method in class roles.RoleType
Returns the root of the role hierarchy (must be an ObjectWithRoles).

I

isEntityEquivalentWith(RoleProtocol) - Method in class roles.ObjectWithRoles
Examines whether the receiver represents the same role player as another object.
isEntityEquivalentWith(RoleProtocol) - Method in interface roles.RoleProtocol
Examines whether the receiver and anotherObject represent the same role player.
isEntityEquivalentWith(RoleProtocol) - Method in class roles.RoleType
Examines whether the receiver and anotherObject represent the same role player.

N

NoSuchRoleException - exception roles.NoSuchRoleException.
This exception class is used to alert a situation, in which a role player should switch to a role that it does not currently play.
NoSuchRoleException(String) - Constructor for class roles.NoSuchRoleException
 
nullify() - Method in class roles.RoleType
Unsets the references to the root, the ancestor, and all subroles.

O

ObjectWithRoles - class roles.ObjectWithRoles.
This class is the root for entity classes, which should have the ability to play different independent roles.
ObjectWithRoles() - Constructor for class roles.ObjectWithRoles
 

P

ProxyObjectWithRoles - class roles.ProxyObjectWithRoles.
This class should be used by a framework class that is the root of a role hierarchy but cannot inherit from ObjectWithRoles.
ProxyObjectWithRoles() - Constructor for class roles.ProxyObjectWithRoles
It is forbidden to instantiate this class without specifying the real role player.
ProxyObjectWithRoles(Object) - Constructor for class roles.ProxyObjectWithRoles
This constructor establishes the proxy relationship between the proxy and the real role player.

Q

qualifiedRoles - Variable in class roles.ObjectWithRoles
Contains collections of qualified role objects identified by their role type name.
QualifiedRoleType - class roles.QualifiedRoleType.
This class is the root for any class representing a particular qualified role type.
QualifiedRoleType(RoleProtocol, Object) - Constructor for class roles.QualifiedRoleType
This constructor establishes the roleOf relationship between the newly created role object and the role player and registers a particular object as the qualifier.
qualifier - Variable in class roles.QualifiedRoleType
 

R

recordNewQualifiedRole(QualifiedRoleType) - Method in class roles.ObjectWithRoles
Registers a new qualified role that the receiver should play.
recordNewQualifiedRole(QualifiedRoleType) - Method in class roles.RoleType
Adds a newly created qualified role object to the vector representing the receiver's subroles.
recordNewRole(RoleType) - Method in class roles.ObjectWithRoles
Registers a new (unqualified) role that the receiver's should play.
recordNewRole(RoleType) - Method in class roles.RoleType
Adds a newly created role object to the vector representing the receiver's subroles.
RoleException - exception roles.RoleException.
This exception class is used to alert role type errors.
RoleException(String) - Constructor for class roles.RoleException
 
roleOf - Variable in class roles.RoleType
References the role player.
rolePlayer - Variable in class roles.ProxyObjectWithRoles
Represents the instance of a framework class, for which an instance of this class acts as the proxy.
RoleProtocol - interface roles.RoleProtocol.
This interface defines the behavior for managing roles (i.e., switching roles, checking on role existence, and checking on entity equivalence), which is implemented by classes ObjectWithRoles and RoleType.
roles - Variable in class roles.ObjectWithRoles
Contains (unqualified) role objects indentified by their role type name.
RoleType - class roles.RoleType.
This class is the root for any class representing a particular (unqualified) role type.
RoleType() - Constructor for class roles.RoleType
 
RoleType(RoleProtocol) - Constructor for class roles.RoleType
This constructor establishes the roleOf relationship between the newly created role object and the role player.
root - Variable in class roles.RoleType
References the root of the role hierarchy.

S

subroles - Variable in class roles.RoleType
Represents all role objects that refer to this object by their roleOf instance variable.

A C D E G I N O P Q R S