Package com.sap.cds.services.utils.path
Interface CdsResourcePath
- All Superinterfaces:
Comparable<CdsResourcePath>
A
CdsResourcePath describes the hierarchical structure of a resource along with
additional meta information.-
Method Summary
Modifier and TypeMethodDescriptiondefault intcom.sap.cds.reflect.CdsDefinitionReturns the CDS model element attached to the resourcegetPath()The path including the resource's base path.default <T extends com.sap.cds.reflect.CdsDefinition>
booleanChecks if the referredCdsDefinitiongiven withgetCdsDefinition()is of given type.booleanisPublic()Iftrue, the endpoint should be exposed to public, i.e. without authenticationAStreamof events that are public even ifisPublic()==false.subPaths()AStreamof child paths.
-
Method Details
-
getPath
String getPath()The path including the resource's base path.- Returns:
- The path of the resource endpoint
-
isPublic
boolean isPublic()Iftrue, the endpoint should be exposed to public, i.e. without authentication- Returns:
trueif public
-
publicEvents
AStreamof events that are public even ifisPublic()==false.- Returns:
- The stream of public events
-
subPaths
Stream<CdsResourcePath> subPaths()AStreamof child paths.- Returns:
- The child ResourcePaths
-
getCdsDefinition
com.sap.cds.reflect.CdsDefinition getCdsDefinition()Returns the CDS model element attached to the resource- Returns:
- The CDS model element
-
hasType
Checks if the referredCdsDefinitiongiven withgetCdsDefinition()is of given type.- Type Parameters:
T- The type parameter- Parameters:
clazz- The type to be checked- Returns:
trueif the type matches the referred object
-
compareTo
- Specified by:
compareToin interfaceComparable<CdsResourcePath>
-