C# Class NAnt.Core.Element.AttributeConfigurator

Configures an Element using meta-data provided by assigned attributes.
Show file Open project: skolima/NAnt

Public Methods

Method Description
AttributeConfigurator ( Element element, XmlNode elementNode, PropertyDictionary properties, FrameworkInfo targetFramework ) : System

Initializes a new instance of the AttributeConfigurator class for the given Element.

Initialize ( ) : void

Protected Methods

Method Description
InitializeAttribute ( PropertyInfo propertyInfo ) : bool
InitializeBuildElement ( XmlNode childNode, Type elementType ) : Element
InitializeBuildElementCollection ( PropertyInfo propertyInfo ) : bool
InitializeChildElement ( PropertyInfo propertyInfo, MethodInfo getter, MethodInfo setter ) : bool
InitializeOrderedChildElements ( ) : void

Private Methods

Method Description
CreateAttributeSetter ( Type attributeType ) : IAttributeSetter

Creates an IAttributeSetter for the given Type.

CreateChildBuildElement ( PropertyInfo propInf, MethodInfo getter, MethodInfo setter, XmlNode xml, PropertyDictionary properties, FrameworkInfo framework ) : Element

Creates a child Element using property set/get methods.

Method Details

AttributeConfigurator() public method

Initializes a new instance of the AttributeConfigurator class for the given Element.
/// is . /// -or- /// is . /// -or- /// is . ///
public AttributeConfigurator ( Element element, XmlNode elementNode, PropertyDictionary properties, FrameworkInfo targetFramework ) : System
element Element The for which an should be created.
elementNode System.Xml.XmlNode The to initialize the with.
properties PropertyDictionary The to use for property expansion.
targetFramework FrameworkInfo The framework that the should target.
return System

Initialize() public method

public Initialize ( ) : void
return void

InitializeAttribute() protected method

protected InitializeAttribute ( PropertyInfo propertyInfo ) : bool
propertyInfo System.Reflection.PropertyInfo
return bool

InitializeBuildElement() protected method

protected InitializeBuildElement ( XmlNode childNode, Type elementType ) : Element
childNode System.Xml.XmlNode
elementType System.Type
return Element

InitializeBuildElementCollection() protected method

protected InitializeBuildElementCollection ( PropertyInfo propertyInfo ) : bool
propertyInfo System.Reflection.PropertyInfo
return bool

InitializeChildElement() protected method

protected InitializeChildElement ( PropertyInfo propertyInfo, MethodInfo getter, MethodInfo setter ) : bool
propertyInfo System.Reflection.PropertyInfo
getter System.Reflection.MethodInfo
setter System.Reflection.MethodInfo
return bool

InitializeOrderedChildElements() protected method

protected InitializeOrderedChildElements ( ) : void
return void