public interface CdsElement extends CdsAnnotatable, CqnSelectListItem
Modifier and Type | Method and Description |
---|---|
default void |
accept(CdsVisitor visitor)
Accepts a
CdsVisitor visiting this type. |
<T extends CdsDefinition> |
getDeclaringType()
Returns the declaring type of this
CdsElement . |
String |
getName()
Returns the name of this
CdsElement . |
<T extends CdsType> |
getType()
Returns the type of this
CdsElement . |
boolean |
isKey()
Returns
true if this CdsElement is a key. |
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
accept, alias, displayName, token, unfold
toJson
String getName()
CdsElement
.null
<T extends CdsType> T getType()
CdsElement
.T
- the CdsType
of this elementnull
<T extends CdsDefinition> T getDeclaringType()
CdsElement
.null
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
default void accept(CdsVisitor visitor)
CdsVisitor
visiting this type.visitor
- the CdsVisitor
Copyright © 2019 SAP. All rights reserved.