|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.deployment.common.CommonsSchemas
public abstract class CommonsSchemas
This class defines the declarations of the default Java EE 5 Schemas.
Constructor Summary | |
---|---|
CommonsSchemas()
Build a new object for Schemas handling. |
Method Summary | |
---|---|
protected static void |
addSchemas(String[] schemas)
Add to our repository the given local schemas. |
static String |
getHeaderForElement(String element,
String schema)
|
static String |
getHeaderForStandardElement(String element,
String schema)
|
protected static String |
getLastSchema(String[] schemas,
String packageName)
|
List<String> |
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 |
---|
public CommonsSchemas()
Method Detail |
---|
public List<String> getlocalSchemas()
getlocalSchemas
in interface Schemas
protected static void addSchemas(String[] schemas) throws IllegalStateException
schemas
- schemas to add to the repository
IllegalStateException
- if the dtds is not found as resourcepublic static String getHeaderForElement(String element, String schema)
element
- name of the root element (jonas-ejb-jar, ...)schema
- XML Schema
public static String getHeaderForStandardElement(String element, String schema)
element
- name of the root element (jonas-ejb-jar, ...)schema
- XML Schema
protected static String getLastSchema(String[] schemas, String packageName)
schemas
- array of schema locationspackageName
- package name to remove from schema location.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |