Class ArrayNode.Raw

Enclosing class:
ArrayNode<V,S extends ArrayNode<V,S>>

public static final class ArrayNode.Raw extends ArrayNode<String,ArrayNode.Raw>
An unparsed tree that represents (part of) an ARRAY-valued parameter.
  • Constructor Details

    • Raw

      public Raw(int expectedDim, String rawValues)
      Data node constructor.
      Parameters:
      expectedDim - number of elements expected in the XML dims attribute
      rawValues - raw string with the unparsed data values
    • Raw

      public Raw(List<ArrayNode.Raw> subNodes)
      See Also:
  • Method Details

    • getDataDim

      protected int getDataDim()
      Specified by:
      getDataDim in class ArrayNode<String,ArrayNode.Raw>
      Returns:
      the size of the data elements (for a data node).
    • dataToStr

      protected String dataToStr()
      Specified by:
      dataToStr in class ArrayNode<String,ArrayNode.Raw>
      Returns:
      String version of the data elements.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getVectorInt

      public int[] getVectorInt(boolean flatten)
      Parameters:
      flatten - If true, return data from all subnodes too, otherwise just from this node.
      Returns:
      the value of this node as a vector of integers.
    • getVectorDouble

      public double[] getVectorDouble(boolean flatten)
      Parameters:
      flatten - If true, return data from all subnodes too, otherwise just from this node.
      Returns:
      the value of this node as a vector of floating point values.
    • getVectorBoolean

      public boolean[] getVectorBoolean(boolean flatten)
      Parameters:
      flatten - If true, return data from all subnodes too, otherwise just from this node.
      Returns:
      the value of this node as a vector of booleans.
    • getVectorTime

      public TimeValue[] getVectorTime(boolean flatten)
      Parameters:
      flatten - If true, return data from all subnodes too, otherwise just from this node.
      Returns:
      the value of this node as a vector of timecodes.
    • getVectorString

      public String[] getVectorString(boolean flatten)
      Parameters:
      flatten - If true, return data from all subnodes too, otherwise just from this node.
      Returns:
      the value of this node as a vector of strings.
    • getVectorFile

      public String[] getVectorFile(boolean flatten)
      Parameters:
      flatten - If true, return data from all subnodes too, otherwise just from this node.
      Returns:
      the value of this node as a vector of file paths.
    • getTreeInt

      public ArrayNode.Parsed<int[]> getTreeInt()
      Returns:
      a tree with the same structure as this and values parsed as integers.
    • getTreeDouble

      public ArrayNode.Parsed<double[]> getTreeDouble()
      Returns:
      a tree with the same structure as this and values parsed as floating point values.
    • getTreeBoolean

      public ArrayNode.Parsed<boolean[]> getTreeBoolean()
      Returns:
      a tree with the same structure as this and values parsed as booleans.
    • getTreeTime

      public ArrayNode.Parsed<TimeValue[]> getTreeTime()
      Returns:
      a tree with the same structure as this and values parsed as timecodes.
    • getTreeString

      public ArrayNode.Parsed<String[]> getTreeString()
      Returns:
      a tree with the same structure as this and values parsed as strings.
    • getTreeFile

      public ArrayNode.Parsed<String[]> getTreeFile()
      Returns:
      a tree with the same structure as this and values parsed as files.