Package com.vaadin.signals
Class SignalUtils
java.lang.Object
com.vaadin.signals.SignalUtils
Utility class for accessing/using signals internal API.
Note: This is internal API for Vaadin platform's internal usages. It is not intended for public use and may change or be removed in future releases.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisValid(AbstractSignal<?> signal, SignalCommand command) Checks whether the given command is considered valid by the validator instance of the provided signal.static SignalTreetreeOf(AbstractSignal<?> signal) Returns the underlyingSignalTreeinstance of the given signal.
-
Method Details
-
treeOf
Returns the underlyingSignalTreeinstance of the given signal.- Parameters:
signal- the signal to get the tree of, notnull- Returns:
- the signal tree instance, not
null
-
isValid
Checks whether the given command is considered valid by the validator instance of the provided signal. In case of composite commands such as transactions, this method will recursively check the validity of all commands in the transaction.Note: This only checks the validity of the commands that might make changes to the data.
- Parameters:
signal- the signal to check the command against, notnullcommand- the command to check, notnull- Returns:
trueif the command is valid,falseotherwise
-