prefuse.data.io
Class TreeMLReader.TreeMLHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by prefuse.data.io.TreeMLReader.TreeMLHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, TreeMLReader.Tokens
Enclosing class:
TreeMLReader

public class TreeMLReader.TreeMLHandler
extends org.xml.sax.helpers.DefaultHandler
implements TreeMLReader.Tokens

A SAX Parser for TreeML data files.


Field Summary
 
Fields inherited from interface prefuse.data.io.TreeMLReader.Tokens
ATTR, BOOLEAN, BRANCH, CATEGORY, DATE, DECL, DECLS, DOUBLE, FLOAT, INT, INTEGER, LEAF, LONG, NAME, REAL, STRING, TREE, TYPE, VALUE
 
Constructor Summary
TreeMLReader.TreeMLHandler()
           
 
Method Summary
 void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName)
           
 Tree getTree()
           
protected  java.lang.Object parse(java.lang.String s, java.lang.Class type)
           
protected  void parseAttribute(org.xml.sax.Attributes atts)
           
protected  java.lang.Class parseType(java.lang.String type)
           
 void startDocument()
           
 void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeMLReader.TreeMLHandler

public TreeMLReader.TreeMLHandler()
Method Detail

startDocument

public void startDocument()
Specified by:
startDocument in interface org.xml.sax.ContentHandler
Overrides:
startDocument in class org.xml.sax.helpers.DefaultHandler

endElement

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

startElement

public void startElement(java.lang.String namespaceURI,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes atts)
Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler

parseAttribute

protected void parseAttribute(org.xml.sax.Attributes atts)

parse

protected java.lang.Object parse(java.lang.String s,
                                 java.lang.Class type)
                          throws DataParseException
Throws:
DataParseException

parseType

protected java.lang.Class parseType(java.lang.String type)

getTree

public Tree getTree()


Copyright © 2007 Regents of the University of California