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
파일 보기 프로젝트 열기: AArnott/dotnetxri 1 사용 예제들

공개 메소드들

메소드 설명
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