C# Class DotNetXri.Syntax.XRISubSegment

This class provides a strong typing for a XRI subsegment. Any obj of this class that appears outside of the package is a valid subsegment.
Inheritance: Parsable
显示文件 Open project: AArnott/dotnetxri Class Usage Examples

Public Methods

Method Description
Equals ( XRISubSegment subseg ) : bool
EqualsIgnoreCase ( XRISubSegment subseg ) : bool
ToString ( ) : string

String representation of the obj.

ToString ( bool wantOptionalDelim ) : string
XRISubSegment ( string sXRI ) : System

Constructs SubSegment from String

XRISubSegment ( string sXRI, bool bAllowColon ) : System

Constructs SubSegment from String

getXRef ( ) : XRef

Returns the cross-reference of this obj

isPersistant ( ) : bool

Indicates whether Subsegment is persistent or not

toIRINormalForm ( ) : string

Serializes SubSegment into IRI normal from

toIRINormalForm ( bool wantOptionalDelim ) : string
toURINormalForm ( ) : string

Serializes SubSegment into URI normal from

toURINormalForm ( bool wantOptionalDelim ) : string

Private Methods

Method Description
XRISubSegment ( bool bAllowImpliedDelimiter, bool bAllowColon ) : System

Protected Constructor used by package only

doScan ( ParseStream oStream ) : bool

Parses the input stream into the obj

scanPChars ( string s ) : int

Reads xri-pchars from the String

Method Details

Equals() public method

public Equals ( XRISubSegment subseg ) : bool
subseg XRISubSegment
return bool

EqualsIgnoreCase() public method

public EqualsIgnoreCase ( XRISubSegment subseg ) : bool
subseg XRISubSegment
return bool

ToString() public method

String representation of the obj.
public ToString ( ) : string
return string

ToString() public method

public ToString ( bool wantOptionalDelim ) : string
wantOptionalDelim bool
return string

XRISubSegment() public method

Constructs SubSegment from String
public XRISubSegment ( string sXRI ) : System
sXRI string
return System

XRISubSegment() public method

Constructs SubSegment from String
public XRISubSegment ( string sXRI, bool bAllowColon ) : System
sXRI string
bAllowColon bool
return System

getXRef() public method

Returns the cross-reference of this obj
public getXRef ( ) : XRef
return XRef

isPersistant() public method

Indicates whether Subsegment is persistent or not
public isPersistant ( ) : bool
return bool

toIRINormalForm() public method

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

toIRINormalForm() public method

public toIRINormalForm ( bool wantOptionalDelim ) : string
wantOptionalDelim bool
return string

toURINormalForm() public method

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

toURINormalForm() public method

public toURINormalForm ( bool wantOptionalDelim ) : string
wantOptionalDelim bool
return string