| org.jicarilla.collections.AbstractXMLNodeHandler org.jicarilla.collections.DefaultXMLNodeHandler
Method Summary | |
public void | characters(char[] ch, int start, int end) Handling hook for character data. | protected DefaultNode | createNode(String localName, String location) Create a new DefaultTreeContext with the specified local
name and location. | public void | endElement(String namespaceURI, String localName, String rawName) Handling hook for finishing parsing of an element. | public void | error(SAXParseException exception) This just throws an exception on a parse error. | public void | fatalError(SAXParseException exception) This just throws an exception on a parse error. | protected void | foundNodeValue(DefaultNode node, int depth, String accumulatedValue) | protected String | getLocationString() Returns a string showing the current system ID, line number and column
number. | public DefaultNode | getNode() Get the node object that was built. | public void | recycle() Clears all data from this context handler. | public void | setDocumentLocator(Locator locator) Set the document Locator to use. | public void | startElement(String namespaceURI, String localName, String rawName, Attributes attributes) Handling hook for starting parsing of an element. | public void | warning(SAXParseException exception) This just throws an exception on a parse error. |
EXPECTED_DEPTH | final protected static int EXPECTED_DEPTH(Code) | | Likely number of nested context items. If more is encountered the lists
will grow automatically.
|
PRESERVE_SPACE_BY_DEFAULT | final protected boolean PRESERVE_SPACE_BY_DEFAULT(Code) | | top level element trims space by default.
|
PRESERVE_SPACE_KEY | final protected static String PRESERVE_SPACE_KEY(Code) | | |
PRESERVE_SPACE_ON | final protected static String PRESERVE_SPACE_ON(Code) | | |
m_elements | final protected List m_elements(Code) | | Element stack.
|
m_locator | protected Locator m_locator(Code) | | Where we are in the xml document.
|
m_preserveSpace | final protected BitSet m_preserveSpace(Code) | | Contains true at index n if space in the context with depth
n is to be preserved.
|
m_values | final protected List m_values(Code) | | Value stack.
|
characters | public void characters(char[] ch, int start, int end) throws SAXException(Code) | | Handling hook for character data.
Parameters: ch - a char[] of data Parameters: start - offset in the character array from which to start reading Parameters: end - length of character data throws: org.xml.sax.SAXException - if an error occurs |
createNode | protected DefaultNode createNode(String localName, String location)(Code) | | Create a new DefaultTreeContext with the specified local
name and location.
Parameters: localName - a String value Parameters: location - a String value a DefaultTreeContext value |
endElement | public void endElement(String namespaceURI, String localName, String rawName) throws SAXException(Code) | | Handling hook for finishing parsing of an element.
Parameters: namespaceURI - a String value Parameters: localName - a String value Parameters: rawName - a String value throws: org.xml.sax.SAXException - if an error occurs |
getLocationString | protected String getLocationString()(Code) | | Returns a string showing the current system ID, line number and column
number.
a String value |
getNode | public DefaultNode getNode()(Code) | | Get the node object that was built.
a TreeContext object |
recycle | public void recycle()(Code) | | Clears all data from this context handler.
|
setDocumentLocator | public void setDocumentLocator(Locator locator)(Code) | | Set the document Locator to use.
Parameters: locator - a Locator value |
startElement | public void startElement(String namespaceURI, String localName, String rawName, Attributes attributes) throws SAXException(Code) | | Handling hook for starting parsing of an element.
Parameters: namespaceURI - a String value Parameters: localName - a String value Parameters: rawName - a String value Parameters: attributes - an Attributes value throws: org.xml.sax.SAXException - if an error occurs |
|
|