Class ListBuilder
- java.lang.Object
-
- com.singularsys.extensions.mathml.builder.ListBuilder
-
- All Implemented Interfaces:
MathMLFragmentBuilder
public class ListBuilder extends java.lang.Object implements MathMLFragmentBuilder
Handler for the List operator. If the list represents a rectangular array then a <matrix> element is created if it is a one dimensional array then a <vector> otherwise a <list> is created.- Author:
- Richard Morris
-
-
Constructor Summary
Constructors Constructor Description ListBuilder(Jep j)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.Element
build(Node n, org.w3c.dom.Document d, MathMLDocumentBuilder db)
Builds a Element for a jep Node.protected boolean
isMatrix(Node n)
boolean
isUseMatrixVector()
protected boolean
isVector(Node n)
void
setUseMatrixVector(boolean useMatrixVector)
-
-
-
Constructor Detail
-
ListBuilder
public ListBuilder(Jep j)
-
-
Method Detail
-
isMatrix
protected boolean isMatrix(Node n)
-
isVector
protected boolean isVector(Node n)
-
build
public org.w3c.dom.Element build(Node n, org.w3c.dom.Document d, MathMLDocumentBuilder db) throws JepException
Description copied from interface:MathMLFragmentBuilder
Builds a Element for a jep Node.- Specified by:
build
in interfaceMathMLFragmentBuilder
- Parameters:
n
- The jep sub expression.d
- The document to create the element in.db
- Used create elements and attributes and child nodes.- Returns:
- element representing the node
- Throws:
JepException
-
isUseMatrixVector
public boolean isUseMatrixVector()
-
setUseMatrixVector
public void setUseMatrixVector(boolean useMatrixVector)
-
-