Interface CdsAssociationType

All Superinterfaces:
CdsAnnotatable, CdsDefinition, CdsNamed, CdsType

public interface CdsAssociationType extends CdsType
  • Method Details

    • getTarget

      CdsEntity getTarget()
      Returns the target CdsEntity of this CdsAssociation.
      Returns:
      the target CdsEntity of this association, not null
    • getTargetAspect

      Optional<CdsStructuredType> getTargetAspect()
      Returns an Optional wrapping the target Aspect's CdsType provided this is a composition that targets an aspect.
      Returns:
      Optional holding the target aspect's CdsType if this is a composition of aspects, or an empty Optional otherwise
    • getCardinality

      Returns the CdsAssociationType.Cardinality of this CdsAssociation.
      Returns:
      the Cardinality of this association, not null
    • isComposition

      boolean isComposition()
      Returns true if this is a composition.
      Returns:
      true if this is a composition, otherwise false
    • refs

      Returns a sequential Stream of element refs that are used to identify the target entity of this association. This is only supported for managed to-one associations.
      Returns:
      a Stream of the referenced target entity elements, or an empty stream for unmanaged and to-many associations.
    • onCondition

      Optional<CqnPredicate> onCondition()
      Returns an Optional wrapping the on condition of this association.
      Returns:
      an Optional describing the on condition of this association, or an empty Optional if this association has no on condition
      See Also:
    • isAssociation

      default boolean isAssociation()
      Description copied from interface: CdsType
      Returns true if this is an association type.
      Specified by:
      isAssociation in interface CdsType
      Returns:
      true if this is an association type, otherwise false
    • getQualifiedName

      default String getQualifiedName()
      Description copied from interface: CdsDefinition
      Returns the fully qualified name of this definition.
      Specified by:
      getQualifiedName in interface CdsDefinition
      Returns:
      the fully qualified name of this definition
    • accept

      default void accept(CdsVisitor visitor)
      Description copied from interface: CdsDefinition
      Accepts a CdsVisitor visiting the elements of this definition (depth-first)
      Specified by:
      accept in interface CdsDefinition
      Parameters:
      visitor - the CdsVisitor