public interface CdsEnumType<T> extends CdsSimpleType
Modifier and Type | Interface and Description |
---|---|
static interface |
CdsEnumType.Enumeral<T> |
Modifier and Type | Method and Description |
---|---|
default void |
accept(CdsVisitor visitor)
Accepts a
CdsVisitor visiting the elements of this definition
(depth-first) |
Map<String,CdsEnumType.Enumeral<T>> |
enumerals()
Returns the enumerals of this
CdsEnumType as a map, which maps the
name of the enumeral to the enumeral. |
default boolean |
hasValue(Object value)
Tests if this enum type has an enumeral with a given value.
|
default boolean |
isEnum()
Returns
true if this is an enum type. |
defaultValue, get, getJavaType, getQualifiedName, getType, isSimple, isSimpleType
isArrayed, isAssociation, isStructured, isSymbolicType
as, byNamespace, getKey, getKind, getName, getQualifier
annotations, byAnnotation, findAnnotation, getAnnotationValue
Map<String,CdsEnumType.Enumeral<T>> enumerals()
CdsEnumType
as a map, which maps the
name of the enumeral to the enumeral.null
CdsEnumType.Enumeral
default boolean hasValue(Object value)
value
- the value to test fortrue
if this enum type has an enumeral with a given value,
false
otherwisedefault boolean isEnum()
CdsType
true
if this is an enum type.default void accept(CdsVisitor visitor)
CdsDefinition
CdsVisitor
visiting the elements of this definition
(depth-first)accept
in interface CdsDefinition
accept
in interface CdsSimpleType
visitor
- the CdsVisitor
Copyright © 2023 SAP. All rights reserved.