org.objectweb.jonas_domain.xml
Class Domain

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

public class Domain
extends AbsDescriptionElement
implements TopLevelElement

This class defines the implementation of the domain

Author:
Adriana Danes, S. Ali Tokmen
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()
           
 java.lang.String getPassword()
           
 JLinkedList getServerList()
           
 java.lang.String getUsername()
           
 void setClusterDaemonList(JLinkedList clusterDaemonList)
           
 void setClusterList(JLinkedList clusterList)
           
 void setName(java.lang.String name)
           
 void setPassword(java.lang.String password)
           
 void setServerList(JLinkedList serverList)
           
 void setUsername(java.lang.String username)
           
 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.

getUsername

public final java.lang.String getUsername()
Returns:
Returns the default username of the domain.

setUsername

public final void setUsername(java.lang.String username)
Parameters:
username - The default username of the domain to set.

getPassword

public final java.lang.String getPassword()
Returns:
Returns the default password of the domain as encoded in the XML file.

setPassword

public final void setPassword(java.lang.String password)
Parameters:
password - The default password of the domain to set as encoded in the XML file.

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.