XBinder C# Runtime Library  2.8
Public Member Functions | Static Public Member Functions | Properties | List of all members
com.objsys.xbinder.runtime.XBQualifiedName Class Reference

Helper class surrounding qualified names. More...

Inheritance diagram for com.objsys.xbinder.runtime.XBQualifiedName:

Public Member Functions

 XBQualifiedName (string localName)
 Constructs an instance of XBQualifiedName with the LocalName property set to the value of the localName argument. More...
 
 XBQualifiedName (string URI, string localName)
 Constructs an instance of XBQualfiedName with the URI property set to the value of the URI argument and the LocalName property set to the value of the localName argument. More...
 
 XBQualifiedName (string URI, string localName, string prefix)
 Constructs an instance of XBQualifiedName with the URI property set to the value of the URI argument, the LocalName property set to the value of the localName argument, and the Prefix property set to the value of the prefix argument. More...
 
bool equals (XBQualifiedName qName)
 Returns true if current instance is equal to the specified instance. Only the URI and the local name are used for matching, not the prefix. More...
 

Static Public Member Functions

static bool namesMatch (XBQualifiedName qName, System.String URI, System.String localName)
 Returns true if the QName matches the given namespaceURI and localName. More...
 
static int searchArray (XBQualifiedName[] names, System.String namespaceURI, System.String localName)
 Return the index in given names array that matches the given namespaceURI and localName. Return -1 for no match. More...
 
static System.String toString (System.String namespaceURI, System.String localName)
 Returns a string representation of the given name. The form returned is "{namespaceURI}localName" or just "localName" if namespaceURI is an empty string or null. More...
 

Properties

string NamespaceURI [get, set]
 The URI associated with this qualified name's namespace. More...
 
string LocalName [get, set]
 The local part of the qualified name. More...
 
string Prefix [get, set]
 The prefix part of the qualified name. More...
 

Detailed Description

Helper class surrounding qualified names.

<author> Kevin/Doug

</author>

Constructor & Destructor Documentation

◆ XBQualifiedName() [1/3]

com.objsys.xbinder.runtime.XBQualifiedName.XBQualifiedName ( string  localName)

Constructs an instance of XBQualifiedName with the LocalName property set to the value of the localName argument.

Parameters
localNameThe intended value of the Name property

◆ XBQualifiedName() [2/3]

com.objsys.xbinder.runtime.XBQualifiedName.XBQualifiedName ( string  URI,
string  localName 
)

Constructs an instance of XBQualfiedName with the URI property set to the value of the URI argument and the LocalName property set to the value of the localName argument.

Parameters
URIThe intended value of the URI property
localNameThe intended value of the LocalName property

◆ XBQualifiedName() [3/3]

com.objsys.xbinder.runtime.XBQualifiedName.XBQualifiedName ( string  URI,
string  localName,
string  prefix 
)

Constructs an instance of XBQualifiedName with the URI property set to the value of the URI argument, the LocalName property set to the value of the localName argument, and the Prefix property set to the value of the prefix argument.

Parameters
URIThe intended value of the URI property
localNameThe intended value of the LocalName property
prefixThe intended value of the Prefix property

Member Function Documentation

◆ equals()

bool com.objsys.xbinder.runtime.XBQualifiedName.equals ( XBQualifiedName  qName)

Returns true if current instance is equal to the specified instance. Only the URI and the local name are used for matching, not the prefix.

Parameters
qNameThe XBQualifiedName instance to match against.
Returns
true if the instances match, false otherwise.

◆ namesMatch()

static bool com.objsys.xbinder.runtime.XBQualifiedName.namesMatch ( XBQualifiedName  qName,
System.String  URI,
System.String  localName 
)
static

Returns true if the QName matches the given namespaceURI and localName.

Parameters
name
namespaceURIUse empty string or null for empty namespaces.
localName
Returns

◆ searchArray()

static int com.objsys.xbinder.runtime.XBQualifiedName.searchArray ( XBQualifiedName []  names,
System.String  namespaceURI,
System.String  localName 
)
static

Return the index in given names array that matches the given namespaceURI and localName. Return -1 for no match.

Parameters
names
namespaceURIUse "" for empty no namespace, not null.
localName
Returns

◆ toString()

static System.String com.objsys.xbinder.runtime.XBQualifiedName.toString ( System.String  namespaceURI,
System.String  localName 
)
static

Returns a string representation of the given name. The form returned is "{namespaceURI}localName" or just "localName" if namespaceURI is an empty string or null.

Property Documentation

◆ LocalName

string com.objsys.xbinder.runtime.XBQualifiedName.LocalName
getset

The local part of the qualified name.

◆ NamespaceURI

string com.objsys.xbinder.runtime.XBQualifiedName.NamespaceURI
getset

The URI associated with this qualified name's namespace.

◆ Prefix

string com.objsys.xbinder.runtime.XBQualifiedName.Prefix
getset

The prefix part of the qualified name.