org.objectweb.jonas_domain.xml
Class Location

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

public class Location
extends AbsElement

A location element is composed of a list of urls, where a url is the-string-representation-of-the-url

Author:
Adriana Danes, S. Ali Tokmen
See Also:
Serialized Form

Constructor Summary
Location()
          Constructor
 
Method Summary
 void addUrl(java.lang.String url)
          Add a url to the urlList.
 JLinkedList getUrlList()
           
 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

Location

public Location()
Constructor

Method Detail

getUrlList

public JLinkedList getUrlList()
Returns:
Returns the urlList.

addUrl

public void addUrl(java.lang.String url)
Add a url to the urlList.

Parameters:
url - URL to add.

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.