C# Class ReasonCodeExample.XPathInformation.Writers.XPathWriter

Inheritance: IWriter
Show file Open project: uli-weltersbach/XPathInformation Class Usage Examples

Public Methods

Method Description
Write ( XObject node ) : string
XPathWriter ( ) : System
XPathWriter ( IEnumerable filters ) : System

Protected Methods

Method Description
WriteAttributeNameWithPrefix ( string namespacePrefix, string localName ) : void
WriteAttributeNameWithoutPrefix ( System.Xml.Linq.XName name ) : void
WriteElementNameWithPrefix ( string namespacePrefix, string localName ) : void
WriteElementNameWithoutPrefix ( System.Xml.Linq.XName name ) : void
WritePredicateEnd ( ) : void
WritePredicateStart ( ) : void
WritePredicates ( XPathPart pathPart ) : void

Private Methods

Method Description
GetPathParts ( XObject node ) : IEnumerable
IsAttribute ( XObject node ) : bool
IsAttribute ( XPathPart pathPart ) : bool
IsElement ( XObject node ) : bool
IsElement ( XPathPart pathPart ) : bool
MatchesAnyFilter ( System.Xml.Linq.XAttribute attribute ) : bool
Write ( IEnumerable pathParts ) : void
WriteAttributeName ( System.Xml.Linq.XAttribute attribute ) : void
WriteAttributeValue ( System.Xml.Linq.XAttribute attribute ) : void
WriteElementName ( System.Xml.Linq.XElement element ) : void
WritePathPartSeparator ( ) : void

Method Details

Write() public method

public Write ( XObject node ) : string
node XObject
return string

WriteAttributeNameWithPrefix() protected method

protected WriteAttributeNameWithPrefix ( string namespacePrefix, string localName ) : void
namespacePrefix string
localName string
return void

WriteAttributeNameWithoutPrefix() protected method

protected WriteAttributeNameWithoutPrefix ( System.Xml.Linq.XName name ) : void
name System.Xml.Linq.XName
return void

WriteElementNameWithPrefix() protected method

protected WriteElementNameWithPrefix ( string namespacePrefix, string localName ) : void
namespacePrefix string
localName string
return void

WriteElementNameWithoutPrefix() protected method

protected WriteElementNameWithoutPrefix ( System.Xml.Linq.XName name ) : void
name System.Xml.Linq.XName
return void

WritePredicateEnd() protected method

protected WritePredicateEnd ( ) : void
return void

WritePredicateStart() protected method

protected WritePredicateStart ( ) : void
return void

WritePredicates() protected method

protected WritePredicates ( XPathPart pathPart ) : void
pathPart XPathPart
return void

XPathWriter() public method

public XPathWriter ( ) : System
return System

XPathWriter() public method

public XPathWriter ( IEnumerable filters ) : System
filters IEnumerable
return System