OSFI-Java
3.9.2
OpenSF Integration Library
|
Classes | |
class | Parsed |
class | Raw |
Public Member Functions | |
ArrayNode (V values) | |
ArrayNode (List<? extends S > subNodes) | |
final boolean | isDataNode () |
V | getData () |
final List< S > | getSubNodes () |
final S | getSubNodeAt (final int... indices) |
final V | getDataAtSub (final int... indices) |
final int | getDim () |
final List< Integer > | getDimsEnvelope () |
String | toString () |
boolean | equals (Object other) |
int | hashCode () |
Protected Member Functions | |
abstract int | getDataDim () |
boolean | dataEquals (ArrayNode<?, ?> other) |
int | dataHashCode () |
abstract String | dataToStr () |
Protected Attributes | |
final V | elems |
Class that represents a tree with data (leaf) nodes and internal nodes. The data may be raw (a String with the unparsed values) or fully parsed.
<V> | Type used to store values. May be an array for parsed nodes, or a String for unparsed. |
<S> | CRTP parameter, used so that getSubNodes() and similar return the same type. |
esa.opensf.osfi.ArrayNode< V, S extends ArrayNode< V, S >.ArrayNode | ( | V | values | ) |
Create a data node with the given values.
esa.opensf.osfi.ArrayNode< V, S extends ArrayNode< V, S >.ArrayNode | ( | List<? extends S > | subNodes | ) |
Create an internal node with the given subnodes.
|
protected |
Comparison of data values, override if more fields need to be compared.
|
protected |
Hash code of data values, override if more fields need to be considered.
|
abstractprotected |
String version of the data elements.
boolean esa.opensf.osfi.ArrayNode< V, S extends ArrayNode< V, S >.equals | ( | Object | other | ) |
V esa.opensf.osfi.ArrayNode< V, S extends ArrayNode< V, S >.getData | ( | ) |
Returns the raw data elements, or null if this is an internal node without data.
final V esa.opensf.osfi.ArrayNode< V, S extends ArrayNode< V, S >.getDataAtSub | ( | final int... | indices | ) |
Return the data at the given index position in the tree. Equivalent to
, except in the case that indices is empty, in which this method does return the result of calling getData() on this instead of throwing.
indices | Index values for each dimension. |
|
abstractprotected |
For data nodes, return the size of the data elements.
final int esa.opensf.osfi.ArrayNode< V, S extends ArrayNode< V, S >.getDim | ( | ) |
Get the size of this array node (i.e. of this dimension level).
final List<Integer> esa.opensf.osfi.ArrayNode< V, S extends ArrayNode< V, S >.getDimsEnvelope | ( | ) |
Compute the rectangular envelope for the dimensions of this array node, considering all nodes below it in the tree.
final S esa.opensf.osfi.ArrayNode< V, S extends ArrayNode< V, S >.getSubNodeAt | ( | final int... | indices | ) |
Return the subnode at the given index position in the tree. Equivalent to calling
for each index given, with s initially equal to this object. The final s value is returned.
indices | Index values for each dimension. |
final List<S> esa.opensf.osfi.ArrayNode< V, S extends ArrayNode< V, S >.getSubNodes | ( | ) |
Returns the list of subnodes, or the empty list if this is a data node without subnodes.
int esa.opensf.osfi.ArrayNode< V, S extends ArrayNode< V, S >.hashCode | ( | ) |
final boolean esa.opensf.osfi.ArrayNode< V, S extends ArrayNode< V, S >.isDataNode | ( | ) |
Returns true if this node was built with data elements, false if it was built with subnodes.
String esa.opensf.osfi.ArrayNode< V, S extends ArrayNode< V, S >.toString | ( | ) |
Return a user-understandable representation of the tree, useful for debugging.
|
protected |
Elements for a data node. If null, this is an internal node.