edu.ucla.belief.decision
Class XmlDocumentHandler

Object
  extended by DefaultHandler
      extended by AbstractSaxHandler
          extended by XmlDocumentHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class XmlDocumentHandler
extends AbstractSaxHandler

Since:
20050201
Author:
keith cascio

Field Summary
 ElementHandler theValidRootHandler
           
 
Fields inherited from class AbstractSaxHandler
theCharactersNoop, theRootCheckHandler
 
Constructor Summary
XmlDocumentHandler(BeliefNetwork bn)
           
 
Method Summary
 BeliefNetwork getBeliefNetwork()
           
 DecisionTree getTree(FiniteVariable var)
           
 ElementHandler getValidRootHandler(String qName, Attributes attributes)
           
 boolean isValidating()
           
 boolean isValidRootElementName(String name)
           
 void putTree(FiniteVariable var, DecisionTree tree)
           
 XmlElementHandler resetXmlElementHandler(String qName, Attributes attributes)
           
 
Methods inherited from class AbstractSaxHandler
characters, cleanupAbstractSaxHandler, configureFactory, endDocument, endElement, error, getCharactersHandler, getElementHandler, getFactory, getSAXParser, getSyntaxErrors, isValidationErrorFatal, parse, parse, parse, printAll, setCharactersHandler, setElementHandler, startDocument, startElement
 
Methods inherited from class DefaultHandler
endPrefixMapping, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theValidRootHandler

public final ElementHandler theValidRootHandler
Constructor Detail

XmlDocumentHandler

public XmlDocumentHandler(BeliefNetwork bn)
Method Detail

isValidating

public boolean isValidating()
Specified by:
isValidating in class AbstractSaxHandler
Since:
20060524

getBeliefNetwork

public BeliefNetwork getBeliefNetwork()

isValidRootElementName

public boolean isValidRootElementName(String name)
Specified by:
isValidRootElementName in class AbstractSaxHandler

getValidRootHandler

public ElementHandler getValidRootHandler(String qName,
                                          Attributes attributes)
Specified by:
getValidRootHandler in class AbstractSaxHandler

resetXmlElementHandler

public XmlElementHandler resetXmlElementHandler(String qName,
                                                Attributes attributes)

putTree

public void putTree(FiniteVariable var,
                    DecisionTree tree)

getTree

public DecisionTree getTree(FiniteVariable var)


Copyright 2010 UCLA Automated Reasoning Group