C# Class DotNetXri.Syntax.XRIPath

This base class provides a strong typing for a XRI Path. Any obj of this class that appears outside of the package is a valid XRI Path.
Inheritance: Parsable
Show file Open project: AArnott/dotnetxri

Public Properties

Property Type Description
moSegments IList

Protected Properties

Property Type Description
mbAllowColon bool

Public Methods

Method Description
getNumSegments ( ) : int

getSegmentAt ( int nIndex ) : XRISegment

Returns the XRISegmentVal at the given index

getSegmentIterator ( ) : IEnumerator

toIRINormalForm ( ) : string

Serializes Relative Path into IRI normal from

toURINormalForm ( ) : string

Serializes Relative Path into URI normal from

Protected Methods

Method Description
XRIPath ( ) : System.Collections.Generic
XRIPath ( string sVal ) : System.Collections.Generic
scanXRISegments ( ParseStream oPathStream ) : void

Parses the input stream into XRISegmentVals

Method Details

XRIPath() protected method

protected XRIPath ( ) : System.Collections.Generic
return System.Collections.Generic

XRIPath() protected method

protected XRIPath ( string sVal ) : System.Collections.Generic
sVal string
return System.Collections.Generic

getNumSegments() public method

public getNumSegments ( ) : int
return int

getSegmentAt() public method

Returns the XRISegmentVal at the given index
public getSegmentAt ( int nIndex ) : XRISegment
nIndex int The index of the XRISegmentVal to return
return XRISegment

getSegmentIterator() public method

public getSegmentIterator ( ) : IEnumerator
return IEnumerator

scanXRISegments() protected method

Parses the input stream into XRISegmentVals
protected scanXRISegments ( ParseStream oPathStream ) : void
oPathStream ParseStream The input stream to scan from
return void

toIRINormalForm() public method

Serializes Relative Path into IRI normal from
public toIRINormalForm ( ) : string
return string

toURINormalForm() public method

Serializes Relative Path into URI normal from
public toURINormalForm ( ) : string
return string

Property Details

mbAllowColon protected property

protected bool mbAllowColon
return bool

moSegments public property

public IList moSegments
return IList