Class NotifSnapshotVariable
java.lang.Object
flexagon.ff.common.core.pojos.BasePOJO
flexagon.fd.model2.notification.pojos.NotifSnapshotVariable
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionNotifSnapshotVariable(String pName, DataTypeEnum pType, String pDescription, String pValueAsString) Contructs a release snapshot variable from the given metadata and value. -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the release snapshot variable.getName()Returns the name of the release snapshot variable.getType()Returns the type name of the release snapshot variable (i.e.Returns the datatype for this snapshot variable.getValue()Returns the value of the release snapshot variable, converted to the corresponding datatype (i.e.toString()Returns a string representation of this object.
-
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
Returns the name of the release snapshot variable.- Returns:
- The snapshot variable name.
-
getDescription
Returns the name of the release snapshot variable.- Returns:
- The snapshot variable description.
-
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
Returns the datatype for this snapshot variable.- Returns:
- The snapshot variable datatype.
-
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
Returns a string representation of this object.
-