org.openadaptor.dmx.converter
Class DMXContentHandler

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

public class DMXContentHandler
extends DMXTagHandler


Constructor Summary
DMXContentHandler()
           
 
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
 java.util.Vector getResultObject()
           
 void handleSubResult(java.lang.String tagName, java.lang.Object result)
          Handle the resulting object produced by a sub element handler Since a DMX content can contain any other object, it is only collecting them in a vector.
 void setResultObject(java.util.Vector 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

DMXContentHandler

public DMXContentHandler()
Method Detail

getResultObject

public java.util.Vector getResultObject()

setResultObject

public void setResultObject(java.util.Vector 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 -
name - The name of the tag which activates the receiver.
Throws:
org.xml.sax.SAXException
Since:
JDK1.1
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 tagName,
                            java.lang.Object result)
Handle the resulting object produced by a sub element handler Since a DMX content can contain any other object, it is only collecting them in a vector.

Overrides:
handleSubResult in class DMXTagHandler
Parameters:
tagName -
result -
Since:
JDK1.1
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)