org.openadaptor.dmx.converter
Class DMXModuleHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.openadaptor.util.sax.AbstractHierarchicalElementHandler
          extended by org.openadaptor.dmx.converter.DMXTagHandler
              extended by org.openadaptor.dmx.converter.DMXModuleHandler
All Implemented Interfaces:
HierarchicalElementHandler, org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class DMXModuleHandler
extends DMXTagHandler


Constructor Summary
DMXModuleHandler()
           
 
Method Summary
 void activate(java.lang.String name, org.xml.sax.Attributes attributes)
          Start the interpretation of the corresponding tag.
 java.lang.Object getResult()
          Return the result of retreiving all data in the corresponding tag
 MOModule getResultObject()
           
 void handleSubResult(java.lang.String elementName, java.lang.Object result)
          Handle the resulting object produced by a sub element handler Since a DMX module can contain Typedefs, Classes, Relationships and Structures, only these sub handler results are expected and properly handled.
 void setResultObject(MOModule allObjects)
           
 java.lang.String tagName()
          Returns the tag name, the receiver is responsible for.
 
Methods inherited from class org.openadaptor.dmx.converter.DMXTagHandler
getTypeRegistry, newAttribute, newClass, newType, stringToInteger, tagViolationException
 
Methods inherited from class org.openadaptor.util.sax.AbstractHierarchicalElementHandler
endElement, getController, reactivate, setController, startElement
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xml.sax.ContentHandler
characters, endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping
 

Constructor Detail

DMXModuleHandler

public DMXModuleHandler()
Method Detail

getResultObject

public MOModule getResultObject()

setResultObject

public void setResultObject(MOModule allObjects)

tagName

public java.lang.String tagName()
Returns the tag name, the receiver is responsible for.

Specified by:
tagName in interface HierarchicalElementHandler
Specified by:
tagName in class AbstractHierarchicalElementHandler
Returns:
The name of the tag the receiver object is responsible for
Throws:
none
Since:
JDK1.1
See Also:
HierarchicalElementHandler

activate

public void activate(java.lang.String name,
                     org.xml.sax.Attributes attributes)
              throws org.xml.sax.SAXException
Start the interpretation of the corresponding tag. Interpretation of the start tag and its attributes.

Specified by:
activate in interface HierarchicalElementHandler
Specified by:
activate in class AbstractHierarchicalElementHandler
Parameters:
attributes - Attributes found in the start tag
name - The name of the tag which activates the receiver.
Throws:
org.xml.sax.SAXException
See Also:
SAXReadController, ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)

handleSubResult

public void handleSubResult(java.lang.String elementName,
                            java.lang.Object result)
                     throws DMXException
Handle the resulting object produced by a sub element handler Since a DMX module can contain Typedefs, Classes, Relationships and Structures, only these sub handler results are expected and properly handled.

Overrides:
handleSubResult in class DMXTagHandler
Parameters:
tagName - The name of the sub element
result - The object created out of the data found under the sub tag
Throws:
DMXException
See Also:
AbstractHierarchicalElementHandler.getResult()

getResult

public java.lang.Object getResult()
Return the result of retreiving all data in the corresponding tag

Specified by:
getResult in interface HierarchicalElementHandler
Specified by:
getResult in class AbstractHierarchicalElementHandler
Returns:
Vector
Throws:
none
Since:
JDK1.1
See Also:
handleSubResult(java.lang.String, java.lang.Object)