Package org.neuroml.export.base
Class ANeuroMLXMLWriter
- java.lang.Object
-
- org.lemsml.export.base.ABaseWriter
-
- org.neuroml.export.base.ANeuroMLBaseWriter
-
- org.neuroml.export.base.ANeuroMLXMLWriter
-
- All Implemented Interfaces:
IBaseWriter
- Direct Known Subclasses:
CellMLWriter
,SBMLWriter
,SVGWriter
,XineMLWriter
public abstract class ANeuroMLXMLWriter extends ANeuroMLBaseWriter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.neuroml.export.base.ANeuroMLBaseWriter
ANeuroMLBaseWriter.CompInfo
-
-
Field Summary
Fields Modifier and Type Field Description static String
INDENT
-
Fields inherited from class org.neuroml.export.base.ANeuroMLBaseWriter
nmlDocument
-
Fields inherited from class org.lemsml.export.base.ABaseWriter
format, lems, sli
-
-
Constructor Summary
Constructors Constructor Description ANeuroMLXMLWriter(org.lemsml.jlems.core.type.Lems lems, Format format)
ANeuroMLXMLWriter(org.lemsml.jlems.core.type.Lems lems, Format format, File outputFolder, String outputFileName)
ANeuroMLXMLWriter(org.lemsml.jlems.core.type.Lems lems, org.neuroml.model.NeuroMLDocument nmlDocument, Format format, File outputFolder, String outputFileName)
ANeuroMLXMLWriter(org.neuroml.model.NeuroMLDocument nmlDocument, Format format)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addComment(StringBuilder sb, String comment)
protected void
addComment(StringBuilder sb, String comment, boolean extraReturns)
protected void
addComment(StringBuilder sb, String comment, boolean extraReturns, Integer flag)
protected void
addTextElement(StringBuilder main, String name, String text)
protected void
decreaseIndent(Integer flag)
protected void
endElement(StringBuilder main, String name)
protected void
endElement(StringBuilder main, String name, Integer flag)
protected String
getIndent(Integer flag)
protected void
increaseIndent(Integer flag)
protected String
processAttr(String attr)
void
processMathML(StringBuilder main, org.lemsml.jlems.core.eval.DoubleEvaluator expression)
void
processMathML(StringBuilder main, org.lemsml.jlems.core.expression.ParseTree pt)
void
processMathML(StringBuilder main, org.lemsml.jlems.core.expression.ParseTree pt, boolean wrapInMathMLElement)
protected void
startElement(StringBuilder main, String name)
protected void
startElement(StringBuilder main, String name, Integer flag)
protected void
startElement(StringBuilder main, String name, String a1)
protected void
startElement(StringBuilder main, String name, String[] attrs)
protected void
startElement(StringBuilder main, String name, String[] attrs, boolean endToo, Integer flag)
protected void
startElement(StringBuilder main, String name, String[] attrs, Integer flag)
protected void
startElement(StringBuilder main, String name, String a1, boolean endToo, Integer flag)
protected void
startElement(StringBuilder main, String name, String a1, Integer flag)
protected void
startElement(StringBuilder main, String name, String a1, String a2)
protected void
startElement(StringBuilder main, String name, String a1, String a2, boolean endToo, Integer flag)
protected void
startElement(StringBuilder main, String name, String a1, String a2, Integer flag)
protected void
startElement(StringBuilder main, String name, String a1, String a2, String a3)
protected void
startElement(StringBuilder main, String name, String a1, String a2, String a3, boolean endToo, Integer flag)
protected void
startElement(StringBuilder main, String name, String a1, String a2, String a3, Integer flag)
protected void
startElement(StringBuilder main, String name, String a1, String a2, String a3, String a4)
protected void
startElement(StringBuilder main, String name, String a1, String a2, String a3, String a4, boolean endToo)
protected void
startElement(StringBuilder main, String name, String a1, String a2, String a3, String a4, String a5)
protected void
startElement(StringBuilder main, String name, String a1, String a2, String a3, String a4, String a5, boolean endToo)
protected void
startEndElement(StringBuilder main, String name)
protected void
startEndElement(StringBuilder main, String name, Integer flag)
protected void
startEndElement(StringBuilder main, String name, String a1)
protected void
startEndElement(StringBuilder main, String name, String[] attrs)
protected void
startEndElement(StringBuilder main, String name, String[] attrs, Integer flag)
protected void
startEndElement(StringBuilder main, String name, String a1, Integer flag)
protected void
startEndElement(StringBuilder main, String name, String a1, String a2)
protected void
startEndElement(StringBuilder main, String name, String a1, String a2, String a3)
protected void
startEndElement(StringBuilder main, String name, String a1, String a2, String a3, String a4)
protected void
startEndElement(StringBuilder main, String name, String a1, String a2, String a3, String a4, String a5)
protected void
startEndTextElement(StringBuilder main, String name, String contents)
-
Methods inherited from class org.lemsml.export.base.ABaseWriter
getOutputFileName, getOutputFolder, setOutputFileName, setOutputFolder
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.lemsml.export.base.IBaseWriter
convert, setSupportedFeatures
-
-
-
-
Field Detail
-
INDENT
public static final String INDENT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ANeuroMLXMLWriter
public ANeuroMLXMLWriter(org.lemsml.jlems.core.type.Lems lems, Format format) throws ModelFeatureSupportException, org.lemsml.jlems.core.sim.LEMSException, org.neuroml.model.util.NeuroMLException
- Throws:
ModelFeatureSupportException
org.lemsml.jlems.core.sim.LEMSException
org.neuroml.model.util.NeuroMLException
-
ANeuroMLXMLWriter
public ANeuroMLXMLWriter(org.lemsml.jlems.core.type.Lems lems, Format format, File outputFolder, String outputFileName) throws ModelFeatureSupportException, org.lemsml.jlems.core.sim.LEMSException, org.neuroml.model.util.NeuroMLException
- Throws:
ModelFeatureSupportException
org.lemsml.jlems.core.sim.LEMSException
org.neuroml.model.util.NeuroMLException
-
ANeuroMLXMLWriter
public ANeuroMLXMLWriter(org.lemsml.jlems.core.type.Lems lems, org.neuroml.model.NeuroMLDocument nmlDocument, Format format, File outputFolder, String outputFileName) throws ModelFeatureSupportException, org.lemsml.jlems.core.sim.LEMSException, org.neuroml.model.util.NeuroMLException
- Throws:
ModelFeatureSupportException
org.lemsml.jlems.core.sim.LEMSException
org.neuroml.model.util.NeuroMLException
-
ANeuroMLXMLWriter
public ANeuroMLXMLWriter(org.neuroml.model.NeuroMLDocument nmlDocument, Format format) throws ModelFeatureSupportException, org.lemsml.jlems.core.sim.LEMSException, org.neuroml.model.util.NeuroMLException
- Throws:
ModelFeatureSupportException
org.lemsml.jlems.core.sim.LEMSException
org.neuroml.model.util.NeuroMLException
-
-
Method Detail
-
increaseIndent
protected void increaseIndent(Integer flag)
-
decreaseIndent
protected void decreaseIndent(Integer flag)
-
addComment
protected void addComment(StringBuilder sb, String comment)
- Specified by:
addComment
in classABaseWriter
-
addComment
protected void addComment(StringBuilder sb, String comment, boolean extraReturns)
-
addComment
protected void addComment(StringBuilder sb, String comment, boolean extraReturns, Integer flag)
-
startElement
protected void startElement(StringBuilder main, String name)
-
startElement
protected void startElement(StringBuilder main, String name, Integer flag)
-
startEndElement
protected void startEndElement(StringBuilder main, String name)
-
startEndElement
protected void startEndElement(StringBuilder main, String name, Integer flag)
-
startEndTextElement
protected void startEndTextElement(StringBuilder main, String name, String contents)
-
startElement
protected void startElement(StringBuilder main, String name, String a1, Integer flag)
-
startElement
protected void startElement(StringBuilder main, String name, String a1)
-
startEndElement
protected void startEndElement(StringBuilder main, String name, String a1, Integer flag)
-
startEndElement
protected void startEndElement(StringBuilder main, String name, String a1)
-
startElement
protected void startElement(StringBuilder main, String name, String a1, boolean endToo, Integer flag)
-
addTextElement
protected void addTextElement(StringBuilder main, String name, String text)
-
startElement
protected void startElement(StringBuilder main, String name, String a1, String a2, Integer flag)
-
startElement
protected void startElement(StringBuilder main, String name, String a1, String a2)
-
startEndElement
protected void startEndElement(StringBuilder main, String name, String a1, String a2)
-
startElement
protected void startElement(StringBuilder main, String name, String a1, String a2, boolean endToo, Integer flag)
-
startElement
protected void startElement(StringBuilder main, String name, String a1, String a2, String a3, Integer flag)
-
startElement
protected void startElement(StringBuilder main, String name, String a1, String a2, String a3)
-
startEndElement
protected void startEndElement(StringBuilder main, String name, String a1, String a2, String a3)
-
startElement
protected void startElement(StringBuilder main, String name, String a1, String a2, String a3, boolean endToo, Integer flag)
-
startElement
protected void startElement(StringBuilder main, String name, String a1, String a2, String a3, String a4)
-
startEndElement
protected void startEndElement(StringBuilder main, String name, String a1, String a2, String a3, String a4)
-
startElement
protected void startElement(StringBuilder main, String name, String a1, String a2, String a3, String a4, boolean endToo)
-
startElement
protected void startElement(StringBuilder main, String name, String a1, String a2, String a3, String a4, String a5)
-
startEndElement
protected void startEndElement(StringBuilder main, String name, String a1, String a2, String a3, String a4, String a5)
-
startElement
protected void startElement(StringBuilder main, String name, String a1, String a2, String a3, String a4, String a5, boolean endToo)
-
startElement
protected void startElement(StringBuilder main, String name, String[] attrs)
-
startElement
protected void startElement(StringBuilder main, String name, String[] attrs, Integer flag)
-
startEndElement
protected void startEndElement(StringBuilder main, String name, String[] attrs)
-
startEndElement
protected void startEndElement(StringBuilder main, String name, String[] attrs, Integer flag)
-
startElement
protected void startElement(StringBuilder main, String name, String[] attrs, boolean endToo, Integer flag)
-
endElement
protected void endElement(StringBuilder main, String name)
-
endElement
protected void endElement(StringBuilder main, String name, Integer flag)
-
processMathML
public void processMathML(StringBuilder main, org.lemsml.jlems.core.eval.DoubleEvaluator expression)
-
processMathML
public void processMathML(StringBuilder main, org.lemsml.jlems.core.expression.ParseTree pt) throws org.lemsml.jlems.core.sim.ContentError
- Throws:
org.lemsml.jlems.core.sim.ContentError
-
processMathML
public void processMathML(StringBuilder main, org.lemsml.jlems.core.expression.ParseTree pt, boolean wrapInMathMLElement) throws org.lemsml.jlems.core.sim.ContentError
- Throws:
org.lemsml.jlems.core.sim.ContentError
-
-