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, getQualifier
annotations, byAnnotation, findAnnotation
CdsElement getElement(String name)
CdsElement
by name.name
- the name of the CdsElement
CdsElement
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 CdsElement
Optional
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)
CdsDefinition
CdsVisitor
visiting the elements of this definition
(depth-first)accept
in interface CdsDefinition
visitor
- the CdsVisitor
Copyright © 2020 SAP. All rights reserved.