org.ow2.jonas.deployment.ear.xml
Class Application

java.lang.Object
  extended by org.ow2.jonas.deployment.common.xml.AbsElement
      extended by org.ow2.jonas.deployment.common.xml.AbsDescriptionElement
          extended by org.ow2.jonas.deployment.ear.xml.Application
All Implemented Interfaces:
Serializable, DescriptionGroupXml, Element, TopLevelElement

public class Application
extends AbsDescriptionElement
implements TopLevelElement, DescriptionGroupXml

This class defines the implementation of the element application

Author:
JOnAS team
See Also:
Serialized Form

Field Summary
static String APPLICATION_ELEMENT
          application element XML header
 
Constructor Summary
Application()
          Constructor
 
Method Summary
 void addModule(Module module)
          Add a new module element to this object
 void addSecurityRole(SecurityRole securityRole)
          Add a new security-role element to this object
 JLinkedList getModuleList()
          Gets the module
 JLinkedList getSecurityRoleList()
          Gets the security-role
 void setModuleList(JLinkedList moduleList)
          Set the module
 void setSecurityRoleList(JLinkedList securityRoleList)
          Set the security-role
 String toXML(int indent)
          Represents this element by it's XML description.
 
Methods inherited from class org.ow2.jonas.deployment.common.xml.AbsDescriptionElement
getDescription, getDisplayName, getIcon, setDescription, setDisplayName, setIcon, setLargeIcon, setLargeIcon, setSmallIcon, setSmallIcon
 
Methods inherited from class org.ow2.jonas.deployment.common.xml.AbsElement
indent, toString, toXML, xmlAttribute, xmlElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ow2.jonas.deployment.common.xml.DescriptionGroupXml
getDescription, getDisplayName, getIcon
 

Field Detail

APPLICATION_ELEMENT

public static final String APPLICATION_ELEMENT
application element XML header

Constructor Detail

Application

public Application()
Constructor

Method Detail

getModuleList

public JLinkedList getModuleList()
Gets the module

Returns:
the module

setModuleList

public void setModuleList(JLinkedList moduleList)
Set the module

Parameters:
moduleList - module

addModule

public void addModule(Module module)
Add a new module element to this object

Parameters:
module - the moduleobject

getSecurityRoleList

public JLinkedList getSecurityRoleList()
Gets the security-role

Returns:
the security-role

setSecurityRoleList

public void setSecurityRoleList(JLinkedList securityRoleList)
Set the security-role

Parameters:
securityRoleList - securityRole

addSecurityRole

public void addSecurityRole(SecurityRole securityRole)
Add a new security-role element to this object

Parameters:
securityRole - the securityRoleobject

toXML

public 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.


Copyright © 2010 OW2 Consortium. All Rights Reserved.