Record Class CsdlOperation

java.lang.Object
java.lang.Record
io.skipcheck.tm1.csdl.CsdlOperation
Record Components:
kind - action or function
name - the operation's name, unqualified
bound - whether it's bound
composable - whether further path segments may follow a function
entitySetPath - its EntitySetPath, or null
parameters - its parameters, binding parameter first when bound
returnType - its return type, or null if it returns nothing
returnNullable - whether the return value may be null
annotations - its annotations

public record CsdlOperation(CsdlOperation.Kind kind, String name, boolean bound, boolean composable, @Nullable String entitySetPath, List<CsdlParameter> parameters, @Nullable CsdlTypeRef returnType, boolean returnNullable, List<CsdlAnnotation> annotations) extends Record
An action or a function. Actions may change data and are invoked with POST; functions don't, and are invoked with GET. A bound operation's first parameter is its binding parameter: the type it's invoked on, such as tm1.Cube for Cubes('x')/tm1.Reserve.
  • Constructor Details

  • Method Details

    • bindingType

      public Optional<CsdlTypeRef> bindingType()
      The binding parameter's type, for a bound operation.
      Returns:
      the first parameter's type, or empty if the operation is unbound
    • callerParameters

      public List<CsdlParameter> callerParameters()
      The parameters passed by the caller: all of them, minus the binding parameter.
      Returns:
      the caller's parameters, in document order
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • kind

      public CsdlOperation.Kind kind()
      Returns the value of the kind record component.
      Returns:
      the value of the kind record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • bound

      public boolean bound()
      Returns the value of the bound record component.
      Returns:
      the value of the bound record component
    • composable

      public boolean composable()
      Returns the value of the composable record component.
      Returns:
      the value of the composable record component
    • entitySetPath

      public @Nullable String entitySetPath()
      Returns the value of the entitySetPath record component.
      Returns:
      the value of the entitySetPath record component
    • parameters

      public List<CsdlParameter> parameters()
      Returns the value of the parameters record component.
      Returns:
      the value of the parameters record component
    • returnType

      public @Nullable CsdlTypeRef returnType()
      Returns the value of the returnType record component.
      Returns:
      the value of the returnType record component
    • returnNullable

      public boolean returnNullable()
      Returns the value of the returnNullable record component.
      Returns:
      the value of the returnNullable record component
    • annotations

      public List<CsdlAnnotation> annotations()
      Returns the value of the annotations record component.
      Returns:
      the value of the annotations record component