public interface CdsType extends CdsDefinition
Modifier and Type | Method and Description |
---|---|
default <T extends CdsType> |
as(Class<T> type)
Casts this type to the given
type . |
default boolean |
isArrayed()
Returns
true if this is an arrayed type. |
default boolean |
isAssociation()
Returns
true if this is an association type. |
default boolean |
isEnum()
Returns
true if this is an enum type. |
default boolean |
isSimple()
Returns
true if this is a simple type. |
default boolean |
isSimpleType(CdsBaseType baseType)
Returns
true if this is a simple type with a given base type. |
default boolean |
isStructured()
Returns
true if this is a structured type. |
accept, byNamespace, getName, getQualifiedName, getQualifier
annotations, byAnnotation, findAnnotation
default boolean isSimple()
true
if this is a simple type.true
if this is a simple type, otherwise false
default boolean isStructured()
true
if this is a structured type.true
if this is a structured type, otherwise false
default boolean isAssociation()
true
if this is an association type.true
if this is an association type, otherwise false
default boolean isEnum()
true
if this is an enum type.true
if this is an enum type, otherwise false
default boolean isArrayed()
true
if this is an arrayed type.true
if this is an arrayed type, otherwise false
default <T extends CdsType> T as(Class<T> type)
type
.T
- the return typetype
- the subtype of CdsType
to cast totype
classdefault boolean isSimpleType(CdsBaseType baseType)
true
if this is a simple type with a given base type.baseType
- the base typetrue
if this is a simple type with a given base type,
otherwise false
Copyright © 2020 SAP. All rights reserved.