Enum Class CdsAnnotations

java.lang.Object
java.lang.Enum<CdsAnnotations>
com.sap.cds.services.utils.model.CdsAnnotations
All Implemented Interfaces:
Serializable, Comparable<CdsAnnotations>, Constable

public enum CdsAnnotations extends Enum<CdsAnnotations>
Supported CDS annotations
  • Enum Constant Details

  • Method Details

    • values

      public static CdsAnnotations[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CdsAnnotations valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getOrDefault

      public <T> T getOrDefault(com.sap.cds.reflect.CdsAnnotatable cdsModelElement)
    • isTrue

      public boolean isTrue(com.sap.cds.reflect.CdsAnnotatable cdsModelElement)
    • getListOrDefault

      public <T> List<T> getListOrDefault(com.sap.cds.reflect.CdsAnnotatable cdsModelElement)
    • getListOrValue

      public <T> List<T> getListOrValue(com.sap.cds.reflect.CdsAnnotatable cdsModelElement, T value)
    • getOrValue

      public <T> T getOrValue(com.sap.cds.reflect.CdsAnnotatable cdsModelElement, T value)