Class ParameterUtilities
- java.lang.Object
-
- com.inductiveautomation.ignition.common.tags.config.ParameterUtilities
-
public class ParameterUtilities extends java.lang.Object
This is a utility function to help deal with changes we've made to parameters over time (re-introduction of data types through ParameterValue).
-
-
Constructor Summary
Constructors Constructor Description ParameterUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BoundPropertySet
downgrade(BoundPropertySet ps)
Converts a modern parameter set back to the old style- used for version compatibility between remote systems.static BoundPropertySet
ensureUpgraded(BoundPropertySet ps)
Like upgrade, but only copies set if changes are needed.static BoundPropertySet
upgrade(BoundPropertySet ps)
Ensures the property set conforms to the new Parameters standard- keys are Parameters, values are ParameterValues.
-
-
-
Method Detail
-
ensureUpgraded
public static BoundPropertySet ensureUpgraded(BoundPropertySet ps)
Like upgrade, but only copies set if changes are needed.
-
upgrade
public static BoundPropertySet upgrade(BoundPropertySet ps)
Ensures the property set conforms to the new Parameters standard- keys are Parameters, values are ParameterValues. Since this returns a new BoundPropertySet, be careful using it too liberally, in situations where the prop set might be extended and such.
-
downgrade
public static BoundPropertySet downgrade(BoundPropertySet ps)
Converts a modern parameter set back to the old style- used for version compatibility between remote systems.
-
-