Class NotifSnapshotVariable

java.lang.Object
flexagon.ff.common.core.pojos.BasePOJO
flexagon.fd.model2.notification.pojos.NotifSnapshotVariable
All Implemented Interfaces:
Serializable

public class NotifSnapshotVariable extends BasePOJO
An object representing a release snapshot variable. The metadata is defined on the pipeline which is referenced by a release, and the value is defined on each snapshot for releases that reference that pipeline. For use within Notification Templates.
See Also:
  • Constructor Details

    • NotifSnapshotVariable

      public NotifSnapshotVariable(String pName, DataTypeEnum pType, String pDescription, String pValueAsString)
      Contructs a release snapshot variable from the given metadata and value.
      Parameters:
      pName - The name of the release snapshot variable.
      pType - The datatype of the release snapshot variable.
      pDescription - The description of the release snapshot variable.
      pValueAsString - The value of the release snapshot variable as a String. The value will be converted to appropriate primitive wrapper.
  • Method Details

    • getName

      public String getName()
      Returns the name of the release snapshot variable.
      Returns:
      The snapshot variable name.
    • getDescription

      public String getDescription()
      Returns the name of the release snapshot variable.
      Returns:
      The snapshot variable description.
    • getValue

      public Serializable getValue()
      Returns the value of the release snapshot variable, converted to the corresponding datatype (i.e. String, Integer, Long, Double, Boolean).
      Returns:
      The value of release snapshot variable. Concrete type will be one of [String, Integer, Long, Double, Boolean].
    • getTypeEnum

      public DataTypeEnum getTypeEnum()
      Returns the datatype for this snapshot variable.
      Returns:
      The snapshot variable datatype.
    • getType

      public String getType()
      Returns the type name of the release snapshot variable (i.e. String, Integer, Long, Double, Boolean).
      Returns:
      The release snapshot variable datatype name.
    • toString

      public String toString()
      Returns a string representation of this object.
      Overrides:
      toString in class BasePOJO
      Returns:
      A string representation of the object.