public class CdsResourcePathBuilder extends Object
CdsResourcePaths conveniently.| Constructor and Description |
|---|
CdsResourcePathBuilder() |
| Modifier and Type | Method and Description |
|---|---|
CdsResourcePath |
build()
Finally constructs the
CdsResourcePath |
static CdsResourcePathBuilder |
cds(com.sap.cds.reflect.CdsDefinition cdsDefinition) |
CdsResourcePathBuilder |
isPublic(boolean isPublic)
Specifies if the current path should be public accessible
|
CdsResourcePathBuilder |
path(String... paths)
Sets the path of the resource.
|
CdsResourcePathBuilder |
publicEvents(Stream<String> publicEvents)
Specifies public events.
|
CdsResourcePathBuilder |
subPath(CdsResourcePath subPath)
Adds a new
CdsResourcePath as child of the current path. |
CdsResourcePathBuilder |
subPaths(Stream<CdsResourcePath> subPaths)
Adds new
CdsResourcePaths as children of the current path. |
public static CdsResourcePathBuilder cds(com.sap.cds.reflect.CdsDefinition cdsDefinition)
public CdsResourcePathBuilder path(String... paths)
paths - The path partspublic CdsResourcePathBuilder isPublic(boolean isPublic)
isPublic - if true the path should be accessible for publicpublic CdsResourcePathBuilder publicEvents(Stream<String> publicEvents)
publicEvents - The public eventspublic CdsResourcePathBuilder subPath(CdsResourcePath subPath)
CdsResourcePath as child of the current path.subPath - The sub path to be addedpublic CdsResourcePathBuilder subPaths(Stream<CdsResourcePath> subPaths)
CdsResourcePaths as children of the current path.subPaths - The sub paths to be addedpublic CdsResourcePath build()
CdsResourcePathCdsResourcePathCopyright © 2021. All rights reserved.