Namespace class

Utility class for handling Bayeux channel namespaces

Constructors

Namespace.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

getChildNamespaces(String namespace, List<String> channels) List<String>
Get all child namespaces of a namespace
getNamespace(String channel) String?
Get the namespace of a channel
getParentNamespaces(String channel) List<String>
Get all parent namespaces of a channel
getRelativePath(String channel, String namespace) String?
Get the relative path from a namespace
isInNamespace(String channel, String namespace) bool
Check if a channel is in a namespace
isMetaChannel(String channel) bool
Check if a channel is a meta channel
isServiceChannel(String channel) bool
Check if a channel is a service channel
isWildcardPattern(String channel) bool
Check if a channel is a wildcard pattern
join(List<String> parts) String
Join namespace parts
normalize(String channel) String
Normalize a channel name
split(String channel) List<String>
Split a channel into parts