org.apache.commons.configuration.plist
Class XMLPropertyListConfiguration.XMLPropertyListHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.apache.commons.configuration.plist.XMLPropertyListConfiguration.XMLPropertyListHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
Enclosing class:
XMLPropertyListConfiguration

private class XMLPropertyListConfiguration.XMLPropertyListHandler
extends org.xml.sax.helpers.DefaultHandler

SAX Handler to build the configuration nodes while the document is being parsed.


Field Summary
private  java.lang.StringBuffer buffer
          The buffer containing the text node being read
private  java.util.List stack
          The stack of configuration nodes
 
Constructor Summary
XMLPropertyListConfiguration.XMLPropertyListHandler(HierarchicalConfiguration.Node root)
           
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
           
private  HierarchicalConfiguration.Node peek()
          Return the node on the top of the stack.
private  HierarchicalConfiguration.Node pop()
          Remove and return the node on the top of the stack.
private  void push(HierarchicalConfiguration.Node node)
          Put a node on the top of the stack.
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
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

buffer

private java.lang.StringBuffer buffer
The buffer containing the text node being read


stack

private java.util.List stack
The stack of configuration nodes

Constructor Detail

XMLPropertyListConfiguration.XMLPropertyListHandler

public XMLPropertyListConfiguration.XMLPropertyListHandler(HierarchicalConfiguration.Node root)
Method Detail

peek

private HierarchicalConfiguration.Node peek()
Return the node on the top of the stack.


pop

private HierarchicalConfiguration.Node pop()
Remove and return the node on the top of the stack.


push

private void push(HierarchicalConfiguration.Node node)
Put a node on the top of the stack.


startElement

public void startElement(java.lang.String uri,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes attributes)
                  throws org.xml.sax.SAXException
Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException

endElement

public void endElement(java.lang.String uri,
                       java.lang.String localName,
                       java.lang.String qName)
                throws org.xml.sax.SAXException
Specified by:
endElement in interface org.xml.sax.ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws org.xml.sax.SAXException
Specified by:
characters in interface org.xml.sax.ContentHandler
Overrides:
characters in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException