Package com.sap.cds.reflect
Interface CdsElementDefinition
- All Superinterfaces:
CdsAnnotatable,CdsNamed
- All Known Subinterfaces:
CdsElement
-
Method Summary
Modifier and TypeMethodDescriptionReturns anOptionalwrapping the default value of this element.Returns the expression that calculates this element.default StringgetKey()Returns the name that uniquely identifies this named objectgetName()Returns the name of thisCdsElement.<T extends CdsType>
TgetType()Returns the type of thisCdsElement.default booleanReturnstrueif thisCdsElementis calculated.booleanisKey()Returnstrueif thisCdsElementis a key.booleanReturnstrueif thisCdsElementis localized.booleanReturnstrueif thisCdsElementcannot benull.booleanisUnique()Returnstrueif thisCdsElementis unique.booleanReturnstrueif thisCdsElementis virtual.Methods inherited from interface com.sap.cds.reflect.CdsAnnotatable
annotations, findAnnotation, getAnnotationValue, getDoc
-
Method Details
-
getName
String getName()Returns the name of thisCdsElement.- Returns:
- the namespace of this element, not
null
-
getType
Returns the type of thisCdsElement.- Type Parameters:
T- theCdsTypeof this element- Returns:
- the type of this element, not
null
-
isKey
boolean isKey()Returnstrueif thisCdsElementis a key.- Returns:
trueif this element is a key, otherwisefalse
-
isVirtual
boolean isVirtual()Returnstrueif thisCdsElementis virtual.- Returns:
trueif this is a virtual element, otherwisefalse
-
isUnique
boolean isUnique()Returnstrueif thisCdsElementis unique.- Returns:
trueif this is a unique element, otherwisefalse
-
isNotNull
boolean isNotNull()Returnstrueif thisCdsElementcannot benull.- Returns:
trueif this element cannot benull, otherwisefalse
-
isLocalized
boolean isLocalized()Returnstrueif thisCdsElementis localized.- Returns:
trueif this element is localized, otherwisefalse
-
defaultValue
Returns anOptionalwrapping the default value of this element.- Returns:
- an
Optionaldescribing the default value of this element, or an emptyOptionalif there is no default value
-
getKey
Description copied from interface:CdsNamedReturns the name that uniquely identifies this named object -
getExpression
Returns the expression that calculates this element.- Returns:
- the reference to an
CqnValuethat defines value of the element
-
isCalculated
default boolean isCalculated()Returnstrueif thisCdsElementis calculated.- Returns:
trueif this element is calculated, otherwisefalse
-