public class RegExFilter extends AbstractChannelsFilter
AgentChannelsFilter.Event, AgentChannelsFilter.ListenerPersistable.DescriptordescriptorALL, CATEGORY| Constructor and Description |
|---|
RegExFilter(String name,
String regex,
boolean wholePath) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getDisplayPaths(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, waitgetUnfilteredgetAgents, getAttributes, getDisplayChannels, getDisplayPath, getDisplayPath, getDisplayPath, getDisplayPaths, getFields, getOriginChannels, getOriginPaths, isSelector, matchTemplateedit, getCategory, 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()
PersistableAgentChannelsFilternull if this filter has no name.public List<String> getDisplayPaths(String originPath)
AgentChannelsFilter
If the specified original channel is not accepted by this filter,
this method should return an empty list. null should never be returned.
The default implementation returns a singleton list that contains a string
returned by AgentChannelsFilter.getDisplayPath(String) method.
originPath - Original path.public String getOriginPath(String displayPath)
AgentChannelsFilternull.
The default implementation returns the display path provided as an argument.
displayPath - Display channel path.null if the specified path does not correspond to any original channel.Copyright © 2019 LSST. All rights reserved.