C# Class Castle.Windsor.Configuration.Interpreters.XmlProcessor.ElementProcessors.AbstractXmlNodeProcessor

Inheritance: IXmlNodeProcessor
Mostra file Open project: nats/castle-1.0.3-mono

Public Methods

Method Description
AbstractXmlNodeProcessor ( ) : System
Accept ( XmlNode node ) : bool

Accepts the specified node. Check if node has the same name as the processor and the node.NodeType is in the AcceptNodeTypes List

Process ( IXmlProcessorNodeList nodeList, IXmlProcessorEngine engine ) : void

Protected Methods

Method Description
AppendChild ( XmlNode element, XmlNode child ) : void
AppendChild ( XmlNode element, XmlNodeList nodes ) : void
AppendChild ( XmlNode element, string text ) : void
CreateFragment ( XmlNode parentNode ) : XmlDocumentFragment
CreateText ( XmlNode node, string content ) : XmlText
GetNodeAsElement ( XmlElement element, XmlNode child ) : XmlElement

Convert and return child parameter into an XmlElement An exception will be throw in case the child node cannot be converted

GetRequiredAttribute ( XmlElement element, String attribute ) : String
IgnoreNode ( XmlNode node ) : bool
ImportNode ( XmlNode targetElement, XmlNode node ) : XmlNode
IsTextNode ( XmlNode node ) : bool
MoveChildNodes ( XmlDocumentFragment fragment, XmlElement element ) : void
RemoveItSelf ( XmlNode node ) : void
ReplaceItself ( XmlNode newNode, XmlNode oldNode ) : void
ReplaceNode ( XmlNode element, XmlNode newNode, XmlNode oldNode ) : void

Method Details

AbstractXmlNodeProcessor() public method

public AbstractXmlNodeProcessor ( ) : System
return System

Accept() public method

Accepts the specified node. Check if node has the same name as the processor and the node.NodeType is in the AcceptNodeTypes List
public Accept ( XmlNode node ) : bool
node System.Xml.XmlNode The node.
return bool

AppendChild() protected method

protected AppendChild ( XmlNode element, XmlNode child ) : void
element System.Xml.XmlNode
child System.Xml.XmlNode
return void

AppendChild() protected method

protected AppendChild ( XmlNode element, XmlNodeList nodes ) : void
element System.Xml.XmlNode
nodes System.Xml.XmlNodeList
return void

AppendChild() protected method

protected AppendChild ( XmlNode element, string text ) : void
element System.Xml.XmlNode
text string
return void

CreateFragment() protected method

protected CreateFragment ( XmlNode parentNode ) : XmlDocumentFragment
parentNode System.Xml.XmlNode
return System.Xml.XmlDocumentFragment

CreateText() protected method

protected CreateText ( XmlNode node, string content ) : XmlText
node System.Xml.XmlNode
content string
return System.Xml.XmlText

GetNodeAsElement() protected method

Convert and return child parameter into an XmlElement An exception will be throw in case the child node cannot be converted
protected GetNodeAsElement ( XmlElement element, XmlNode child ) : XmlElement
element System.Xml.XmlElement Parent node
child System.Xml.XmlNode Node to be converted
return System.Xml.XmlElement

GetRequiredAttribute() protected method

protected GetRequiredAttribute ( XmlElement element, String attribute ) : String
element System.Xml.XmlElement
attribute String
return String

IgnoreNode() protected method

protected IgnoreNode ( XmlNode node ) : bool
node System.Xml.XmlNode
return bool

ImportNode() protected method

protected ImportNode ( XmlNode targetElement, XmlNode node ) : XmlNode
targetElement System.Xml.XmlNode
node System.Xml.XmlNode
return System.Xml.XmlNode

IsTextNode() protected method

protected IsTextNode ( XmlNode node ) : bool
node System.Xml.XmlNode
return bool

MoveChildNodes() protected method

protected MoveChildNodes ( XmlDocumentFragment fragment, XmlElement element ) : void
fragment System.Xml.XmlDocumentFragment
element System.Xml.XmlElement
return void

Process() public abstract method

public abstract Process ( IXmlProcessorNodeList nodeList, IXmlProcessorEngine engine ) : void
nodeList IXmlProcessorNodeList
engine IXmlProcessorEngine
return void

RemoveItSelf() protected method

protected RemoveItSelf ( XmlNode node ) : void
node System.Xml.XmlNode
return void

ReplaceItself() protected method

protected ReplaceItself ( XmlNode newNode, XmlNode oldNode ) : void
newNode System.Xml.XmlNode
oldNode System.Xml.XmlNode
return void

ReplaceNode() protected method

protected ReplaceNode ( XmlNode element, XmlNode newNode, XmlNode oldNode ) : void
element System.Xml.XmlNode
newNode System.Xml.XmlNode
oldNode System.Xml.XmlNode
return void