Class ListBuilder

java.lang.Object
com.singularsys.extensions.mathml.builder.ListBuilder
All Implemented Interfaces:
MathMLFragmentBuilder

public class ListBuilder extends 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 Details

    • ListBuilder

      public ListBuilder(Jep j)
  • Method Details

    • isMatrix

      protected boolean isMatrix(Node n)
    • isVector

      protected boolean isVector(Node n)
    • build

      public Element build(Node n, Document d, MathMLDocumentBuilder db) throws JepException
      Description copied from interface: MathMLFragmentBuilder
      Builds a Element for a jep Node.
      Specified by:
      build in interface MathMLFragmentBuilder
      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)