Summary
Models a NAnt XML element in the build file.
- Assembly
- NAnt
.Core .dll - Namespace
- NAnt
.Core - Base Types
-
- Object
- Derived Types
-
- NUnitTest
- InElement
- Formatter
- Library
- PathElement
- ChainableReader
- AssemblyAttribute
- Category
- FormatterElement
- Task
- EnvironmentVariable
- DataTypeBase
- RawXml
- Target
- Module
- EnvironmentSet
- Argument
- Symbol
- XsltParameter
- Token
- NUnit2Test
- FileSet
.ExcludesFile - Pattern
- XsltExtensionObject
- XmlNamespace
- NamespaceImport
- Package
- FileSet
.Exclude - Option
- WebMap
- ElementContainer
- CompilerWarning
graph BT
Type-->Base0["Object"]
Type["Element"]
class Type type-node
Derived0["NUnitTest"]-->Type
click Derived0 "/api/NAnt.NUnit1.Types/NUnitTest"
Derived1["InElement"]-->Type
click Derived1 "/api/NAnt.Core.Tasks/InElement"
Derived2["Formatter"]-->Type
click Derived2 "/api/NAnt.Core.Types/Formatter"
Derived3["Library"]-->Type
click Derived3 "/api/NAnt.VisualCpp.Types/Library"
Derived4["PathElement"]-->Type
click Derived4 "/api/NAnt.Core.Types/PathElement"
Derived5["ChainableReader"]-->Type
click Derived5 "/api/NAnt.Core.Filters/ChainableReader"
Derived6["AssemblyAttribute"]-->Type
click Derived6 "/api/NAnt.DotNet.Types/AssemblyAttribute"
Derived7["Category"]-->Type
click Derived7 "/api/NAnt.NUnit2.Types/Category"
Derived8["FormatterElement"]-->Type
click Derived8 "/api/NAnt.NUnit.Types/FormatterElement"
Derived9["Task"]-->Type
click Derived9 "/api/NAnt.Core/Task"
Derived10["EnvironmentVariable"]-->Type
click Derived10 "/api/NAnt.Core.Types/EnvironmentVariable"
Derived11["DataTypeBase"]-->Type
click Derived11 "/api/NAnt.Core/DataTypeBase"
Derived12["RawXml"]-->Type
click Derived12 "/api/NAnt.Core.Types/RawXml"
Derived13["Target"]-->Type
click Derived13 "/api/NAnt.Core/Target"
Derived14["Module"]-->Type
click Derived14 "/api/NAnt.DotNet.Types/Module"
Derived15["EnvironmentSet"]-->Type
click Derived15 "/api/NAnt.Core.Types/EnvironmentSet"
Derived16["Argument"]-->Type
click Derived16 "/api/NAnt.Core.Types/Argument"
Derived17["Symbol"]-->Type
click Derived17 "/api/NAnt.VisualCpp.Types/Symbol"
Derived18["XsltParameter"]-->Type
click Derived18 "/api/NAnt.Core.Types/XsltParameter"
Derived19["Token"]-->Type
click Derived19 "/api/NAnt.Core.Types/Token"
Derived20["NUnit2Test"]-->Type
click Derived20 "/api/NAnt.NUnit2.Types/NUnit2Test"
Derived21["FileSet.ExcludesFile"]-->Type
click Derived21 "/api/NAnt.Core.Types/ExcludesFile"
Derived22["Pattern"]-->Type
click Derived22 "/api/NAnt.Core.Types/Pattern"
Derived23["XsltExtensionObject"]-->Type
click Derived23 "/api/NAnt.Core.Types/XsltExtensionObject"
Derived24["XmlNamespace"]-->Type
click Derived24 "/api/NAnt.Core.Types/XmlNamespace"
Derived25["NamespaceImport"]-->Type
click Derived25 "/api/NAnt.DotNet.Types/NamespaceImport"
Derived26["Package"]-->Type
click Derived26 "/api/NAnt.DotNet.Types/Package"
Derived27["FileSet.Exclude"]-->Type
click Derived27 "/api/NAnt.Core.Types/Exclude"
Derived28["Option"]-->Type
click Derived28 "/api/NAnt.Core.Types/Option"
Derived29["WebMap"]-->Type
click Derived29 "/api/NAnt.VSNet.Types/WebMap"
Derived30["ElementContainer"]-->Type
click Derived30 "/api/NAnt.Core/ElementContainer"
Derived31["CompilerWarning"]-->Type
click Derived31 "/api/NAnt.DotNet.Types/CompilerWarning"
Syntax
[Serializable()]
public abstract class Element
Remarks
Automatically validates attributes in the element based on attributes applied to members in derived classes.
Attributes
Type | Description |
---|---|
Serializable |
Constructors
Name | Summary |
---|---|
Element |
Initializes a new instance of the NAnt.Core.Element class.
|
Element |
Initializes a new instance of the NAnt.Core.Element class
from the specified element.
|
Properties
Name | Value | Summary |
---|---|---|
CustomXmlProcessing | bool |
Gets a value indicating whether the element is performing additional
processing using the
NAnt.Core.Element.XmlNode that was used to
initialize the element.
|
Location | Location |
Gets or sets the location in the build file where the element is
defined.
|
Name | string |
Gets the name of the XML element used to initialize this element.
|
NamespaceManager | XmlNamespaceManager |
Gets or sets the
System.Xml.XmlNamespaceManager .
|
Parent | Object |
Gets or sets the parent of the element.
|
Project | Project |
Gets or sets the
NAnt.Core.Element.Project to which this element belongs.
|
Properties | PropertyDictionary |
Gets the properties local to this
NAnt.Core.Element and the
NAnt.Core.Element.Project .
|
XmlNode | XmlNode |
Gets or sets the XML node of the element.
|
Methods
Name | Value | Summary |
---|---|---|
CopyTo |
void |
Copies all instance data of the
NAnt.Core.Element to a given
NAnt.Core.Element .
|
Get |
XmlNode |
Locates the XML node for the specified attribute in the project
configuration node.
|
Get |
XmlNode | |
GetLocation |
Location |
Retrieves the location in the build file where the element is
defined.
|
Initialize |
void |
Derived classes should override to this method to provide extra
initialization and validation not covered by the base class.
|
Initialize |
void |
Performs default initialization.
|
Initialize |
Element |
Initializes the build element.
static
|
InitializeElement |
void |
Derived classes should override to this method to provide extra
initialization and validation not covered by the base class.
|
InitializeXml |
void |
Initializes all build attributes and child elements.
|
Log |
void |
Logs a message with the given priority.
|
Log |
void |
Logs a message with the given priority.
|