com.interrupt.bob.handler
Class XMLHandler

java.lang.Object
  extended bycom.interrupt.bob.handler.DocumentHandler
      extended bycom.interrupt.bob.handler.XMLHandler
All Implemented Interfaces:
CallbackBroadcaster, org.xml.sax.ContentHandler, org.xml.sax.ext.DeclHandler, org.xml.sax.ext.LexicalHandler

public class XMLHandler
extends DocumentHandler


Constructor Summary
XMLHandler()
           
XMLHandler(java.util.List tl)
           
 
Method Summary
 void endDocument()
           
 void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName)
           
 java.lang.String genClassNameFromTag(java.lang.String tagName)
           
 java.lang.String genInterfaceNameFromTag(java.lang.String tagName)
           
 void makeClass(IBob tagDef, Balloon bigBalloon, java.lang.String namespaceURI)
           
 void makeInterface(IBob tagDef, Balloon bigBalloon, java.lang.String namespaceURI)
           
 void setDefinitionList(java.util.List dlist)
           
 void startDocument()
           
 void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)
           
 void writeToFile(java.lang.String parentName, java.lang.String javaName, java.lang.String contents)
           
 
Methods inherited from class com.interrupt.bob.handler.DocumentHandler
addListener, allListener, attributeDecl, characters, comment, elementDecl, endCDATA, endDTD, endEntity, endPrefixMapping, externalEntityDecl, ignorableWhitespace, internalEntityDecl, notifyListeners, processingInstruction, removeListener, setDocumentLocator, skippedEntity, startCDATA, startDTD, startEntity, startPrefixMapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLHandler

public XMLHandler()

XMLHandler

public XMLHandler(java.util.List tl)
Method Detail

setDefinitionList

public void setDefinitionList(java.util.List dlist)
Overrides:
setDefinitionList in class DocumentHandler

startDocument

public void startDocument()
                   throws org.xml.sax.SAXException
Specified by:
startDocument in interface org.xml.sax.ContentHandler
Overrides:
startDocument in class DocumentHandler
Throws:
org.xml.sax.SAXException

endDocument

public void endDocument()
                 throws org.xml.sax.SAXException
Specified by:
endDocument in interface org.xml.sax.ContentHandler
Overrides:
endDocument in class DocumentHandler
Throws:
org.xml.sax.SAXException

startElement

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

endElement

public void endElement(java.lang.String namespaceURI,
                       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 DocumentHandler
Throws:
org.xml.sax.SAXException

makeClass

public void makeClass(IBob tagDef,
                      Balloon bigBalloon,
                      java.lang.String namespaceURI)

makeInterface

public void makeInterface(IBob tagDef,
                          Balloon bigBalloon,
                          java.lang.String namespaceURI)

genClassNameFromTag

public java.lang.String genClassNameFromTag(java.lang.String tagName)

genInterfaceNameFromTag

public java.lang.String genInterfaceNameFromTag(java.lang.String tagName)

writeToFile

public void writeToFile(java.lang.String parentName,
                        java.lang.String javaName,
                        java.lang.String contents)