Interface CdsElementExtender


@Beta public interface CdsElementExtender
The CdsElementExtender allows to define and extend the underlying CdsElement.
  • Method Details

    • type

      Sets the type for the element.
      Parameters:
      baseType - the base type
      Returns:
      this CdsElementExtender
      Throws:
      IllegalStateException - if the element is typed already
    • type

      CdsElementExtender type(CdsBaseType baseType, Map<String,Object> properties)
      Sets the type for the element.
      Parameters:
      baseType - the base type
      properties - base type properties
      Returns:
      this CdsElementExtender
      Throws:
      IllegalStateException - if the element is typed already
    • addAnnotation

      CdsElementExtender addAnnotation(String key, Object value)
      Adds an annotation to the element.
      Parameters:
      key - the annotation key
      value - the annotation value
      Returns:
      this CdsElementExtender
    • and

      Returns to the CdsEntityExtender that created this CdsElementExtender.
      Returns:
      the parent CdsEntityExtender to continue extending the entity