1 7 package org.jboss.ejb3.dd; 8 9 import java.util.ArrayList ; 10 import java.util.List ; 11 12 19 public class EjbRelation 20 { 21 22 private String ejbRelationName = null; 23 24 private List ejbRelationshipRoles = new ArrayList (); 25 26 public String getEjbRelationName() 27 { 28 return ejbRelationName; 29 } 30 31 public void setEjbRelationName(String ejbRelationName) 32 { 33 this.ejbRelationName = ejbRelationName; 34 } 35 36 public List getEjbRelationshipRoles() 37 { 38 return ejbRelationshipRoles; 39 } 40 41 public void setEjbRelationshipRoles(List ejbRelationshipRoles) 42 { 43 this.ejbRelationshipRoles = ejbRelationshipRoles; 44 } 45 46 public void addEjbRelationshipRole(EjbRelationshipRole role) 47 { 48 ejbRelationshipRoles.add(role); 49 } 50 51 public String toString() 52 { 53 StringBuffer sb = new StringBuffer (100); 54 sb.append("["); 55 sb.append("ejbRelationName=").append(ejbRelationName); 56 sb.append("]"); 57 return sb.toString(); 58 } 59 } 60 | Popular Tags |