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. |
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, virtualElementsas, isArrayed, isAssociation, isEnum, isSimple, isSimpleTypebyNamespace, getName, getQualifiedName, getQualifierannotations, byAnnotation, findAnnotationboolean isAbstract()
true if this entity is abstract.true if this entity is abstract, otherwise falseboolean isView()
true if this entity is a view.true if this entity is a view, otherwise falseboolean isProjection()
true if this entity is a projection.true if this entity is a projection, otherwise falseOptional<CqnSelect> query()
CdsEntity.Optional describing the query, or an empty
Optional if there is no queryCqnSelectStream<CdsParameter> params()
Stream over the CdsParameter(s)CdsAction getAction(String name)
CdsAction via its name.name - the name of the CdsActionCdsAction with the given nameCdsElementNotFoundException - if there is no CdsAction with the
given nameOptional<CdsAction> findAction(String name)
name - the name of the CdsActionOptional 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 CdsFunctionCdsFunction with the given nameCdsElementNotFoundException - if there is no CdsFunction with
the given nameOptional<CdsFunction> findFunction(String name)
Optional wrapping a bounded CdsFunction.name - the name of the CdsFunctionOptional describing the CdsFunction with the given
name, or an empty Optional if there is no CdsFunction
with this namedefault void accept(CdsVisitor visitor)
CdsDefinitionCdsVisitor visiting the elements of this definition
(depth-first)accept in interface CdsDefinitionaccept in interface CdsStructuredTypevisitor - the CdsVisitorCopyright © 2020 SAP. All rights reserved.