public interface ValidatableTransformer<C,E> extends Transformer<C,E>
Transformer
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 the TransformerListener
s for this transformer are notified.Modifier and Type | Method and Description |
---|---|
default List<ValidationWarning> |
validate(C context)
Called whenever the context changes (for example when the current network changes)
or when the
TransformerListener s for this transformer are notified. |
default List<ValidationWarning> |
validateCreation()
Called when a filter is created through a command.
|
addListener, getContextType, getElementType, getId, getName, removeListener
default List<ValidationWarning> validate(C context)
TransformerListener
s for this transformer are notified.default List<ValidationWarning> validateCreation()
Copyright 2011-2015 Cytoscape Consortium. All rights reserved.