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 |
|---|---|
String |
getDisplayPath(String originPath)
Returns the display channel corresponding to 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, getDisplayPaths, 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 their paths unchanged.") public RegExFilter(@Par(def="_null_",desc="Filter name. Optional.") String name, @Par(desc="Regular expression to be applied to the channel path.") String regex, @Par(def="false",desc="Match the whole path. If checked, a channel is accepted only if the provided regular expression matches its entire path.") boolean wholePath)
public String getName()
PersistableAgentChannelsFilternull if this filter has no name.public String getDisplayPath(String originPath)
AgentChannelsFilternull.
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 an unmodified original path.
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.