C# Class NAnt.Core.LocationMap

Show file Open project: skolima/NAnt

Public Methods

Method 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

Method Description
GetXPathFromNode ( XmlNode node ) : string

Method Details

Add() public method

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
return void

FileIsMapped() public method

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

GetLocation() public method

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
return Location

LocationMap() public method

Initializes a new instance of the LocationMap class.
public LocationMap ( ) : System
return System