Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AbstractTopicSelector

An abstract implementation of TopicSelector

Hierarchy

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • Create a new AbstractTopicSelector

    Parameters

    • type: Type

      the type of this selector

    • prefix: string

      the maximum topic path prefix from this selector

    • expression: string

      the original expression of this selector

    Returns AbstractTopicSelector

Properties

Readonly expression

expression: string

The original expression of this selector

Readonly prefix

prefix: string

The maximum topic path prefix from this selector

Readonly type

type: Type

The type of this selector

Methods

Abstract doSelects

  • doSelects(canonical: string): boolean
  • Evaluate this selector against a canonical topic path

    Parameters

    • canonical: string

      the canonical topic path

    Returns boolean

    if this selector selects the topic path

selects

  • selects(topicPath: string): boolean
  • Evaluate this selector against a topic path

    Parameters

    • topicPath: string

      the topic path

    Returns boolean

    if this selector selects the topic path

toString

  • toString(): string
  • Convert the topic selector to a string

    Returns string

    the original expression of the selector

Copyright © 2025 DiffusionData Ltd. All Rights Reserved.