|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.apache.struts.tiles.xmlDefinition.XmlParser
Parse an XML definitions file.
| Field Summary | |
protected org.apache.commons.digester.Digester |
digester
Associated digester. |
protected java.lang.String[] |
registrations
The set of public identifiers, and corresponding resource names for the versions of the configuration file DTDs we know about. |
protected boolean |
validating
Should we use a validating XML parser to read the configuration file. |
| Constructor Summary | |
XmlParser()
Constructor. |
|
| Method Summary | |
protected void |
initDigester(org.apache.commons.digester.Digester digester)
Init digester. |
private void |
initDigesterForComponentsDefinitionsSyntax(org.apache.commons.digester.Digester digester)
Init digester for components syntax. |
private void |
initDigesterForInstancesSyntax(org.apache.commons.digester.Digester digester)
Init digester in order to parse instances definition file syntax. |
private void |
initDigesterForTilesDefinitionsSyntax(org.apache.commons.digester.Digester digester)
Init digester for Tiles syntax. |
static void |
main(java.lang.String[] args)
Main method to check file syntax. |
void |
parse(java.io.InputStream in,
XmlDefinitionsSet definitions)
Parse input reader and add encountered definitions to definitions set. |
void |
setDetailLevel(int detailLevel)
Deprecated. Use the commons-logging to set digester debug level. |
void |
setValidating(boolean validating)
Set digester validating flag. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected org.apache.commons.digester.Digester digester
protected boolean validating
false.
protected java.lang.String[] registrations
| Constructor Detail |
public XmlParser()
| Method Detail |
public void setValidating(boolean validating)
public void setDetailLevel(int detailLevel)
private void initDigesterForComponentsDefinitionsSyntax(org.apache.commons.digester.Digester digester)
digester - Digester instance to use.private void initDigesterForTilesDefinitionsSyntax(org.apache.commons.digester.Digester digester)
digester - Digester instance to use.private void initDigesterForInstancesSyntax(org.apache.commons.digester.Digester digester)
digester - Digester instance to use.protected void initDigester(org.apache.commons.digester.Digester digester)
digester - Digester instance to use.
public void parse(java.io.InputStream in,
XmlDefinitionsSet definitions)
throws java.io.IOException,
org.xml.sax.SAXException
in - Input stream.definitions - Xml Definitions set to which encountered definition are added.
java.io.IOException - On errors during file parsing.
org.xml.sax.SAXException - On errors parsing XML.public static void main(java.lang.String[] args)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||