Class Value

java.lang.Object
com.cedarpolicy.value.Value
Direct Known Subclasses:
CedarList, CedarMap, Decimal, EntityUID, IpAddress, PrimBool, PrimLong, PrimString

public abstract class Value extends Object
A value in the Cedar language model.
  • Constructor Details

    • Value

      public Value()
  • Method Details

    • toCedarExpr

      public abstract String toCedarExpr()
      Convert the Value instance into a string containing the Cedar source code for the equivalent Cedar value. This is useful if you e.g., want to print the value in a programatically generated policy.
      Returns:
      Cedar source code for the value.