public interface CdsEvent extends CdsDefinition
| Modifier and Type | Method and Description |
|---|---|
default void |
accept(CdsVisitor visitor)
Accepts a
CdsVisitor visiting the elements of this definition
(depth-first) |
Stream<CdsElement> |
elements()
Returns a sequential
Stream over all CdsElement(s)
in this event. |
Optional<CdsElement> |
findElement(String name)
Returns an
Optional wrapping a CdsElement. |
CdsElement |
getElement(String name)
Get a
CdsElement by name. |
byNamespace, getName, getQualifiedName, getQualifierannotations, byAnnotation, findAnnotationCdsElement getElement(String name)
CdsElement by name.name - the name of the CdsElementCdsElement with the given nameCdsElementNotFoundException - if there is no CdsElement with
the given nameOptional<CdsElement> findElement(String name)
Optional wrapping a CdsElement.name - the name of the CdsElementOptional describing the CdsElement with the given
name, or an empty Optional if there is no CdsElement
with this nameStream<CdsElement> elements()
Stream over all CdsElement(s)
in this event.Stream over the CdsElement(s)default void accept(CdsVisitor visitor)
CdsDefinitionCdsVisitor visiting the elements of this definition
(depth-first)accept in interface CdsDefinitionvisitor - the CdsVisitorCopyright © 2020 SAP. All rights reserved.