Class: TopicSelector

TopicSelector

new TopicSelector(type, prefix, expression)

A TopicSelector is a value that identifies one or more topics.
Parameters:
Name Type Description
type TopicSelector.Type The type of this selector.
prefix String The maximum topic path prefix from this selector.
expression String The original expression of this selector.

Members

<static, readonly> Prefix :String

Type:
  • String
Properties:
Name Type Default Description
PATH String > Prefix used for TopicSelector.Type.PATH expressions.
SPLIT_PATH_PATTERN String ? Prefix used for TopicSelector.Type.SPLIT_PATH_PATTERN expressions.
FULL_PATH_PATTERN String * Prefix used for TopicSelector.Type.FULL_PATH_PATTERN expressions.
SELECTOR_SET String # Prefix used for TopicSelector.Type.SELECTOR_SET expressions.

<static, readonly> Type :TopicSelector.Prefix

Topic Selector type.
Type:
Properties:
Name Type Default Description
PATH TopicSelector.Prefix TopicSelector.Prefix.PATH A selector that selects a single topic.
SPLIT_PATH_PATTERN TopicSelector.Prefix TopicSelector.Prefix.SPLIT_PATH_PATTERN A selector that is a split-path pattern.
FULL_PATH_PATTERN TopicSelector.Prefix TopicSelector.Prefix.FULL_PATH_PATTERN A selector that is a full-path pattern.
SELECTOR_SET TopicSelector.Prefix TopicSelector.Prefix.SELECTOR_SET A composite of multiple selectors.

Methods

selects(topicPath) → {Boolean}

Evaluate this selector against a topic path.
Parameters:
Name Type Description
topicPath String The topic path
Returns:
If this selector selects the topic path
Type
Boolean