vdoclet.ejb
Class EjbRelation

java.lang.Object
  |
  +--vdoclet.ejb.EjbRelation

public class EjbRelation
extends Object

A relationship between two EJBs


Constructor Summary
EjbRelation(EjbRelationRole roleA, EjbRelationRole roleB)
          Construct a new EjbRelation.
 
Method Summary
 String getName()
          Get the canonical name of this relationship
 EjbRelationRole getRole(String name)
          Find a role by name
 Collection getRoles()
          Get the roles
static String makeName(String nameA, String nameB)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EjbRelation

public EjbRelation(EjbRelationRole roleA,
                   EjbRelationRole roleB)
Construct a new EjbRelation.

Parameters:
roleA - first role
roleB - second role
Method Detail

makeName

public static String makeName(String nameA,
                              String nameB)

getName

public String getName()
Get the canonical name of this relationship


getRoles

public Collection getRoles()
Get the roles


getRole

public EjbRelationRole getRole(String name)
Find a role by name

Parameters:
name - role-name