org.openadaptor.dmx.converter
Class DMXHeaderHandler

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.DMXHeaderHandler
All Implemented Interfaces:
HierarchicalElementHandler, org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class DMXHeaderHandler
extends DMXTagHandler

This element handler is responsible for building XMIHeader objects

Version:
1.0
Author:
Jochen Hiller

Nested Class Summary
 class DMXHeaderHandler.XMIHeader
           
 
Constructor Summary
DMXHeaderHandler()
           
 
Method Summary
 void activate(java.lang.String name, org.xml.sax.Attributes attributes)
          This method is called, when the handler's start tag is reached.
 java.lang.Object getResult()
          Return the result of retreiving all data in the corresponding tag
 void handleSubResult(java.lang.String elementName, java.lang.Object result)
          Handle the given result object of a sub tag handler.
 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

DMXHeaderHandler

public DMXHeaderHandler()
Method Detail

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.

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:
The newly created DOClass object.
See Also:
AbstractHierarchicalElementHandler.endElement(java.lang.String, java.lang.String, java.lang.String)

handleSubResult

public void handleSubResult(java.lang.String elementName,
                            java.lang.Object result)
                     throws DMXException
Handle the given result object of a sub tag handler.

Overrides:
handleSubResult in class DMXTagHandler
Parameters:
elementName - The name of the sub tag
result - The result object from the sub tag handler, which must be type casted
Throws:
DMXException
See Also:
AbstractHierarchicalElementHandler.getResult()

activate

public void activate(java.lang.String name,
                     org.xml.sax.Attributes attributes)
              throws org.xml.sax.SAXException
This method is called, when the handler's start tag is reached.

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