public interface CdsDefinition extends CdsAnnotatable, CdsNamed
Modifier and Type | Method and Description |
---|---|
void |
accept(CdsVisitor visitor)
Accepts a
CdsVisitor visiting the elements of this definition
(depth-first) |
default <T extends CdsDefinition> |
as(Class<T> type)
Casts this type to the given
CdsDefinition . |
static Predicate<CdsDefinition> |
byNamespace(String namespace)
Returns a
Predicate to filter CdsDefinition(s) that are
inside the given namespace. |
default String |
getKey()
Returns the name that uniquely identifies this named object
|
CdsKind |
getKind()
Returns the kind of this definition.
|
String |
getName()
Returns the unqualified name of this definition.
|
String |
getQualifiedName()
Returns the fully qualified name of this definition.
|
String |
getQualifier()
Returns the qualifier part of this definition's qualified name.
|
annotations, byAnnotation, findAnnotation, getAnnotationValue
void accept(CdsVisitor visitor)
CdsVisitor
visiting the elements of this definition
(depth-first)visitor
- the CdsVisitor
String getQualifiedName()
String getName()
String getQualifier()
CdsKind getKind()
static Predicate<CdsDefinition> byNamespace(String namespace)
Predicate
to filter CdsDefinition(s)
that are
inside the given namespace. If the namespace is empty or null
, all
definitions match.namespace
- the namespace to filter, can be empty or null
Predicate
filtering by namespacedefault <T extends CdsDefinition> T as(Class<T> type)
CdsDefinition
.T
- the return typetype
- the subtype of CdsDefinition
to cast toCdsDefinition
classCopyright © 2023 SAP. All rights reserved.