Package com.sap.cds.reflect.impl
Class CdsStructuredTypeBuilder<T extends CdsStructuredType>
java.lang.Object
com.sap.cds.reflect.impl.CdsAnnotableBuilder<T>
com.sap.cds.reflect.impl.CdsDefinitionBuilder<T>
com.sap.cds.reflect.impl.CdsTypeBuilder<T>
com.sap.cds.reflect.impl.CdsStructuredTypeBuilder<T>
- Direct Known Subclasses:
CdsEntityBuilder
,CdsEventBuilder
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected final String
protected final Map<String,
CdsElementBuilder<?>> protected final CdsKind
Fields inherited from class com.sap.cds.reflect.impl.CdsDefinitionBuilder
name, qualifiedName
Fields inherited from class com.sap.cds.reflect.impl.CdsAnnotableBuilder
annotations
-
Constructor Summary
ConstructorDescriptionCdsStructuredTypeBuilder
(List<CdsAnnotation<?>> annotations, String qualifiedName, String name, CdsKind kind, String doc) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addElement
(CdsElementBuilder<?> e) void
addElements
(List<CdsElementBuilder<?>> elements) build()
boolean
protected void
putStructuredElementIfAbsent
(String name, Function<String, CdsElementBuilder<?>> mappingFunction) toString()
Methods inherited from class com.sap.cds.reflect.impl.CdsTypeBuilder
isArrayed
Methods inherited from class com.sap.cds.reflect.impl.CdsDefinitionBuilder
build, getName, getQualifiedName
Methods inherited from class com.sap.cds.reflect.impl.CdsAnnotableBuilder
annotation
-
Field Details
-
elements
-
kind
-
doc
-
-
Constructor Details
-
CdsStructuredTypeBuilder
-
-
Method Details
-
addElement
-
addElements
-
build
- Specified by:
build
in classCdsDefinitionBuilder<T extends CdsStructuredType>
-
putElements
-
isStructured
public boolean isStructured()- Overrides:
isStructured
in classCdsTypeBuilder<T extends CdsStructuredType>
-
toString
-
putStructuredElementIfAbsent
public CdsElementBuilder<?> putStructuredElementIfAbsent(String name, Function<String, CdsElementBuilder<?>> mappingFunction)
-