Package org.lemsml.export.base
Class AXMLWriter
- java.lang.Object
-
- org.lemsml.export.base.ABaseWriter
-
- org.lemsml.export.base.AXMLWriter
-
- All Implemented Interfaces:
IBaseWriter
- Direct Known Subclasses:
GeppettoWriter
,SEDMLWriter
public abstract class AXMLWriter extends ABaseWriter
-
-
Constructor Summary
Constructors Constructor Description AXMLWriter(org.lemsml.jlems.core.type.Lems lems, Format format)
AXMLWriter(org.lemsml.jlems.core.type.Lems lems, Format format, File outputFolder, String outputFileName)
-
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
addTextElement(StringBuilder main, String name, String text)
protected void
endElement(StringBuilder main, String name)
protected String
getIndent()
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, String a1)
protected void
startElement(StringBuilder main, String name, String[] attrs)
protected void
startElement(StringBuilder main, String name, String[] attrs, boolean endToo)
protected void
startElement(StringBuilder main, String name, String a1, boolean endToo)
protected void
startElement(StringBuilder main, String name, String a1, String a2)
protected void
startElement(StringBuilder main, String name, String a1, String a2, boolean endToo)
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)
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, String a1)
protected void
startEndElement(StringBuilder main, String name, String[] attrs)
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
-
AXMLWriter
public AXMLWriter(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
-
AXMLWriter
public AXMLWriter(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
-
-
Method Detail
-
addComment
protected void addComment(StringBuilder sb, String comment)
- Specified by:
addComment
in classABaseWriter
-
addComment
protected void addComment(StringBuilder sb, String comment, boolean extraReturns)
-
startElement
protected void startElement(StringBuilder main, String name)
-
startEndElement
protected void startEndElement(StringBuilder main, String name)
-
startEndTextElement
protected void startEndTextElement(StringBuilder main, String name, String contents)
-
getIndent
protected String getIndent()
-
startElement
protected void startElement(StringBuilder main, String name, String a1)
-
startEndElement
protected void startEndElement(StringBuilder main, String name, String a1)
-
startElement
protected void startElement(StringBuilder main, String name, String a1, boolean endToo)
-
addTextElement
protected void addTextElement(StringBuilder main, String name, String text)
-
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)
-
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)
-
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)
-
startEndElement
protected void startEndElement(StringBuilder main, String name, String[] attrs)
-
startElement
protected void startElement(StringBuilder main, String name, String[] attrs, boolean endToo)
-
endElement
protected void endElement(StringBuilder main, String name)
-
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
-
-