Class ExpressionDrivenStringValue
java.lang.Object
com.inductiveautomation.perspective.gateway.driven.LockGuardedDrivenValue<T>
com.inductiveautomation.perspective.gateway.driven.ExpressionDrivenValue<String>
com.inductiveautomation.perspective.gateway.driven.ExpressionDrivenStringValue
- All Implemented Interfaces:
- DrivenValue<String>
An ExpressionDrivenStringValue is a 
ExpressionDrivenValue with type String. Calls to
 isValidValue(QualifiedValue) will always return true since the emitted expression values will be coerced
 to a String.- See Also:
- 
Field SummaryFields inherited from class com.inductiveautomation.perspective.gateway.driven.ExpressionDrivenValuedirty, valueFields inherited from class com.inductiveautomation.perspective.gateway.driven.LockGuardedDrivenValuelock
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedExpressionDrivenStringValue(Object lock, PerspectiveExpression expr, Runnable valueChangedCallback) 
- 
Method SummaryModifier and TypeMethodDescriptionCalled after asserting that the calling thread holds the injected lock.protected booleanisValidValue(QualifiedValue value) This method is called when a new value is emitted from the expression.Methods inherited from class com.inductiveautomation.perspective.gateway.driven.ExpressionDrivenValuegetAndClear, isDirtyInternal, isReadyInternal, resolveReferencesInternal, shutdown, startupMethods inherited from class com.inductiveautomation.perspective.gateway.driven.LockGuardedDrivenValueisDirty, isReady, resolveReferences
- 
Constructor Details- 
ExpressionDrivenStringValueprotected ExpressionDrivenStringValue(@Nonnull Object lock, @Nonnull PerspectiveExpression expr, @Nonnull Runnable valueChangedCallback) 
 
- 
- 
Method Details- 
isValidValueDescription copied from class:ExpressionDrivenValueThis method is called when a new value is emitted from the expression. If the value passes validation, the value is set, dirty bits are set, and the callback is notified. If the value does not pass validation, nothing happens and a debug message is logged.- Specified by:
- isValidValuein class- ExpressionDrivenValue<String>
- Parameters:
- value- the latest value emitted from the expression
- Returns:
- true if the value passes validation, false otherwise
 
- 
getAndClearInternalDescription copied from class:LockGuardedDrivenValueCalled after asserting that the calling thread holds the injected lock.- Specified by:
- getAndClearInternalin class- LockGuardedDrivenValue<String>
- See Also:
 
 
-