Package com.sap.cds.reflect
Interface CdsEntity
- All Superinterfaces:
CdsAnnotatable,CdsDefinition,CdsNamed,CdsStructuredType,CdsType
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaccept(CdsVisitor visitor) Accepts aCdsVisitorvisiting the elements of this definition (depth-first)actions()findAction(String name) findFunction(String name) Returns anOptionalwrapping a boundedCdsFunction.Get a boundedCdsActionvia its name.getFunction(String name) Get aCdsFunctionvia its name.default CdsKindgetKind()Returns the kind of this definition.booleanReturnstrueif this entity is abstract.booleanReturnstrueif this entity is a projection.booleanisView()Returnstrueif this entity is a view.params()query()Returns the query of thisCdsEntity.Methods inherited from interface com.sap.cds.reflect.CdsAnnotatable
annotations, findAnnotation, getAnnotationValue, getDocMethods inherited from interface com.sap.cds.reflect.CdsDefinition
as, getKey, getName, getQualifiedName, getQualifierMethods inherited from interface com.sap.cds.reflect.CdsStructuredType
associations, compositions, concreteElements, concreteNonAssociationElements, elements, elementsOfType, findAssociation, findElement, getAssociation, getElement, getTargetOf, isAnonymous, isStructured, keyElements, nonAssociationElements, virtualElementsMethods inherited from interface com.sap.cds.reflect.CdsType
isArrayed, isAssociation, isEnum, isSimple, isSimpleType, isSymbolicType
-
Method Details
-
isAbstract
boolean isAbstract()Returnstrueif this entity is abstract.- Returns:
trueif this entity is abstract, otherwisefalse
-
isView
boolean isView()Returnstrueif this entity is a view.- Returns:
trueif this entity is a view, otherwisefalse
-
isProjection
boolean isProjection()Returnstrueif this entity is a projection.- Returns:
trueif this entity is a projection, otherwisefalse
-
query
Returns the query of thisCdsEntity.- Returns:
- an
Optionaldescribing the query, or an emptyOptionalif there is no query - See Also:
-
params
Stream<CdsParameter> params()- Returns:
- a sequential
Streamover theCdsParameter(s)
-
actions
- Returns:
- a sequential
Streamover theCdsAction(s)
-
getAction
Get a boundedCdsActionvia its name.- Parameters:
name- the name of theCdsAction- Returns:
- the
CdsActionwith the given name - Throws:
CdsOperationNotFoundException- if there is noCdsActionwith the given name
-
findAction
- Parameters:
name- the name of theCdsAction- Returns:
- an
Optionaldescribing theCdsActionwith the given name, or an emptyOptionalif there is noCdsActionwith this name
-
functions
Stream<CdsFunction> functions()- Returns:
- a sequential
Streamover theCdsFunction(s)
-
getFunction
Get aCdsFunctionvia its name.- Parameters:
name- the name of theCdsFunction- Returns:
- the
CdsFunctionwith the given name - Throws:
CdsOperationNotFoundException- if there is noCdsFunctionwith the given name
-
findFunction
Returns anOptionalwrapping a boundedCdsFunction.- Parameters:
name- the name of theCdsFunction- Returns:
- an
Optionaldescribing theCdsFunctionwith the given name, or an emptyOptionalif there is noCdsFunctionwith this name
-
getKind
Description copied from interface:CdsDefinitionReturns the kind of this definition.- Specified by:
getKindin interfaceCdsDefinition- Returns:
- the kind of this definition
-
accept
Description copied from interface:CdsDefinitionAccepts aCdsVisitorvisiting the elements of this definition (depth-first)- Specified by:
acceptin interfaceCdsDefinition- Specified by:
acceptin interfaceCdsStructuredType- Parameters:
visitor- theCdsVisitor
-