C# Class NAnt.Core.LocationMap

Afficher le fichier Open project: skolima/NAnt

Méthodes publiques

Méthode Description
Add ( XmlDocument doc ) : void

Adds an XmlDocument to the map.

An XmlDocument can only be added to the map once.

FileIsMapped ( string fileOrUri ) : bool

Determines if a file has been loaded by the current project.

GetLocation ( XmlNode node ) : Location

Returns the Location in the XML file for the given node.

The node must be from an XmlDocument that has been added to the map.

LocationMap ( ) : System

Initializes a new instance of the LocationMap class.

Private Methods

Méthode Description
GetXPathFromNode ( XmlNode node ) : string

Method Details

Add() public méthode

Adds an XmlDocument to the map.
An XmlDocument can only be added to the map once.
public Add ( XmlDocument doc ) : void
doc System.Xml.XmlDocument
Résultat void

FileIsMapped() public méthode

Determines if a file has been loaded by the current project.
public FileIsMapped ( string fileOrUri ) : bool
fileOrUri string The file to check.
Résultat bool

GetLocation() public méthode

Returns the Location in the XML file for the given node.
The node must be from an XmlDocument that has been added to the map.
public GetLocation ( XmlNode node ) : Location
node System.Xml.XmlNode
Résultat Location

LocationMap() public méthode

Initializes a new instance of the LocationMap class.
public LocationMap ( ) : System
Résultat System