C# Class XmlIntelliSense.App.XHelper.XmlElementInformation

Source: Sharpdevelop
Datei anzeigen Open project: Code-Inside/Samples Class Usage Examples

Public Methods

Method Description
AddElement ( XmlElementQualifiedName elementName ) : void
Compact ( ) : void

Compacts the path so it only contains the elements that are from the namespace of the last element in the path.

This method is used when we need to know the path for a particular namespace and do not care about the complete path.

Equals ( object obj ) : bool

An xml element path is considered to be equal if each path item has the same name and namespace.

GetHashCode ( ) : int
GetNamespaceForPrefix ( string prefix ) : string
GetRootNamespace ( ) : string
SetNamespaceForUnqualifiedNames ( string namespaceUri ) : void

Only updates those names without a namespace.

ToString ( ) : string
XmlElementInformation ( )

Private Methods

Method Description
LastIndexNotMatchingNamespace ( string namespaceUri ) : int

Method Details

AddElement() public method

public AddElement ( XmlElementQualifiedName elementName ) : void
elementName XmlElementQualifiedName
return void

Compact() public method

Compacts the path so it only contains the elements that are from the namespace of the last element in the path.
This method is used when we need to know the path for a particular namespace and do not care about the complete path.
public Compact ( ) : void
return void

Equals() public method

An xml element path is considered to be equal if each path item has the same name and namespace.
public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetNamespaceForPrefix() public method

public GetNamespaceForPrefix ( string prefix ) : string
prefix string
return string

GetRootNamespace() public method

public GetRootNamespace ( ) : string
return string

SetNamespaceForUnqualifiedNames() public method

Only updates those names without a namespace.
public SetNamespaceForUnqualifiedNames ( string namespaceUri ) : void
namespaceUri string
return void

ToString() public method

public ToString ( ) : string
return string

XmlElementInformation() public method