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 CdsEntity |
getTargetOf(String association)
Returns the target
CdsEntity of the association element with the
given 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, isInlineDefined, isStructured, keyElements, nonAssociationElements, virtualElements
as, isArrayed, isAssociation, isEnum, isSimple
byNamespace, getName, getQualifiedName, getQualifier
annotations, byAnnotation, findAnnotation
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 nameCdsElementNotFoundException
- 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 nameCdsElementNotFoundException
- 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 CdsEntity getTargetOf(String association)
CdsEntity
of the association element with the
given name.association
- the name of the association elementCdsEntity
of the CdsAssociation
CdsElementNotFoundException
- if there is no association with the given
namedefault 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 © 2019 SAP. All rights reserved.