C# Class numl.Model.DescriptorProperty

Fluent API addition for simplifying the process of adding features and labels to a descriptor.
Mostra file Open project: sethjuarez/numl

Public Methods

Method Description
As ( Property property ) : Descriptor

Adds the specified property to the descriptor with the chained name

As ( Type type ) : Descriptor

Adds property to descriptor with chained name and type.

AsDateTime ( DatePortion portion ) : Descriptor

Adds DateTime property to descriptor with previously chained name.

AsDateTime ( DateTimeFeature features ) : Descriptor

Adds DateTime property to descriptor with previously chained name.

AsEnumerable ( int length ) : Descriptor

Adds Enumerable property to descriptor with previousy chained name.

AsGuid ( ) : Descriptor

Adds guid property to descriptor with previously chained name.

AsString ( ) : Descriptor

Adds the default string property to descriptor with previously chained name.

AsString ( StringSplitType splitType, string separator = " ", string exclusions = null ) : Descriptor

Adds string property to descriptor with previously chained name.

AsStringEnum ( ) : Descriptor

Adds string property to descriptor with previously chained name.

Use ( double>.Func conversion ) : Descriptor

Not ready.

Private Methods

Method Description
AddProperty ( Property p ) : void

Adds a property.

DescriptorProperty ( Descriptor descriptor, string name, bool label ) : System

internal constructor used for creating chaining.

Method Details

As() public method

Adds the specified property to the descriptor with the chained name
public As ( Property property ) : Descriptor
property Property The property.
return Descriptor

As() public method

Adds property to descriptor with chained name and type.
public As ( Type type ) : Descriptor
type System.Type Property Type.
return Descriptor

AsDateTime() public method

Adds DateTime property to descriptor with previously chained name.
Thrown when a Descriptor error condition occurs.
public AsDateTime ( DatePortion portion ) : Descriptor
portion DatePortion Which date portions to use (can pipe: DateTimeFeature.Year | /// DateTimeFeature.DayOfWeek)
return Descriptor

AsDateTime() public method

Adds DateTime property to descriptor with previously chained name.
Thrown when a Descriptor error condition occurs.
public AsDateTime ( DateTimeFeature features ) : Descriptor
features DateTimeFeature Which date features to use (can pipe: DateTimeFeature.Year | /// DateTimeFeature.DayOfWeek)
return Descriptor

AsEnumerable() public method

Adds Enumerable property to descriptor with previousy chained name.
Thrown when a Descriptor error condition occurs.
public AsEnumerable ( int length ) : Descriptor
length int length of enumerable to expand.
return Descriptor

AsGuid() public method

Adds guid property to descriptor with previously chained name.
public AsGuid ( ) : Descriptor
return Descriptor

AsString() public method

Adds the default string property to descriptor with previously chained name.
public AsString ( ) : Descriptor
return Descriptor

AsString() public method

Adds string property to descriptor with previously chained name.
public AsString ( StringSplitType splitType, string separator = " ", string exclusions = null ) : Descriptor
splitType StringSplitType How to split string.
separator string (Optional) Separator to use.
exclusions string (Optional) file describing strings to exclude.
return Descriptor

AsStringEnum() public method

Adds string property to descriptor with previously chained name.
public AsStringEnum ( ) : Descriptor
return Descriptor

Use() public method

Not ready.
Thrown when the requested operation is unimplemented.
public Use ( double>.Func conversion ) : Descriptor
conversion double>.Func Conversion method.
return Descriptor