C# Класс DotNetXri.Syntax.XRISegment

This class provides a strong typing for a XRI Segment. Any obj of this class that appears outside of the package is a valid XRI Segment with at least one subsegment.
Наследование: Parsable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Equals ( XRISegment segment ) : bool
EqualsIgnoreCase ( XRISegment segment ) : bool
ToString ( ) : string

String representation of the obj.

XRISegment ( string sVal ) : System

Constructs XRISegment from String

XRISegment ( string sVal, bool bAllowImpliedDelimiter, bool bAllowColon ) : System

Constructs XRISegment from String

getNumSubSegments ( ) : int

Returns the number of subsegments in the XRI segment

getParent ( ) : XRISegment

Returns the parent XRISegment for this obj. Equivalent to all but the last SubSegment.

getRemainder ( int nSkip ) : XRISegment

Returns the last part of the XRI segment. Skips over the specified number of subsegments and returns the remainder as a XRISegment. For example: This XRI Segment is "!a!b!c!d" getSegmentRemaider(0) => !a!b!c!d getSegmentRemaider(1) => !b!c!d getSegmentRemaider(2) => !c!d getSegmentRemaider(3) => !d getSegmentRemaider(4) => null

getSubSegmentAt ( int nIndex ) : XRISubSegment

Returns the subsegment at the given index

getSubSegmentIterator ( ) : IEnumerator

provides an Iterator for the subsegments

isPrefixOf ( XRISegment segment ) : bool
toIRINormalForm ( ) : string

Serializes XRISegment into IRI normal from

toIRINormalForm ( bool wantOptionalDelim ) : string

Serializes XRISegment into IRI normal from

toURINormalForm ( ) : string

Serializes XRISegment into URI normal from

toURINormalForm ( bool wantOptionalDelim ) : string

Serializes XRISegment into URI normal from

Приватные методы

Метод Описание
XRISegment ( bool bAllowImpliedDelimiter, bool bAllowColon, bool bAllowReassignable ) : System

Protected Constructor used by package only

doScan ( ParseStream oXRISegStream ) : bool

Parses the input stream into the obj

Описание методов

Equals() публичный Метод

public Equals ( XRISegment segment ) : bool
segment XRISegment
Результат bool

EqualsIgnoreCase() публичный Метод

public EqualsIgnoreCase ( XRISegment segment ) : bool
segment XRISegment
Результат bool

ToString() публичный Метод

String representation of the obj.
public ToString ( ) : string
Результат string

XRISegment() публичный Метод

Constructs XRISegment from String
public XRISegment ( string sVal ) : System
sVal string
Результат System

XRISegment() публичный Метод

Constructs XRISegment from String
public XRISegment ( string sVal, bool bAllowImpliedDelimiter, bool bAllowColon ) : System
sVal string
bAllowImpliedDelimiter bool
bAllowColon bool
Результат System

getNumSubSegments() публичный Метод

Returns the number of subsegments in the XRI segment
public getNumSubSegments ( ) : int
Результат int

getParent() публичный Метод

Returns the parent XRISegment for this obj. Equivalent to all but the last SubSegment.
public getParent ( ) : XRISegment
Результат XRISegment

getRemainder() публичный Метод

Returns the last part of the XRI segment. Skips over the specified number of subsegments and returns the remainder as a XRISegment. For example: This XRI Segment is "!a!b!c!d" getSegmentRemaider(0) => !a!b!c!d getSegmentRemaider(1) => !b!c!d getSegmentRemaider(2) => !c!d getSegmentRemaider(3) => !d getSegmentRemaider(4) => null
public getRemainder ( int nSkip ) : XRISegment
nSkip int
Результат XRISegment

getSubSegmentAt() публичный Метод

Returns the subsegment at the given index
public getSubSegmentAt ( int nIndex ) : XRISubSegment
nIndex int The index of the subsegment to return
Результат XRISubSegment

getSubSegmentIterator() публичный Метод

provides an Iterator for the subsegments
public getSubSegmentIterator ( ) : IEnumerator
Результат IEnumerator

isPrefixOf() публичный Метод

public isPrefixOf ( XRISegment segment ) : bool
segment XRISegment
Результат bool

toIRINormalForm() публичный Метод

Serializes XRISegment into IRI normal from
public toIRINormalForm ( ) : string
Результат string

toIRINormalForm() публичный Метод

Serializes XRISegment into IRI normal from
public toIRINormalForm ( bool wantOptionalDelim ) : string
wantOptionalDelim bool
Результат string

toURINormalForm() публичный Метод

Serializes XRISegment into URI normal from
public toURINormalForm ( ) : string
Результат string

toURINormalForm() публичный Метод

Serializes XRISegment into URI normal from
public toURINormalForm ( bool wantOptionalDelim ) : string
wantOptionalDelim bool
Результат string