org.objectweb.jonas_lib.deployment.xml
Class JonasServiceRef

java.lang.Object
  extended byorg.objectweb.jonas_lib.deployment.xml.AbsElement
      extended byorg.objectweb.jonas_lib.deployment.xml.JonasServiceRef
All Implemented Interfaces:
Element, java.io.Serializable

public class JonasServiceRef
extends AbsElement

This class defines the implementation of the element jonas-service-ref.

Author:
Florent Benoit
See Also:
Serialized Form

Constructor Summary
JonasServiceRef()
          Constructor : build a new JonasServiceRef object
 
Method Summary
 void addJonasInitParam(JonasInitParam jonasInitParam)
          Add a parameter
 void addJonasPortComponentRef(JonasPortComponentRef jonasPortComponentRef)
          Add a parameter
 JLinkedList getJonasInitParamList()
           
 JLinkedList getJonasPortComponentRefList()
           
 java.lang.String getServiceRefName()
           
 void setServiceRefName(java.lang.String serviceRefName)
          Sets the 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

JonasServiceRef

public JonasServiceRef()
Constructor : build a new JonasServiceRef object

Method Detail

setServiceRefName

public void setServiceRefName(java.lang.String serviceRefName)
Sets the name

Parameters:
serviceRefName - the name to use

addJonasInitParam

public void addJonasInitParam(JonasInitParam jonasInitParam)
Add a parameter

Parameters:
jonasInitParam - the JonasInitParam object to add to our list

addJonasPortComponentRef

public void addJonasPortComponentRef(JonasPortComponentRef jonasPortComponentRef)
Add a parameter

Parameters:
jonasPortComponentRef - the JonasPortComponentRef object to add to our list

getServiceRefName

public java.lang.String getServiceRefName()
Returns:
the name of the service-ref

getJonasInitParamList

public JLinkedList getJonasInitParamList()
Returns:
the list of init parameters

getJonasPortComponentRefList

public JLinkedList getJonasPortComponentRefList()
Returns:
the list of jonas port component ref

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.