public interface CdsAssociationType extends CdsType
| Modifier and Type | Interface and Description |
|---|---|
static interface |
CdsAssociationType.Cardinality |
| Modifier and Type | Method and Description |
|---|---|
default void |
accept(CdsVisitor visitor)
Accepts a
CdsVisitor visiting the elements of this definition
(depth-first) |
CdsAssociationType.Cardinality |
getCardinality()
Returns the
CdsAssociationType.Cardinality of this CdsAssociation. |
default String |
getQualifiedName()
Returns the fully qualified name of this definition.
|
CdsEntity |
getTarget()
Returns the target
CdsEntity of this CdsAssociation. |
default boolean |
isAssociation()
Returns
true if this is an association type. |
boolean |
isComposition()
Returns
true if this is a composition. |
Stream<CdsElement> |
keys()
Returns a sequential
Stream over the key CdsElement
definitions of this association's target CdsEntity. |
Optional<CqnPredicate> |
onCondition()
Returns an
Optional wrapping the on condition of this association. |
as, isArrayed, isEnum, isSimple, isSimpleType, isStructuredbyNamespace, getName, getQualifierannotations, byAnnotation, findAnnotationCdsEntity getTarget()
CdsEntity of this CdsAssociation.CdsEntity of this association, not nullCdsAssociationType.Cardinality getCardinality()
CdsAssociationType.Cardinality of this CdsAssociation.Cardinality of this association, not nullboolean isComposition()
true if this is a composition.true if this is a composition, otherwise falseStream<CdsElement> keys()
Stream over the key CdsElement
definitions of this association's target CdsEntity.Stream over the target's key CdsElement
definitionsOptional<CqnPredicate> onCondition()
Optional wrapping the on condition of this association.Optional describing the on condition of this association,
or an empty Optional if this association has no on conditionCqnPredicatedefault boolean isAssociation()
CdsTypetrue if this is an association type.isAssociation in interface CdsTypetrue if this is an association type, otherwise falsedefault String getQualifiedName()
CdsDefinitiongetQualifiedName in interface CdsDefinitiondefault void accept(CdsVisitor visitor)
CdsDefinitionCdsVisitor visiting the elements of this definition
(depth-first)accept in interface CdsDefinitionvisitor - the CdsVisitorCopyright © 2020 SAP. All rights reserved.