org.objectweb.jonas_lib.deployment.api
Class CommonsSchemas

java.lang.Object
  extended by org.objectweb.jonas_lib.deployment.api.CommonsSchemas
All Implemented Interfaces:
Schemas
Direct Known Subclasses:
AppClientSchemas, ClusterDaemonSchemas, ConnectorSchemas, DomainSchemas, EarSchemas, EjbjarSchemas, JaxrpcMappingSchemas, JonasAppClientSchemas, JonasConnectorSchemas, JonasEarSchemas, JonasEjbjarSchemas, JonasWebAppSchemas, WebAppSchemas, WsSchemas

public abstract class CommonsSchemas
extends java.lang.Object
implements Schemas

This class defines the declarations of the default J2EE 1.4 Schemas

Author:
Florent Benoit

Constructor Summary
CommonsSchemas()
          Build a new object for Schemas handling
 
Method Summary
protected static void addSchemas(java.lang.String[] schemas)
          Add to our repository the given local schemas
static java.lang.String getHeaderForElement(java.lang.String element, java.lang.String[] schemas)
           
 java.util.List getlocalSchemas()
          Gets the URLs of the local schemas
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonsSchemas

public CommonsSchemas()
Build a new object for Schemas handling

Method Detail

getlocalSchemas

public java.util.List getlocalSchemas()
Gets the URLs of the local schemas

Specified by:
getlocalSchemas in interface Schemas
Returns:
the URLs of the local schemas

addSchemas

protected static void addSchemas(java.lang.String[] schemas)
                          throws java.lang.IllegalStateException
Add to our repository the given local schemas

Parameters:
schemas - schemas to add to the repository
Throws:
java.lang.IllegalStateException - if the dtds is not found as resource

getHeaderForElement

public static java.lang.String getHeaderForElement(java.lang.String element,
                                                   java.lang.String[] schemas)
Parameters:
element - name of the root element (jonas-ejb-jar, ...)
schemas - array of Schemas (to be always up to date)
Returns:
a header for the right element with last element