public class RegExFilter extends AbstractChannelsFilter
AgentChannelsFilter.Event, AgentChannelsFilter.ListenerPersistable.DescriptordescriptorALL| Constructor and Description |
|---|
RegExFilter(String name,
String regex,
boolean wholePath) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getDisplayPath(String originPath)
Returns a list of display channels for the specified original path.
|
String |
getName()
Returns the name of this filter.
|
String |
getOriginPath(String displayPath)
Returns the original path corresponding to the specified display channel.
|
addListener, getDescriptor, notifyListeners, removeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAgents, getAttributes, getDisplayChannels, getDisplayPath, getDisplayPath, getFields, getOriginChannels, isSelector, matchTemplategetCategory, getEditor, restore, restore, save@Create(category="AgentChannelsFilter", name="Regular expression filter", path="Built-In/Regular Expression", description="Channels filter that uses a regular expression to select channels and leaves the path unchanged.") public RegExFilter(@Par(def="_null_",desc="Filter name. Optional.") String name, @Par(def="_null_",desc="Regular expression to be applied tochanel path.") String regex, @Par(def="true",desc="Match the whole path.") boolean wholePath)
public String getName()
AgentChannelsFilterpublic List<String> getDisplayPath(String originPath)
AgentChannelsFilter
Not that if the specified original channel is not accepted by this filter,
this method should return an empty list. null should never be returned.
originPath - Original path.public String getOriginPath(String displayPath)
AgentChannelsFilterdisplayPath - Display channel path.null if the specified path does not correspond to any original channel.Copyright © 2019 LSST. All rights reserved.