org.objectweb.jonas_ejb.deployment.xml
Class EjbRelation

java.lang.Object
  extended by org.objectweb.jonas_lib.deployment.xml.AbsElement
      extended by org.objectweb.jonas_ejb.deployment.xml.EjbRelation
All Implemented Interfaces:
java.io.Serializable, Element

public class EjbRelation
extends AbsElement

This class defines the implementation of the element ejb-relation

Author:
JOnAS team
See Also:
Serialized Form

Constructor Summary
EjbRelation()
          Constructor
 
Method Summary
 void addEjbRelationshipRole(EjbRelationshipRole ejbRelationshipRole)
          Add a new ejb-relationship-role element to this object
 java.lang.String getDescription()
          Gets the description
 java.lang.String getEjbRelationName()
          Gets the ejb-relation-name
 EjbRelationshipRole getEjbRelationshipRole()
          Gets the first ejb-relationship-role
 EjbRelationshipRole getEjbRelationshipRole2()
          Gets the second ejb-relationship-role
 JLinkedList getEjbRelationshipRoleList()
          Gets the ejb-relationship-role list
 void setDescription(java.lang.String description)
          Set the description
 void setEjbRelationName(java.lang.String ejbRelationName)
          Set the ejb-relation-name
 java.lang.String toXML(int indent)
          Represents this element by it's XML description.
 
Methods inherited from class org.objectweb.jonas_lib.deployment.xml.AbsElement
indent, toString, toXML, xmlAttribute, xmlElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EjbRelation

public EjbRelation()
Constructor

Method Detail

getDescription

public java.lang.String getDescription()
Gets the description

Returns:
the description

setDescription

public void setDescription(java.lang.String description)
Set the description

Parameters:
description - description

getEjbRelationName

public java.lang.String getEjbRelationName()
Gets the ejb-relation-name

Returns:
the ejb-relation-name

setEjbRelationName

public void setEjbRelationName(java.lang.String ejbRelationName)
Set the ejb-relation-name

Parameters:
ejbRelationName - ejbRelationName

addEjbRelationshipRole

public void addEjbRelationshipRole(EjbRelationshipRole ejbRelationshipRole)
Add a new ejb-relationship-role element to this object

Parameters:
ejbRelationshipRole - the ejb-relationship-role object

getEjbRelationshipRoleList

public JLinkedList getEjbRelationshipRoleList()
Gets the ejb-relationship-role list

Returns:
the ejb-relationship-role list

getEjbRelationshipRole

public EjbRelationshipRole getEjbRelationshipRole()
Gets the first ejb-relationship-role

Returns:
the ejb-relationship-role

getEjbRelationshipRole2

public EjbRelationshipRole getEjbRelationshipRole2()
Gets the second ejb-relationship-role

Returns:
the ejb-relationship-role

toXML

public java.lang.String toXML(int indent)
Represents this element by it's XML description.

Specified by:
toXML in interface Element
Specified by:
toXML in class AbsElement
Parameters:
indent - use this indent for prexifing XML representation.
Returns:
the XML description of this object.