org.objectweb.jonas_lib.genbase.utils.XMLUtils Class Reference

List of all members.

Static Public Member Functions

Document newDocument (InputStream is, String name, boolean isDTDsAllowed) throws ParserConfigurationException, SAXException, IOException, NoJ2EEWebservicesException
Element getBeanElement (Element base, String bName)
Element getServletElement (Element base, String sName)
Element getJonasServiceRef (Element base, String srName)
void cleanDummyApplication (Document doc)
void addEjb (Document app, Archive ejbjar)
void addClient (Document app, Archive client)
void addWebApp (Document app, Archive webapp, String ctx)
Document newJonasClient ()
Document newJonasWeb ()

Detailed Description

XML Utils Class. Holds methods for easier DOM parsing, XML modifications, ...
Author:
Guillaume Sauthier

Definition at line 65 of file XMLUtils.java.


Member Function Documentation

void org.objectweb.jonas_lib.genbase.utils.XMLUtils.addClient Document  app,
Archive  client
[static]
 

Add a client module in an application Document

Parameters:
app application.xml Document
client Client archive

Definition at line 351 of file XMLUtils.java.

References org.objectweb.jonas_lib.genbase.archive.Archive.getName(), and org.objectweb.jonas_lib.genbase.archive.Archive.getRootFile().

Here is the call graph for this function:

void org.objectweb.jonas_lib.genbase.utils.XMLUtils.addEjb Document  app,
Archive  ejbjar
[static]
 

Add an ejb module in an application Document

Parameters:
app application.xml Document
ejbjar EJBJar archive

Definition at line 336 of file XMLUtils.java.

References org.objectweb.jonas_lib.genbase.archive.Archive.getName(), and org.objectweb.jonas_lib.genbase.archive.Archive.getRootFile().

Here is the call graph for this function:

void org.objectweb.jonas_lib.genbase.utils.XMLUtils.addWebApp Document  app,
Archive  webapp,
String  ctx
[static]
 

Add an web module in an application Document

Parameters:
app application.xml Document
webapp WebApp archive
ctx context-root

Definition at line 367 of file XMLUtils.java.

References org.objectweb.jonas_lib.genbase.archive.Archive.getName().

Here is the call graph for this function:

void org.objectweb.jonas_lib.genbase.utils.XMLUtils.cleanDummyApplication Document  doc  )  [static]
 

default application.xml contains a fake ejb module needed to be parsed without error but not needed for a normal application. Than we remove it.

Parameters:
doc application.xml document

Definition at line 325 of file XMLUtils.java.

Element org.objectweb.jonas_lib.genbase.utils.XMLUtils.getBeanElement Element  base,
String  bName
[static]
 

Returns the session/entity/ message-driven XML Element with given name.

Parameters:
base jonas-ejb-jar Element.
bName the bean name to be found.
Returns:
the session/entity/ message-driven XML Element.

Definition at line 212 of file XMLUtils.java.

Element org.objectweb.jonas_lib.genbase.utils.XMLUtils.getJonasServiceRef Element  base,
String  srName
[static]
 

Returns the jonas-service-ref XML Element with given name.

Parameters:
base web-app/ bean Element containing jonas-service-ref Element(s).
srName the service-ref name to be found.
Returns:
the jonas-service-ref XML Element.

Definition at line 297 of file XMLUtils.java.

Element org.objectweb.jonas_lib.genbase.utils.XMLUtils.getServletElement Element  base,
String  sName
[static]
 

Returns the matching servlet XML Element with given name.

Parameters:
base web-app Element.
sName the servlet name to be found.
Returns:
the matching servlet XML Element.

Definition at line 269 of file XMLUtils.java.

Document org.objectweb.jonas_lib.genbase.utils.XMLUtils.newDocument InputStream  is,
String  name,
boolean  isDTDsAllowed
throws ParserConfigurationException, SAXException, IOException, NoJ2EEWebservicesException [static]
 

Creates a new Document from a given InputStream.

Parameters:
is the InputStream to be parsed
name filename
isDTDsAllowed if false, throw exception on DTD Doctype
Returns:
the Document instance.
Exceptions:
ParserConfigurationException ParserConfigurationException
SAXException SAXException
IOException IOException
NoJ2EEWebservicesException NoJ2EEWebservicesException

Definition at line 166 of file XMLUtils.java.

References org.objectweb.jonas_lib.deployment.digester.JEntityResolver.addDtds(), and org.objectweb.jonas_lib.deployment.digester.JEntityResolver.addSchemas().

Here is the call graph for this function:

Document org.objectweb.jonas_lib.genbase.utils.XMLUtils.newJonasClient  )  [static]
 

Creates a new XML Document for an empty jonas-client.xml.

Returns:
Returns a new XML Document for an empty jonas-client.xml.

Definition at line 416 of file XMLUtils.java.

Document org.objectweb.jonas_lib.genbase.utils.XMLUtils.newJonasWeb  )  [static]
 

Returns:
Returns an empty jonas-web-app Document

Definition at line 435 of file XMLUtils.java.


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:13:01 2005 for JOnAS by  doxygen 1.3.9.1