org.sbml.jsbml.math.compiler
public class HTMLFormula extends MathMLXMLStreamCompiler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
C_DOT
Multiplication symbol “⋅”.
|
static java.lang.String |
EMPTY_SET
HTML code for the empty set symbol “∅”.
|
static java.lang.String |
REVERSIBLE_REACTION_ARROW
HTML code for the reversible reaction arrow whose upper side is directed
to the right “⇌”.
|
static java.lang.String |
RIGHT_ARROW
HTML code for the right arrow “→”.
|
realFormat
Constructor and Description |
---|
HTMLFormula(javax.xml.stream.XMLStreamWriter writer,
java.lang.String indent) |
Modifier and Type | Method and Description |
---|---|
private static java.lang.StringBuffer |
arith(java.lang.Object operator,
java.lang.Object... elements)
Basic method which links several elements with a mathematical operator.
|
private static java.lang.StringBuffer |
brackets(java.lang.Object arith) |
static java.lang.StringBuffer |
pow(java.lang.Object basis,
java.lang.Object exponent)
Returns the basis to the power of the exponent as StringBuffer.
|
java.lang.String |
reactionEquation(Reaction reaction) |
static java.lang.StringBuffer |
sum(java.lang.Object... summands)
Returns the sum of the given elements as StringBuffer.
|
static java.lang.StringBuffer |
times(java.lang.Object... factors)
Returns the product of the given elements as StringBuffer.
|
static java.lang.String |
toHTML(Unit u) |
static java.lang.String |
toHTML(UnitDefinition ud)
Creates an HTML string representation of this UnitDefinition.
|
compile, isSBMLNamespaceNeeded, main, toMathML
public static final java.lang.String EMPTY_SET
public static final java.lang.String REVERSIBLE_REACTION_ARROW
public static final java.lang.String RIGHT_ARROW
public static final java.lang.String C_DOT
public HTMLFormula(javax.xml.stream.XMLStreamWriter writer, java.lang.String indent)
writer
- indent
- private static final java.lang.StringBuffer arith(java.lang.Object operator, java.lang.Object... elements)
operator
- elements
- private static java.lang.StringBuffer brackets(java.lang.Object arith)
arith
- public static final java.lang.StringBuffer pow(java.lang.Object basis, java.lang.Object exponent)
basis
- exponent
- public static final java.lang.StringBuffer sum(java.lang.Object... summands)
summands
- public static final java.lang.StringBuffer times(java.lang.Object... factors)
factors
- public static java.lang.String toHTML(Unit u)
u
- public static java.lang.String toHTML(UnitDefinition ud)
ud
- public java.lang.String reactionEquation(Reaction reaction) throws SBMLException
reaction
- SBMLException