Devsphere.com


com.devsphere.xml.taglib.output.builder
Class Controller

java.lang.Object
  |
  +--com.devsphere.xml.taglib.output.builder.Controller
All Implemented Interfaces:
SDXController

public class Controller
extends java.lang.Object
implements SDXController

This class implements com.devsphere.xml.saxdomix.SDXController, but it won't handle any DOM sub-trees because wantDOM() always returns false.


Constructor Summary
Controller(Parameters params, Outputter out)
          Initializes the controller.
 
Method Summary
 void handleDOM(org.w3c.dom.Element element)
          This method won't receive any DOM sub-trees since wantDOM() always returns false.
 boolean wantDOM(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qualifiedName, org.xml.sax.Attributes attributes)
          Returns false.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Controller

public Controller(Parameters params,
                  Outputter out)
Initializes the controller.

Parameters:
params - the command line parameters
out - the object used to output the generated code
Method Detail

wantDOM

public boolean wantDOM(java.lang.String namespaceURI,
                       java.lang.String localName,
                       java.lang.String qualifiedName,
                       org.xml.sax.Attributes attributes)
                throws org.xml.sax.SAXException
Returns false.

Specified by:
wantDOM in interface SDXController
Parameters:
namespaceURI - The element's namespace URI
localName - The element's local name
qualifiedName - The element's qualified name
attributes - The element's attributes
Returns:
A boolean value indicating whether the builder must enter in DOM parsing mode or must remain in SAX parsing mode
Throws:
org.xml.sax.SAXException - If an error must be signaled

handleDOM

public void handleDOM(org.w3c.dom.Element element)
               throws org.xml.sax.SAXException
This method won't receive any DOM sub-trees since wantDOM() always returns false.

Specified by:
handleDOM in interface SDXController
Parameters:
element - The root of the DOM sub-tree
Throws:
org.xml.sax.SAXException - If an error must be signaled

 Devsphere.com