C# Client Library
A C# Client Library for the AnalyzeRe REST API
Loading...
Searching...
No Matches
AnalyzeRe.Attributes.GreaterThanAttribute Class Reference

Specifies that the property with this attribute should be greater than the specified amount. More...

Public Member Functions

 GreaterThanAttribute (double greaterThanValue, bool canEqual=false)
 Specifies that the property with this attribute should be greater than the specified amount.
 
override bool IsValid (object value)
 Determines whether the given value passes validation.
 

Protected Member Functions

double GetValue (object value)
 Gets the double value corresponding to the supplied object.
 

Properties

bool CanEqual [get]
 (Default: False) Set to true if the property can be greater than OR EQUAL to the specified value.
 
double GreaterThanValue [get]
 The number this property should be greater than.
 

Detailed Description

Specifies that the property with this attribute should be greater than the specified amount.

Definition at line 8 of file GreaterThanAttribute.cs.

Inheritance diagram for AnalyzeRe.Attributes.GreaterThanAttribute:
AnalyzeRe.Attributes.NumericValidationAttribute AnalyzeRe.Attributes.ValidationAttribute

Constructor & Destructor Documentation

◆ GreaterThanAttribute()

AnalyzeRe.Attributes.GreaterThanAttribute.GreaterThanAttribute ( double  greaterThanValue,
bool  canEqual = false 
)
inline

Specifies that the property with this attribute should be greater than the specified amount.

Parameters
greaterThanValueThe number this property should be greater than.
canEqual(Default: False) Set to true if the property can be greater than OR EQUAL to the specified value.

Definition at line 23 of file GreaterThanAttribute.cs.

Member Function Documentation

◆ GetValue()

double AnalyzeRe.Attributes.NumericValidationAttribute.GetValue ( object  value)
inlineprotectedinherited

Gets the double value corresponding to the supplied object.

Parameters
valueThe property value to convert to a double.
Returns
The value as a double.
Exceptions
InvalidCastExceptionThe property value had an unsupported type which could not be cast to a double.

Definition at line 15 of file NumericValidationAttribute.cs.

◆ IsValid()

override bool AnalyzeRe.Attributes.GreaterThanAttribute.IsValid ( object  value)
inline

Determines whether the given value passes validation.

Parameters
valueThe value to test.
Returns
True if the value is meets the validation requirement.

Definition at line 32 of file GreaterThanAttribute.cs.

Property Documentation

◆ CanEqual

bool AnalyzeRe.Attributes.GreaterThanAttribute.CanEqual
get

(Default: False) Set to true if the property can be greater than OR EQUAL to the specified value.

Definition at line 15 of file GreaterThanAttribute.cs.

◆ GreaterThanValue

double AnalyzeRe.Attributes.GreaterThanAttribute.GreaterThanValue
get

The number this property should be greater than.

Definition at line 11 of file GreaterThanAttribute.cs.


The documentation for this class was generated from the following file: