ucl.physiol.neuroconstruct.cell.converters
Class MorphMLReader

java.lang.Object
  extended by org.xml.sax.helpers.XMLFilterImpl
      extended by ucl.physiol.neuroconstruct.cell.converters.MorphMLReader
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler, XMLFilter, XMLReader

public class MorphMLReader
extends XMLFilterImpl

MorphML file Reader. Importer of MorphML/NeuroML Level1/2/3 files to neuroConstruct format using SAX

Author:
Padraig Gleeson

Constructor Summary
MorphMLReader()
           
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void endDocument()
           
 void endElement(String namespaceURI, String localName, String qName)
           
 String getAncestorElement(int generationsBack)
          Taking the child parent thing to it's logical extension...
 Cell getBuiltCell()
           
 String getCurrentElement()
           
 String getParentElement()
           
 String getWarnings()
           
static void main(String[] args)
           
 void setCurrentElement(String newElement)
           
 void startDocument()
           
 void startElement(String namespaceURI, String localName, String qName, Attributes attributes)
           
 void stepDownElement()
           
 
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MorphMLReader

public MorphMLReader()
Method Detail

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws SAXException
Specified by:
characters in interface ContentHandler
Overrides:
characters in class XMLFilterImpl
Throws:
SAXException

getBuiltCell

public Cell getBuiltCell()

getWarnings

public String getWarnings()

startDocument

public void startDocument()
Specified by:
startDocument in interface ContentHandler
Overrides:
startDocument in class XMLFilterImpl

endDocument

public void endDocument()
Specified by:
endDocument in interface ContentHandler
Overrides:
endDocument in class XMLFilterImpl

getCurrentElement

public String getCurrentElement()

getParentElement

public String getParentElement()

getAncestorElement

public String getAncestorElement(int generationsBack)
Taking the child parent thing to it's logical extension... parent element is 1 generation back, parent's parent is 2 back, etc.


setCurrentElement

public void setCurrentElement(String newElement)

stepDownElement

public void stepDownElement()

startElement

public void startElement(String namespaceURI,
                         String localName,
                         String qName,
                         Attributes attributes)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class XMLFilterImpl
Throws:
SAXException

endElement

public void endElement(String namespaceURI,
                       String localName,
                       String qName)
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class XMLFilterImpl

main

public static void main(String[] args)