C# Класс NAnt.Core.Element

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetLocation ( ) : Location

Retrieves the location in the build file where the element is defined.

Initialize ( XmlNode elementNode ) : void

Performs default initialization.

Derived classes that wish to add custom initialization should override the M:Initialize() method.

InitializeBuildElement ( Element parent, XmlNode childNode, Element buildElement, Type elementType ) : Element
Log ( Level messageLevel, string message ) : void

Logs a message with the given priority.

The actual logging is delegated to the project.

Защищенные методы

Метод Описание
CopyTo ( Element clone ) : void

Copies all instance data of the Element to a given Element.

Element ( ) : System

Initializes a new instance of the Element class.

Element ( Element e ) : System

Initializes a new instance of the Element class from the specified element.

GetAttributeConfigurationNode ( FrameworkInfo framework, string attributeName ) : XmlNode

Locates the XML node for the specified attribute in the project configuration node.

If there's a valid current framework, the configuration section for that framework will first be searched. If no corresponding configuration node can be located in that section, the framework-neutral section of the project configuration node will be searched.

GetAttributeConfigurationNode ( XmlNode configSection, FrameworkInfo framework, string attributeName ) : XmlNode
Initialize ( ) : void

Derived classes should override to this method to provide extra initialization and validation not covered by the base class.

Access to the XmlNode that was used to initialize this Element is available through XmlNode.

InitializeXml ( XmlNode elementNode, PropertyDictionary properties, FrameworkInfo framework ) : void

Initializes all build attributes and child elements.

Приватные методы

Метод Описание
GetElementNameFromType ( Type type ) : string

Returns the ElementNameAttribute.Name of the ElementNameAttribute assigned to the specified Type.

Initialize ( XmlNode elementNode, PropertyDictionary properties, FrameworkInfo framework ) : void

Performs initialization using the given set of properties.

InitializeElement ( XmlNode elementNode ) : void

Описание методов

CopyTo() защищенный Метод

Copies all instance data of the Element to a given Element.
protected CopyTo ( Element clone ) : void
clone Element
Результат void

Element() защищенный Метод

Initializes a new instance of the Element class.
protected Element ( ) : System
Результат System

Element() защищенный Метод

Initializes a new instance of the Element class from the specified element.
protected Element ( Element e ) : System
e Element The element that should be used to create a new instance of the class.
Результат System

GetAttributeConfigurationNode() защищенный Метод

Locates the XML node for the specified attribute in the project configuration node.
If there's a valid current framework, the configuration section for that framework will first be searched. If no corresponding configuration node can be located in that section, the framework-neutral section of the project configuration node will be searched.
protected GetAttributeConfigurationNode ( FrameworkInfo framework, string attributeName ) : XmlNode
framework FrameworkInfo The framework to use to obtain framework specific information, or if no framework specific information should be used.
attributeName string The name of attribute for which the XML configuration node should be located.
Результат System.Xml.XmlNode

GetAttributeConfigurationNode() защищенный Метод

protected GetAttributeConfigurationNode ( XmlNode configSection, FrameworkInfo framework, string attributeName ) : XmlNode
configSection System.Xml.XmlNode
framework FrameworkInfo
attributeName string
Результат System.Xml.XmlNode

GetLocation() публичный Метод

Retrieves the location in the build file where the element is defined.
public GetLocation ( ) : Location
Результат Location

Initialize() защищенный Метод

Derived classes should override to this method to provide extra initialization and validation not covered by the base class.
Access to the XmlNode that was used to initialize this Element is available through XmlNode.
protected Initialize ( ) : void
Результат void

Initialize() публичный Метод

Performs default initialization.
Derived classes that wish to add custom initialization should override the M:Initialize() method.
public Initialize ( XmlNode elementNode ) : void
elementNode System.Xml.XmlNode
Результат void

InitializeBuildElement() публичный статический Метод

public static InitializeBuildElement ( Element parent, XmlNode childNode, Element buildElement, Type elementType ) : Element
parent Element
childNode System.Xml.XmlNode
buildElement Element
elementType System.Type
Результат Element

InitializeXml() защищенный Метод

Initializes all build attributes and child elements.
protected InitializeXml ( XmlNode elementNode, PropertyDictionary properties, FrameworkInfo framework ) : void
elementNode System.Xml.XmlNode
properties PropertyDictionary
framework FrameworkInfo
Результат void

Log() публичный Метод

Logs a message with the given priority.
The actual logging is delegated to the project.
public Log ( Level messageLevel, string message ) : void
messageLevel Level The message priority at which the specified message is to be logged.
message string The message to be logged.
Результат void