org.objectweb.jonas_domain.xml
Class Domain

java.lang.Object
  extended byorg.objectweb.jonas_lib.deployment.xml.AbsElement
      extended byorg.objectweb.jonas_lib.deployment.xml.AbsDescriptionElement
          extended byorg.objectweb.jonas_domain.xml.Domain
All Implemented Interfaces:
DescriptionGroupXml, Element, java.io.Serializable, TopLevelElement

public class Domain
extends AbsDescriptionElement
implements TopLevelElement

This class defines the implementation of the domain

Author:
Adriana Danes
See Also:
Serialized Form

Field Summary
static java.lang.String DOMAIN_ELEMENT
          domain element XML header.
 
Constructor Summary
Domain()
          Constructor
 
Method Summary
 void addCluster(Cluster cluster)
          Add a new cluster element to this object
 void addClusterDaemon(ClusterDaemon clusterDaemon)
          Add a new cluster daemon element to this object
 void addServer(Server server)
          Add a new server element to this object
 JLinkedList getClusterDaemonList()
           
 JLinkedList getClusterList()
           
 java.lang.String getName()
           
 JLinkedList getServerList()
           
 void setClusterDaemonList(JLinkedList clusterDaemonList)
           
 void setClusterList(JLinkedList clusterList)
           
 void setName(java.lang.String name)
           
 void setServerList(JLinkedList serverList)
           
 java.lang.String toXML(int indent)
          Represents this element by it's XML description.
 
Methods inherited from class org.objectweb.jonas_lib.deployment.xml.AbsDescriptionElement
getDescription, getDisplayName, getIcon, setDescription, setDisplayName, setIcon, setLargeIcon, setLargeIcon, setSmallIcon, setSmallIcon
 
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
 

Field Detail

DOMAIN_ELEMENT

public static final java.lang.String DOMAIN_ELEMENT
domain element XML header.

Constructor Detail

Domain

public Domain()
Constructor

Method Detail

getName

public java.lang.String getName()
Returns:
Returns the name.

setName

public void setName(java.lang.String name)
Parameters:
name - The name to set.

addCluster

public void addCluster(Cluster cluster)
Add a new cluster element to this object

Parameters:
cluster - the Cluster object

addClusterDaemon

public void addClusterDaemon(ClusterDaemon clusterDaemon)
Add a new cluster daemon element to this object

Parameters:
clusterDaemon - the ClusterDaemon object

addServer

public void addServer(Server server)
Add a new server element to this object

Parameters:
server - the Server object

getClusterList

public JLinkedList getClusterList()
Returns:
Returns the clusterList.

setClusterList

public void setClusterList(JLinkedList clusterList)
Parameters:
clusterList - The clusterList to set.

setClusterDaemonList

public void setClusterDaemonList(JLinkedList clusterDaemonList)
Parameters:
clusterDaemonList - The clusterDaemonList to set.

getClusterDaemonList

public JLinkedList getClusterDaemonList()
Returns:
Returns the clusterDaemonList.

getServerList

public JLinkedList getServerList()
Returns:
Returns the serverList.

setServerList

public void setServerList(JLinkedList serverList)
Parameters:
serverList - The serverList to set.

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.