public class Formula extends Object
| Constructor and Description |
|---|
Formula() |
Formula(Formula f) |
Formula(Node node,
float weight) |
| Modifier and Type | Method and Description |
|---|---|
String |
getMiasString() |
Node |
getNode() |
float |
getWeight() |
static String |
nodeToString(Node node,
boolean withoutTextContent,
Map<String,String> eldict,
Map<String,String> attrdict,
List<String> ignoreNode)
Creates M-term styled string representation of a MathML formula.
|
void |
setMiasString(String miasString) |
void |
setNode(Node node) |
void |
setWeight(float weight) |
String |
toString() |
public Formula()
public Formula(Node node, float weight)
public Formula(Formula f)
public String getMiasString()
public void setMiasString(String miasString)
public float getWeight()
public void setWeight(float weight)
public Node getNode()
public void setNode(Node node)
public static String nodeToString(Node node, boolean withoutTextContent, Map<String,String> eldict, Map<String,String> attrdict, List<String> ignoreNode)
node - MathML with the formulawithoutTextContent - if true, resulting string will not contain text content of MathML nodeseldict - dictionary for substituting standard MathML element names for custom onesattrdict - dictionary for substituting standard MathML attribute names and their values for custom onesignoreNode - a list of MathML nodes which the output should not containCopyright © 2013. All Rights Reserved.