EntityT
- The entity type.EnumT
- The Enum type.public static class SimpleProperty.Enum<EntityT,EnumT extends VdmEnum> extends Object implements SimpleProperty<EntityT>, FilterableEnum<EntityT,EnumT>
SimpleProperty.All<Entity>, SimpleProperty.Boolean<EntityT>, SimpleProperty.Collection<EntityT,ValueT>, SimpleProperty.Date<EntityT>, SimpleProperty.DateTime<EntityT>, SimpleProperty.Duration<EntityT>, SimpleProperty.Enum<EntityT,EnumT extends VdmEnum>, SimpleProperty.Guid<EntityT>, SimpleProperty.NumericDecimal<EntityT>, SimpleProperty.NumericInteger<EntityT>, SimpleProperty.String<EntityT>, SimpleProperty.Time<EntityT>
Constructor and Description |
---|
Enum(Class<EntityT> entityType,
String fieldName,
String enumType) |
Modifier and Type | Method and Description |
---|---|
Class<EntityT> |
getEntityType()
Get the type of the entity which references the value.
|
String |
getEnumType()
OData Enum type identifier.
|
default String |
getExpression()
Create the String representation of the expression.
|
String |
getFieldName()
javadoc
|
static com.sap.cloud.sdk.datamodel.odatav4.expression.Expressions.ValueEnum |
literal(String v) |
static com.sap.cloud.sdk.datamodel.odatav4.expression.Expressions.ValueEnum |
literal(String enumType,
String v) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getExpression
equalTo, equalTo, notEqualTo, notEqualTo
public Class<EntityT> getEntityType()
EntityReference
getEntityType
in interface EntityReference<EntityT>
public String getFieldName()
Expressions.FieldReference
getFieldName
in interface Expressions.FieldReference
public String getEnumType()
FilterableEnum
getEnumType
in interface FilterableEnum<EntityT,EnumT extends VdmEnum>
@Nonnull public String getExpression()
@Nonnull public static com.sap.cloud.sdk.datamodel.odatav4.expression.Expressions.ValueEnum literal(@Nonnull String v)
Copyright © 2020 SAP SE. All rights reserved.