DataSource.NET  7.1.27.94946-7eb8eb54
Caplin.DataSource.Namespace.PrefixNamespace Class Reference

The prefix namespace matches the initial part of a subject name. More...

Inheritance diagram for Caplin.DataSource.Namespace.PrefixNamespace:
Caplin.DataSource.Namespace.INamespace

Public Member Functions

bool Match (string subject)
 Tests an string to see if it falls within (matches) this INamespace. More...
 
 PrefixNamespace (string prefix)
 Initializes a new instance of the PrefixNamespace class. More...
 
override string ToString ()
 Returns a System.String that represents this instance. More...
 

Detailed Description

The prefix namespace matches the initial part of a subject name.

A prefix namespace matches a subject according to the start of the subject name. For example, if the prefix defined for the namespace is is /I/ and the subject presented is /I/VOD.L the Match method will return true. Should the presented subject be /R/VOD.L the Match method will return false.

Constructor & Destructor Documentation

Caplin.DataSource.Namespace.PrefixNamespace.PrefixNamespace ( string  prefix)
inline

Initializes a new instance of the PrefixNamespace class.

Parameters
prefixThe prefix to be matched. For example "/FX".

Member Function Documentation

bool Caplin.DataSource.Namespace.PrefixNamespace.Match ( string  subject)
inline

Tests an string to see if it falls within (matches) this INamespace.

Parameters
subjectThe string to be tested.
Returns
True if subject falls within (matches) this INamespace, false otherwise.

Implements Caplin.DataSource.Namespace.INamespace.

override string Caplin.DataSource.Namespace.PrefixNamespace.ToString ( )
inline

Returns a System.String that represents this instance.

Returns
A System.String that represents this instance.

Generated on Wed Jan 4 2023 17:00:07 for DataSource.NET