C# Class Ninject.Extensions.Xml.Processors.AbstractXmlAttributeProcessor

Abstract base implementation for attribute processors.
Inheritance: Ninject.Components.NinjectComponent, IXmlAttributeProcessor
Mostrar archivo Open project: ninject/Ninject.Extensions.Xml

Public Methods

Method Description
AppliesTo ( IOwnXmlNodeProcessor owner ) : bool

Specifies if the processor applies to the given owner.

Process ( string value, IOwnXmlNodeProcessor owner, IBindingConfigurationSyntax syntax ) : void

Handles the attribute.

Protected Methods

Method Description
AbstractXmlAttributeProcessor ( string attributeName, bool required, string parentTag ) : System.Linq

Initializes a new instance of the AbstractXmlAttributeProcessor class.

Method Details

AbstractXmlAttributeProcessor() protected method

Initializes a new instance of the AbstractXmlAttributeProcessor class.
protected AbstractXmlAttributeProcessor ( string attributeName, bool required, string parentTag ) : System.Linq
attributeName string The name of the attribute processed by this processor.
required bool if set to true the attribute is required.
parentTag string The tag that is expected on the owner to apply as child attribute processor.
return System.Linq

AppliesTo() public method

Specifies if the processor applies to the given owner.
public AppliesTo ( IOwnXmlNodeProcessor owner ) : bool
owner IOwnXmlNodeProcessor The owner.
return bool

Process() public abstract method

Handles the attribute.
public abstract Process ( string value, IOwnXmlNodeProcessor owner, IBindingConfigurationSyntax syntax ) : void
value string The value of the attribute.
owner IOwnXmlNodeProcessor The owner of this instance.
syntax IBindingConfigurationSyntax The binding syntax.
return void