| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.llnl.babel.parsers.xml.DTDManager
public class DTDManager
DTDManager is a singleton class that manages the DTDs for
 the sidl symbol, comment, and HTML descriptions needed to parse sidl
 symbols in XML format.  If the application does not explicitly set the
 path to the sidl DTDs, the the DTD manager will query the system property
 "gov.llnl.babel.sidl.DTDPath".  This manager also defines the PUBLIC
 identifiers for symbol and comment DTDs used to validate SIXL XML symbols.
 The PUBLIC symbol identifier is "-//CCA/sidl Symbol DTD v1.0//EN" and the
 HTML lite comment identifier is "-//CCA/sidl HTML DTD v1.0//EN".  The DTD
 manager object can act as a symbol resolver for a SAX parser to interpret
 these PUBLIC identifiers.
| Field Summary | |
|---|---|
| static java.lang.String | COMMENT_FILE | 
| static java.lang.String | COMMENT_PUBLIC_ID | 
| static java.lang.String | HTML_PUBLIC_ID | 
| static java.lang.String | SYMBOL_PUBLIC_ID | 
| Constructor Summary | |
|---|---|
| DTDManager()Create a new instance of the DTD manager. | |
| Method Summary | |
|---|---|
| static DTDManager | getInstance()Return the singleton instance of the DTD manager. | 
|  org.xml.sax.InputSource | resolveEntity(java.lang.String public_id,
              java.lang.String system_id)Provide the implementation of an EntityResolverto
 convert the symbol PUBLIC identifier into a URL for the symbol DTD. | 
| static void | setInstance(DTDManager instance)Set the singleton instance of the DTD manager. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final java.lang.String SYMBOL_PUBLIC_ID
public static final java.lang.String HTML_PUBLIC_ID
public static final java.lang.String COMMENT_PUBLIC_ID
public static final java.lang.String COMMENT_FILE
| Constructor Detail | 
|---|
public DTDManager()
getInstance and setInstance.
| Method Detail | 
|---|
public static DTDManager getInstance()
public static void setInstance(DTDManager instance)
getInstance will automatically create the DTD manager
 for you.
public org.xml.sax.InputSource resolveEntity(java.lang.String public_id,
                                             java.lang.String system_id)
                                      throws java.io.IOException
EntityResolver to
 convert the symbol PUBLIC identifier into a URL for the symbol DTD.
resolveEntity in interface org.xml.sax.EntityResolverjava.io.IOException| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||