public interface CdsSimpleType extends CdsType
| Modifier and Type | Method and Description |
|---|---|
default void |
accept(CdsVisitor visitor)
Accepts a
CdsVisitor visiting the elements of this definition
(depth-first) |
Optional<Object> |
defaultValue()
Returns an
Optional wrapping the default value of this
CdsSimpleType. |
<T> T |
get(String property)
Returns the property for the given key.
|
Class<?> |
getJavaType()
Returns the Java type of this
CdsSimpleType definition. |
default String |
getQualifiedName()
Returns the fully qualified name of this definition.
|
CdsBaseType |
getType()
Returns the
CdsBaseType of this CdsSimpleType definition. |
default boolean |
isSimple()
Returns
true if this is a simple type. |
as, isArrayed, isAssociation, isEnum, isSimpleType, isStructuredbyNamespace, getName, getQualifierannotations, byAnnotation, findAnnotationCdsBaseType getType()
CdsBaseType of this CdsSimpleType definition.CdsBaseType of this simple type definition, not
nullClass<?> getJavaType()
CdsSimpleType definition.nullOptional<Object> defaultValue()
Optional wrapping the default value of this
CdsSimpleType.Optional describing the default value of this simple type,
or an empty Optional if there is no default value<T> T get(String property)
T - the expected type of the propertyproperty - the name of the propertynull if there is no property
with the given namedefault boolean isSimple()
CdsTypetrue if this is a simple type.default String getQualifiedName()
CdsDefinitiongetQualifiedName in interface CdsDefinitiondefault void accept(CdsVisitor visitor)
CdsDefinitionCdsVisitor visiting the elements of this definition
(depth-first)accept in interface CdsDefinitionvisitor - the CdsVisitorCopyright © 2020 SAP. All rights reserved.