Interface CdsEntity

    • Method Detail

      • isAbstract

        boolean isAbstract()
        Returns true if this entity is abstract.
        Returns:
        true if this entity is abstract, otherwise false
      • isView

        boolean isView()
        Returns true if this entity is a view.
        Returns:
        true if this entity is a view, otherwise false
      • isProjection

        boolean isProjection()
        Returns true if this entity is a projection.
        Returns:
        true if this entity is a projection, otherwise false
      • query

        Optional<CqnSelect> query()
        Returns the query of this CdsEntity.
        Returns:
        an Optional describing the query, or an empty Optional if there is no query
        See Also:
        CqnSelect
      • params

        Stream<CdsParameter> params()
        Returns a sequential Stream over the CdsParameter(s) of this CdsEntity.
        Returns:
        a sequential Stream over the CdsParameter(s)
      • actions

        Stream<CdsAction> actions()
        Returns a sequential Stream over the bounded CdsAction(s) of this CdsEntity.
        Returns:
        a sequential Stream over the CdsAction(s)
      • findAction

        Optional<CdsAction> findAction​(String name)
        Returns an Optional wrapping a bounded CdsAction.
        Parameters:
        name - the name of the CdsAction
        Returns:
        an Optional describing the CdsAction with the given name, or an empty Optional if there is no CdsAction with this name
      • functions

        Stream<CdsFunction> functions()
        Returns a sequential Stream over the bounded CdsFunction(s) of this CdsEntity.
        Returns:
        a sequential Stream over the CdsFunction(s)
      • findFunction

        Optional<CdsFunction> findFunction​(String name)
        Returns an Optional wrapping a bounded CdsFunction.
        Parameters:
        name - the name of the CdsFunction
        Returns:
        an Optional describing the CdsFunction with the given name, or an empty Optional if there is no CdsFunction with this name
      • getKind

        default CdsKind getKind()
        Description copied from interface: CdsDefinition
        Returns the kind of this definition.
        Specified by:
        getKind in interface CdsDefinition
        Returns:
        the kind of this definition