public interface CdsElement extends CdsAnnotatable, CdsNamed
Modifier and Type | Method and Description |
---|---|
default void |
accept(CdsVisitor visitor)
Accepts a
CdsVisitor visiting this type. |
Optional<Object> |
defaultValue()
Returns an
Optional wrapping the default value of this
element. |
<T extends CdsDefinition> |
getDeclaringType()
Returns the declaring type of this
CdsElement . |
default String |
getKey()
Returns the name that uniquely identifies this named object
|
String |
getName()
Returns the name of this
CdsElement . |
default String |
getQualifiedName()
Returns the fully qualified name of this element.
|
<T extends CdsType> |
getType()
Returns the type of this
CdsElement . |
boolean |
isKey()
Returns
true if this CdsElement is a key. |
boolean |
isLocalized()
Returns
true if this CdsElement is localized. |
boolean |
isNotNull()
Returns
true if this CdsElement cannot be null . |
boolean |
isUnique()
Returns
true if this CdsElement is unique. |
boolean |
isVirtual()
Returns
true if this CdsElement is virtual. |
annotations, byAnnotation, findAnnotation, getAnnotationValue
String getName()
CdsElement
.null
default String getQualifiedName()
<T extends CdsType> T getType()
CdsElement
.T
- the CdsType
of this elementnull
<T extends CdsDefinition> T getDeclaringType()
CdsElement
.T
- the type of the declaring typenull
boolean isKey()
true
if this CdsElement
is a key.true
if this element is a key, otherwise false
boolean isVirtual()
true
if this CdsElement
is virtual.true
if this is a virtual element, otherwise false
boolean isUnique()
true
if this CdsElement
is unique.true
if this is a unique element, otherwise false
boolean isNotNull()
true
if this CdsElement
cannot be null
.true
if this element cannot be null
, otherwise
false
boolean isLocalized()
true
if this CdsElement
is localized.true
if this element is localized, otherwise false
Optional<Object> defaultValue()
Optional
wrapping the default value of this
element.Optional
describing the default value of this element,
or an empty Optional
if there is no default valuedefault void accept(CdsVisitor visitor)
CdsVisitor
visiting this type.visitor
- the CdsVisitor
Copyright © 2023 SAP. All rights reserved.