@Beta public interface FieldReference extends Expressions.OperandSingle
NULL| Modifier and Type | Method and Description |
|---|---|
default String |
getExpression(ODataProtocol protocol,
Map<String,Predicate<FieldReference>> prefixes)
Create the String representation of the expression.
|
String |
getFieldName()
javadoc
|
static FieldUntyped |
of(String fieldName)
Static factory method to easily instantiate a generic field reference.
|
static FieldUntyped |
ofPath(String... fieldNames)
Static factory method to easily instantiate a nested field reference via a path of fields.
|
getExpression@Nonnull static FieldUntyped of(@Nonnull String fieldName)
fieldName - The field name.@Nonnull static FieldUntyped ofPath(@Nonnull String... fieldNames)
fieldNames - The field name(s) identifying the field.@Nonnull String getFieldName()
@Nonnull default String getExpression(@Nonnull ODataProtocol protocol, @Nonnull Map<String,Predicate<FieldReference>> prefixes)
Expressions.OperandgetExpression in interface Expressions.Operandprotocol - The OData protocol to derive serialization rules from.prefixes - Additional field prefixes, e.g. when using lambda expressions.Copyright © 2022 SAP SE. All rights reserved.