public interface CdsEntity extends CdsStructuredType
Modifier and Type | Method and Description |
---|---|
default void |
accept(CdsVisitor visitor)
Accepts a
CdsVisitor visiting the elements of this definition
(depth-first) |
Stream<CdsAction> |
actions()
|
Optional<CdsAction> |
findAction(String name)
|
Optional<CdsFunction> |
findFunction(String name)
Returns an
Optional wrapping a bounded CdsFunction . |
Stream<CdsFunction> |
functions()
|
CdsAction |
getAction(String name)
Get a bounded
CdsAction via its name. |
CdsFunction |
getFunction(String name)
Get a
CdsFunction via its name. |
default CdsKind |
getKind()
Returns the kind of this definition.
|
boolean |
isAbstract()
Returns
true if this entity is abstract. |
boolean |
isProjection()
Returns
true if this entity is a projection. |
boolean |
isView()
Returns
true if this entity is a view. |
Stream<CdsParameter> |
params()
|
Optional<CqnSelect> |
query()
Returns the query of this
CdsEntity . |
associations, compositions, concreteElements, concreteNonAssociationElements, elements, elementsOfType, findAssociation, findElement, getAssociation, getElement, getTargetOf, isAnonymous, isInlineDefined, isStructured, keyElements, nonAssociationElements, virtualElements
isArrayed, isAssociation, isEnum, isSimple, isSimpleType
as, byNamespace, getName, getQualifiedName, getQualifier
annotations, byAnnotation, findAnnotation, getAnnotationValue
boolean isAbstract()
true
if this entity is abstract.true
if this entity is abstract, otherwise false
boolean isView()
true
if this entity is a view.true
if this entity is a view, otherwise false
boolean isProjection()
true
if this entity is a projection.true
if this entity is a projection, otherwise false
Optional<CqnSelect> query()
CdsEntity
.Optional
describing the query, or an empty
Optional
if there is no queryCqnSelect
Stream<CdsParameter> params()
Stream
over the CdsParameter(s)
CdsAction getAction(String name)
CdsAction
via its name.name
- the name of the CdsAction
CdsAction
with the given nameCdsOperationNotFoundException
- if there is no CdsAction
with
the given nameOptional<CdsAction> findAction(String name)
name
- the name of the CdsAction
Optional
describing the CdsAction
with the given
name, or an empty Optional
if there is no CdsAction
with this nameStream<CdsFunction> functions()
Stream
over the CdsFunction(s)
CdsFunction getFunction(String name)
CdsFunction
via its name.name
- the name of the CdsFunction
CdsFunction
with the given nameCdsOperationNotFoundException
- if there is no CdsFunction
with
the given nameOptional<CdsFunction> findFunction(String name)
Optional
wrapping a bounded CdsFunction
.name
- the name of the CdsFunction
Optional
describing the CdsFunction
with the given
name, or an empty Optional
if there is no CdsFunction
with this namedefault CdsKind getKind()
CdsDefinition
getKind
in interface CdsDefinition
default void accept(CdsVisitor visitor)
CdsDefinition
CdsVisitor
visiting the elements of this definition
(depth-first)accept
in interface CdsDefinition
accept
in interface CdsStructuredType
visitor
- the CdsVisitor
Copyright © 2022 SAP. All rights reserved.