Record Class ServiceRouteDetails.ParamBinding
java.lang.Object
java.lang.Record
org.ek9lang.compiler.ir.data.ServiceRouteDetails.ParamBinding
- Record Components:
paramName- Parameter variable name (e.g., "userId")paramTypeFqn- Parameter type FQN (e.g., "org.ek9.lang::Integer")httpAccess- Access type: "PATH", "QUERY", "HEADER", "REQUEST", "CONTENT", "CONTEXT"httpSource- Source name (e.g., "id", "from", "Authorization") — null for REQUEST/CONTENTisSanitized- True if this parameter requires sanitization before use
- Enclosing class:
ServiceRouteDetails
-
Constructor Summary
ConstructorsConstructorDescriptionParamBinding(String paramName, String paramTypeFqn, String httpAccess, String httpSource, boolean isSanitized) Creates an instance of aParamBindingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehttpAccessrecord component.Returns the value of thehttpSourcerecord component.booleanReturns the value of theisSanitizedrecord component.Returns the value of theparamNamerecord component.Returns the value of theparamTypeFqnrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ParamBinding
public ParamBinding(String paramName, String paramTypeFqn, String httpAccess, @Nullable String httpSource, boolean isSanitized) Creates an instance of aParamBindingrecord class.- Parameters:
paramName- the value for theparamNamerecord componentparamTypeFqn- the value for theparamTypeFqnrecord componenthttpAccess- the value for thehttpAccessrecord componenthttpSource- the value for thehttpSourcerecord componentisSanitized- the value for theisSanitizedrecord component
-
-
Method Details
-
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. -
paramName
-
paramTypeFqn
Returns the value of theparamTypeFqnrecord component.- Returns:
- the value of the
paramTypeFqnrecord component
-
httpAccess
Returns the value of thehttpAccessrecord component.- Returns:
- the value of the
httpAccessrecord component
-
httpSource
Returns the value of thehttpSourcerecord component.- Returns:
- the value of the
httpSourcerecord component
-
isSanitized
public boolean isSanitized()Returns the value of theisSanitizedrecord component.- Returns:
- the value of the
isSanitizedrecord component
-