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, isSimpleas, isArrayed, isAssociation, isSimpleType, isStructuredbyNamespace, getName, getQualifierannotations, byAnnotation, findAnnotationMap<String,CdsEnumType.Enumeral<T>> enumerals()
CdsEnumType as a map, which maps the
name of the enumeral to the enumeral.nullCdsEnumType.Enumeraldefault 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()
CdsTypetrue if this is an enum type.default void accept(CdsVisitor visitor)
CdsDefinitionCdsVisitor visiting the elements of this definition
(depth-first)accept in interface CdsDefinitionaccept in interface CdsSimpleTypevisitor - the CdsVisitorCopyright © 2020 SAP. All rights reserved.