Package org.cytoscape.filter.model
Interface ValidatableTransformer<C,E>
-
- All Superinterfaces:
Transformer<C,E>
public interface ValidatableTransformer<C,E> extends Transformer<C,E>
A marker interface that can be added to anyTransformer
to indicate that the transformer may be invalid in certain contexts. For example a ColumnFilter is invalid when the current network does not contain the column referenced by the filter. Validation runs whenever the context changes (for example when the current network changes) or when theTransformerListener
s for this transformer are notified.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default List<ValidationWarning>
validate(C context)
Called whenever the context changes (for example when the current network changes) or when theTransformerListener
s for this transformer are notified.default List<ValidationWarning>
validateCreation()
Called when a filter is created through a command.-
Methods inherited from interface org.cytoscape.filter.model.Transformer
addListener, getContextType, getElementType, getId, getName, removeListener
-
-
-
-
Method Detail
-
validate
default List<ValidationWarning> validate(C context)
Called whenever the context changes (for example when the current network changes) or when theTransformerListener
s for this transformer are notified.
-
validateCreation
default List<ValidationWarning> validateCreation()
Called when a filter is created through a command.
-
-