Record Class CalculationComponent

java.lang.Object
java.lang.Record
io.skipcheck.tm1.client.model.CalculationComponent
Record Components:
type - The type of calculation (consolidation or rule-driven) that populates this cell.
status - The status of the cell, that is, NULL, DATA, or ERROR. (since 11.8.6)
value - The value of this cell.
statements - The rule statement that populates this cell.
components - The set of components that determine the value of this cell.
cube - Cube containing the cell that is a component of the calculation. (when expanded)
tuple - Coordinates of the cell that is a component of the calculation. (when expanded)

@Generated("io.skipcheck.tm1.codegen") @Since("11.1.0") public record CalculationComponent(@Nullable CalculationType type, @Since("11.8.6") @Nullable CellStatus status, @Nullable tools.jackson.databind.JsonNode value, @Nullable List<String> statements, @Nullable List<CalculationComponent> components, @Nullable Cube cube, @Nullable List<Element> tuple) extends Record
The CalculationComponent complex type of the TM1 REST API.

Generated from $metadata. Every component is nullable: $select can leave any property out. Null components aren't sent.

  • Field Details

    • TYPE

      public static final ODataProperty TYPE
      Type, for queries: The type of calculation (consolidation or rule-driven) that populates this cell.
    • STATUS

      @Since("11.8.6") public static final ODataProperty STATUS
      Status, for queries: The status of the cell, that is, NULL, DATA, or ERROR.
    • VALUE

      public static final ODataProperty VALUE
      Value, for queries: The value of this cell.
    • STATEMENTS

      public static final ODataProperty STATEMENTS
      Statements, for queries: The rule statement that populates this cell.
    • COMPONENTS

      public static final ODataProperty COMPONENTS
      Components, for queries: The set of components that determine the value of this cell.
    • CUBE

      public static final ODataProperty CUBE
      Cube, for queries: Cube containing the cell that is a component of the calculation. (a navigation property, for $expand)
    • TUPLE

      public static final ODataProperty TUPLE
      Tuple, for queries: Coordinates of the cell that is a component of the calculation. (a navigation property, for $expand)
  • Constructor Details

    • CalculationComponent

      public CalculationComponent(@Nullable CalculationType type, @Nullable CellStatus status, @Nullable tools.jackson.databind.JsonNode value, @Nullable List<String> statements, @Nullable List<CalculationComponent> components, @Nullable Cube cube, @Nullable List<Element> tuple)
      Creates an instance of a CalculationComponent record class.
      Parameters:
      type - the value for the type record component
      status - the value for the status record component
      value - the value for the value record component
      statements - the value for the statements record component
      components - the value for the components record component
      cube - the value for the cube record component
      tuple - the value for the tuple record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • type

      public @Nullable CalculationType type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • status

      @Since("11.8.6") public @Nullable CellStatus status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • value

      public @Nullable tools.jackson.databind.JsonNode value()
      Returns the value of the value record component.
      Returns:
      the value of the value record component
    • statements

      public @Nullable List<String> statements()
      Returns the value of the statements record component.
      Returns:
      the value of the statements record component
    • components

      public @Nullable List<CalculationComponent> components()
      Returns the value of the components record component.
      Returns:
      the value of the components record component
    • cube

      public @Nullable Cube cube()
      Returns the value of the cube record component.
      Returns:
      the value of the cube record component
    • tuple

      public @Nullable List<Element> tuple()
      Returns the value of the tuple record component.
      Returns:
      the value of the tuple record component