|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.openadaptor.util.sax.AbstractHierarchicalElementHandler
org.openadaptor.dmx.converter.DMXTagHandler
org.openadaptor.dmx.converter.DMXModuleHandler
public class DMXModuleHandler
| 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 |
|---|
public DMXModuleHandler()
| Method Detail |
|---|
public MOModule getResultObject()
public void setResultObject(MOModule allObjects)
public java.lang.String tagName()
tagName in interface HierarchicalElementHandlertagName in class AbstractHierarchicalElementHandlernoneHierarchicalElementHandler
public void activate(java.lang.String name,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
activate in interface HierarchicalElementHandleractivate in class AbstractHierarchicalElementHandlerattributes - Attributes found in the start tagname - The name of the tag which activates the receiver.
org.xml.sax.SAXExceptionSAXReadController,
ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
public void handleSubResult(java.lang.String elementName,
java.lang.Object result)
throws DMXException
handleSubResult in class DMXTagHandlertagName - The name of the sub elementresult - The object created out of the data found under the sub tag
DMXExceptionAbstractHierarchicalElementHandler.getResult()public java.lang.Object getResult()
getResult in interface HierarchicalElementHandlergetResult in class AbstractHierarchicalElementHandlernonehandleSubResult(java.lang.String, java.lang.Object)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||