C# Class Sage.SData.Client.Framework.UriPathSegment

Defines a path segment within a Uri
Mostra file Open project: Saleslogix/SDataCSharpClientLib Class Usage Examples

Private Properties

Property Type Description
CheckParse void
CheckRebuild void
ValidateSegment string

Public Methods

Method Description
AppendPath ( string path, string segment ) : string

Appends a segment to a path.

If the segment starts with a forward slash it is assumed that the segment specifies an absolute path.

AppendPath ( StringBuilder path, string segment ) : void

Appends a segment to a path.

If the segment starts with a forward slash it is assumed that the segment specifies an absolute path.

Equals ( object obj ) : bool

Compares the specified object with this UriPathSegment.

FromStrings ( IEnumerable segments ) : IEnumerable

Builds an enumerable of UriPathSegment objects from an enumerable of String Array.

GetHashCode ( ) : int

Returns the haskcode for the UriPathSegment.

GetPathSegments ( string path ) : IEnumerable

Returns the segments that make up the specified path.

ToString ( ) : string

Returns a String representation of the segment.

UriPathSegment ( ) : System

Initialises a new instance of the UriPathSegment class.

UriPathSegment ( UriPathSegment segment ) : System

Initialises a new instance of the UriPathSegment class with the details of the specified segment.

UriPathSegment ( string segment ) : System

Initialises a new instance of the UriPathSegment class with the specified text.

UriPathSegment ( string text, string predicate ) : System

Initialises a new instance of the UriPathSegment class with the specified text and predicate.

Protected Methods

Method Description
OnParse ( ) : void

Called when the Segment needs parsing to extract the Text and Predicate values.

OnRebuild ( ) : void

Called when the Segment needs rebuilding using the Text and Predicate values.

Private Methods

Method Description
CheckParse ( ) : void
CheckRebuild ( ) : void
ValidateSegment ( string segment ) : string

Method Details

AppendPath() public static method

Appends a segment to a path.
If the segment starts with a forward slash it is assumed that the segment specifies an absolute path.
public static AppendPath ( string path, string segment ) : string
path string The path to append the segment to.
segment string The segment to append to the path.
return string

AppendPath() public static method

Appends a segment to a path.
If the segment starts with a forward slash it is assumed that the segment specifies an absolute path.
public static AppendPath ( StringBuilder path, string segment ) : void
path StringBuilder The path to append the segment to.
segment string The segment to append to the path.
return void

Equals() public method

Compares the specified object with this UriPathSegment.
public Equals ( object obj ) : bool
obj object The to compare.
return bool

FromStrings() public static method

Builds an enumerable of UriPathSegment objects from an enumerable of String Array.
public static FromStrings ( IEnumerable segments ) : IEnumerable
segments IEnumerable of strings.
return IEnumerable

GetHashCode() public method

Returns the haskcode for the UriPathSegment.
public GetHashCode ( ) : int
return int

GetPathSegments() public static method

Returns the segments that make up the specified path.
public static GetPathSegments ( string path ) : IEnumerable
path string The path to to return the segments for.
return IEnumerable

OnParse() protected method

Called when the Segment needs parsing to extract the Text and Predicate values.
protected OnParse ( ) : void
return void

OnRebuild() protected method

Called when the Segment needs rebuilding using the Text and Predicate values.
protected OnRebuild ( ) : void
return void

ToString() public method

Returns a String representation of the segment.
public ToString ( ) : string
return string

UriPathSegment() public method

Initialises a new instance of the UriPathSegment class.
public UriPathSegment ( ) : System
return System

UriPathSegment() public method

Initialises a new instance of the UriPathSegment class with the details of the specified segment.
public UriPathSegment ( UriPathSegment segment ) : System
segment UriPathSegment The segment to copy the details from.
return System

UriPathSegment() public method

Initialises a new instance of the UriPathSegment class with the specified text.
public UriPathSegment ( string segment ) : System
segment string The text and predicate for the segment.
return System

UriPathSegment() public method

Initialises a new instance of the UriPathSegment class with the specified text and predicate.
public UriPathSegment ( string text, string predicate ) : System
text string The text for the segment.
predicate string The predicate for the segment.
return System