An unparsed tree that represents (part of) an ARRAY-valued parameter.
-
Nested Class Summary
Nested classes/interfaces inherited from class esa.opensf.osfi.ArrayNode
ArrayNode.Parsed<A>, ArrayNode.Raw -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringbooleanprotected intArrayNode.Parsed<boolean[]>ArrayNode.Parsed<double[]>ArrayNode.Parsed<int[]>boolean[]getVectorBoolean(boolean flatten) double[]getVectorDouble(boolean flatten) String[]getVectorFile(boolean flatten) int[]getVectorInt(boolean flatten) String[]getVectorString(boolean flatten) getVectorTime(boolean flatten) inthashCode()Methods inherited from class esa.opensf.osfi.ArrayNode
getData, getDataAtSub, getDim, getDimsEnvelope, getSubNodeAt, getSubNodes, innerEquals, innerHashCode, isDataNode, toString
-
Constructor Details
-
Raw
Data node constructor.- Parameters:
expectedDim- number of elements expected in the XMLdimsattributerawValues- raw string with the unparsed data values
-
Raw
- See Also:
-
-
Method Details
-
getDataDim
protected int getDataDim()- Specified by:
getDataDimin classArrayNode<String,ArrayNode.Raw> - Returns:
- the size of the data elements (for a data node).
-
dataToStr
- Specified by:
dataToStrin classArrayNode<String,ArrayNode.Raw> - Returns:
- String version of the data elements.
-
equals
-
hashCode
public int hashCode() -
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
- 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
- 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
- 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
- Returns:
- a tree with the same structure as this and values parsed as integers.
-
getTreeDouble
- Returns:
- a tree with the same structure as this and values parsed as floating point values.
-
getTreeBoolean
- Returns:
- a tree with the same structure as this and values parsed as booleans.
-
getTreeTime
- Returns:
- a tree with the same structure as this and values parsed as timecodes.
-
getTreeString
- Returns:
- a tree with the same structure as this and values parsed as strings.
-
getTreeFile
- Returns:
- a tree with the same structure as this and values parsed as files.
-