All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sap.cds.reflect.CdsService Maven / Gradle / Ivy

There is a newer version: 3.8.0
Show newest version
/************************************************************************
 * © 2019-2024 SAP SE or an SAP affiliate company. All rights reserved. *
 ************************************************************************/
package com.sap.cds.reflect;

import java.util.stream.Stream;

public interface CdsService extends CdsDefinition {

	/**
	 * Returns a sequential {@code Stream} over all {@link CdsEvent} definitions in
	 * this service.
	 *
	 * @return a sequential {@code Stream} over the {@link CdsEvent} definitions
	 */
	Stream events();

	/**
	 * Returns a sequential {@code Stream} over all {@link CdsEntity} definitions in
	 * this service.
	 *
	 * @return a sequential {@code Stream} over the {@link CdsEntity} definitions
	 */
	Stream entities();

	/**
	 * Returns a sequential {@code Stream} over all {@link CdsFunction} definitions
	 * in this service.
	 *
	 * @return a sequential {@code Stream} over the {@link CdsFunction} definitions
	 */
	Stream functions();

	/**
	 * Returns a sequential {@code Stream} over all {@link CdsAction} definitions in
	 * this service.
	 *
	 * @return a sequential {@code Stream} over the {@link CdsAction} definitions
	 */
	Stream actions();

	@Override
	default CdsKind getKind() {
		return CdsKind.SERVICE;
	}

	@Override
	default void accept(CdsVisitor visitor) {
		visitor.visit(this);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy