|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
com.sun.tools.doclets.internal.toolkit.builders.LayoutParser
public class LayoutParser
Parse the XML that specified the order of operation for the builders. This Parser uses SAX parsing.
SAXParser| Field Summary | |
|---|---|
private Configuration |
configuration
|
private java.lang.String |
currentRoot
|
private static LayoutParser |
instance
|
private boolean |
isParsing
|
private java.util.Map<java.lang.String,java.util.List<java.lang.Object>> |
xmlElementsMap
The map of XML elements that have been parsed. |
| Constructor Summary | |
|---|---|
private |
LayoutParser(Configuration configuration)
This class is a singleton. |
| Method Summary | |
|---|---|
void |
endElement(java.lang.String namespaceURI,
java.lang.String sName,
java.lang.String qName)
|
static LayoutParser |
getInstance(Configuration configuration)
Return an instance of the BuilderXML. |
java.util.List<?> |
parseXML(java.lang.String root)
Parse the XML specifying the layout of the documentation. |
void |
startElement(java.lang.String namespaceURI,
java.lang.String sName,
java.lang.String qName,
org.xml.sax.Attributes attrs)
|
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.Map<java.lang.String,java.util.List<java.lang.Object>> xmlElementsMap
private Configuration configuration
private static LayoutParser instance
private java.lang.String currentRoot
private boolean isParsing
| Constructor Detail |
|---|
private LayoutParser(Configuration configuration)
| Method Detail |
|---|
public static LayoutParser getInstance(Configuration configuration)
configuration - the current configuration of the doclet.
public java.util.List<?> parseXML(java.lang.String root)
public void startElement(java.lang.String namespaceURI,
java.lang.String sName,
java.lang.String qName,
org.xml.sax.Attributes attrs)
throws org.xml.sax.SAXException
startElement in interface org.xml.sax.ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException
public void endElement(java.lang.String namespaceURI,
java.lang.String sName,
java.lang.String qName)
throws org.xml.sax.SAXException
endElement in interface org.xml.sax.ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||