|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.deployment.JBossEntityResolver
Local entity resolver to handle standard J2EE DTDs as well as JBoss specific DTDs. Function boolean hadDTD() is here to avoid validation errors in descriptors that do not have a DOCTYPE declaration.
Constructor Summary | |
JBossEntityResolver()
Register the mapping of the DOCTYPE public ID names to the DTD file |
Method Summary | |
boolean |
hasDTD()
Returns the boolean value to inform id DTD was found in the XML file or not |
static void |
registerDTD(String publicId,
String dtdFileName)
Register the mapping from the public id to the dtd file name. |
InputSource |
resolveEntity(String publicId,
String systemId)
Returns DTD inputSource. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JBossEntityResolver()
Method Detail |
public static void registerDTD(String publicId, String dtdFileName)
publicId
- the DOCTYPE public id, "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN"dtdFileName
- the simple dtd file name, "ejb-jar.dtd"public InputSource resolveEntity(String publicId, String systemId)
resolveEntity
in interface EntityResolver
publicId
- - Public ID of DTDsystemId
- - the system ID of DTD
public boolean hasDTD()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |