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, getQualifierannotations, byAnnotation, findAnnotationdefault boolean isSimple()
true if this is a simple type.true if this is a simple type, otherwise falsedefault boolean isStructured()
true if this is a structured type.true if this is a structured type, otherwise falsedefault boolean isAssociation()
true if this is an association type.true if this is an association type, otherwise falsedefault boolean isEnum()
true if this is an enum type.true if this is an enum type, otherwise falsedefault boolean isArrayed()
true if this is an arrayed type.true if this is an arrayed type, otherwise falsedefault <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 falseCopyright © 2020 SAP. All rights reserved.