Record Class CsdlOperation
java.lang.Object
java.lang.Record
io.skipcheck.tm1.csdl.CsdlOperation
- Record Components:
kind- action or functionname- the operation's name, unqualifiedbound- whether it's boundcomposable- whether further path segments may follow a functionentitySetPath- itsEntitySetPath, ornullparameters- its parameters, binding parameter first when boundreturnType- its return type, ornullif it returns nothingreturnNullable- whether the return value may be nullannotations- 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.-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCsdlOperation(CsdlOperation.Kind kind, String name, boolean bound, boolean composable, @Nullable String entitySetPath, List<CsdlParameter> parameters, @Nullable CsdlTypeRef returnType, boolean returnNullable, List<CsdlAnnotation> annotations) Validates and copies the components. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannotationsrecord component.The binding parameter's type, for a bound operation.booleanbound()Returns the value of theboundrecord component.The parameters passed by the caller: all of them, minus the binding parameter.booleanReturns the value of thecomposablerecord component.@Nullable StringReturns the value of theentitySetPathrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.name()Returns the value of thenamerecord component.Returns the value of theparametersrecord component.booleanReturns the value of thereturnNullablerecord component.@Nullable CsdlTypeRefReturns the value of thereturnTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CsdlOperation
public CsdlOperation(CsdlOperation.Kind kind, String name, boolean bound, boolean composable, @Nullable String entitySetPath, List<CsdlParameter> parameters, @Nullable CsdlTypeRef returnType, boolean returnNullable, List<CsdlAnnotation> annotations) Validates and copies the components.- Throws:
IllegalArgumentException- if it's bound but has no parameters
-
-
Method Details
-
bindingType
The binding parameter's type, for a bound operation.- Returns:
- the first parameter's type, or empty if the operation is unbound
-
callerParameters
The parameters passed by the caller: all of them, minus the binding parameter.- Returns:
- the caller's parameters, in document order
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
kind
-
name
-
bound
-
composable
public boolean composable()Returns the value of thecomposablerecord component.- Returns:
- the value of the
composablerecord component
-
entitySetPath
Returns the value of theentitySetPathrecord component.- Returns:
- the value of the
entitySetPathrecord component
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-
returnType
Returns the value of thereturnTyperecord component.- Returns:
- the value of the
returnTyperecord component
-
returnNullable
public boolean returnNullable()Returns the value of thereturnNullablerecord component.- Returns:
- the value of the
returnNullablerecord component
-
annotations
Returns the value of theannotationsrecord component.- Returns:
- the value of the
annotationsrecord component
-