net.jangaroo.extxml.xml
Class ExmlToJsonHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by net.jangaroo.extxml.xml.CharacterRecordingHandler
          extended by net.jangaroo.extxml.xml.ExmlToJsonHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public final class ExmlToJsonHandler
extends CharacterRecordingHandler

Generates an internal representation for the component XML


Constructor Summary
ExmlToJsonHandler(ComponentSuite componentSuite)
           
 
Method Summary
 void endDocument()
           
 void endElement(String uri, String localName, String qName)
           
 List<String> getImports()
           
 Json getJson()
           
 String getXtype()
           
 void setDocumentLocator(Locator locator)
           
 void startElement(String uri, String localName, String qName, Attributes atts)
           
 
Methods inherited from class net.jangaroo.extxml.xml.CharacterRecordingHandler
characters, ignorableWhitespace, popRecordedCharacters, startRecordingCharacters
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, error, fatalError, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExmlToJsonHandler

public ExmlToJsonHandler(ComponentSuite componentSuite)
Method Detail

setDocumentLocator

public void setDocumentLocator(Locator locator)
Specified by:
setDocumentLocator in interface ContentHandler
Overrides:
setDocumentLocator in class DefaultHandler

endDocument

public void endDocument()
                 throws SAXException
Specified by:
endDocument in interface ContentHandler
Overrides:
endDocument in class DefaultHandler
Throws:
SAXException

startElement

public void startElement(String uri,
                         String localName,
                         String qName,
                         Attributes atts)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class DefaultHandler
Throws:
SAXException

endElement

public void endElement(String uri,
                       String localName,
                       String qName)
                throws SAXException
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class DefaultHandler
Throws:
SAXException

getImports

public List<String> getImports()

getJson

public Json getJson()

getXtype

public String getXtype()


Copyright © 2002-2011 CoreMedia AG. All Rights Reserved.