Package com.sap.cds.reflect
Interface CdsType
- All Superinterfaces:
CdsAnnotatable
,CdsDefinition
,CdsNamed
- All Known Subinterfaces:
CdsArrayedType
,CdsAssociationType
,CdsDecimal
,CdsEntity
,CdsEnumType<T>
,CdsEvent
,CdsSimpleType
,CdsStringType
,CdsStructuredType
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
Returnstrue
if this is an arrayed type.default boolean
Returnstrue
if this is an association type.default boolean
isEnum()
Returnstrue
if this is an enum type.default boolean
isSimple()
Returnstrue
if this is a simple type.default boolean
isSimpleType
(CdsBaseType baseType) Returnstrue
if this is a simple type with a given base type.default boolean
Returnstrue
if this is a structured type.default boolean
Returnstrue
if this is a symbolic type with special meaning e.g.Methods inherited from interface com.sap.cds.reflect.CdsAnnotatable
annotations, findAnnotation, getAnnotationValue
Methods inherited from interface com.sap.cds.reflect.CdsDefinition
accept, as, getKey, getKind, getName, getQualifiedName, getQualifier
-
Method Details
-
isSimple
default boolean isSimple()Returnstrue
if this is a simple type.- Returns:
true
if this is a simple type, otherwisefalse
-
isStructured
default boolean isStructured()Returnstrue
if this is a structured type.- Returns:
true
if this is a structured type, otherwisefalse
-
isAssociation
default boolean isAssociation()Returnstrue
if this is an association type.- Returns:
true
if this is an association type, otherwisefalse
-
isEnum
default boolean isEnum()Returnstrue
if this is an enum type.- Returns:
true
if this is an enum type, otherwisefalse
-
isArrayed
default boolean isArrayed()Returnstrue
if this is an arrayed type.- Returns:
true
if this is an arrayed type, otherwisefalse
-
isSimpleType
Returnstrue
if this is a simple type with a given base type.- Parameters:
baseType
- the base type- Returns:
true
if this is a simple type with a given base type, otherwisefalse
-
isSymbolicType
default boolean isSymbolicType()Returnstrue
if this is a symbolic type with special meaning e.g. reference to something else or a $self.- Returns:
true
if this is a symbolic type, otherwisefalse
-