Class NumericDomain
Represents numeric data to be collected by a Question.
Implements
Inherited Members
Namespace: Algenta.Colectica.Model.Ddi
Assembly: Algenta.Colectica.Model.Ddi.dll
Syntax
public class NumericDomain : ResponseDomain, INotifyPropertyChanged
Constructors
NumericDomain()
Initializes a new instance of the NumericDomain class.
Declaration
public NumericDomain()
Properties
BottomCode
Gets or sets the value to which all lower numbers are coded.
Declaration
public double? BottomCode { get; set; }
Property Value
Type | Description |
---|---|
double? |
DecimalPositions
Gets or sets the number of decimal places allowed in the data.
Declaration
public int? DecimalPositions { get; set; }
Property Value
Type | Description |
---|---|
int? |
High
Gets or sets the upper bound of allowed numbers.
Declaration
public decimal? High { get; set; }
Property Value
Type | Description |
---|---|
decimal? |
InclusiveHigh
Gets or sets a value indicating whether the High value is inclusive or exclusive.
Declaration
public bool InclusiveHigh { get; set; }
Property Value
Type | Description |
---|---|
bool |
InclusiveLow
Gets a value indicating whether the Low value is inclusive or exclusive.
Declaration
public bool InclusiveLow { get; set; }
Property Value
Type | Description |
---|---|
bool |
Interval
Gets or sets the value to increase, or step value, for an incremental numeric representation.
Declaration
public double? Interval { get; set; }
Property Value
Type | Description |
---|---|
double? |
Remarks
This should be used as an integer value starting in DDI 3.2. Fractions will be truncated.
IsDecimal
Gets a value indicating whether the number can have decimals.
Declaration
public bool IsDecimal { get; }
Property Value
Type | Description |
---|---|
bool |
IsWeight
Gets or sets a value indicating whether this instance is a weight.
Declaration
public bool IsWeight { get; set; }
Property Value
Type | Description |
---|---|
bool |
|
Low
Gets or sets the lower bound of allowed numbers.
Declaration
public decimal? Low { get; set; }
Property Value
Type | Description |
---|---|
decimal? |
NumericType
Gets or sets the type of the number.
Declaration
public CodeValue NumericType { get; set; }
Property Value
Type | Description |
---|---|
CodeValue | The type of the numeric. |
NumericTypes
Gets an array of the supported numeric types.
Declaration
public static Array NumericTypes { get; }
Property Value
Type | Description |
---|---|
Array |
Scale
Gets or sets the unit of scale, for example "x1" or "x1000".
Declaration
public int? Scale { get; set; }
Property Value
Type | Description |
---|---|
int? |
TopCode
Gets or sets the value to which all higher numbers are coded.
Declaration
public double? TopCode { get; set; }
Property Value
Type | Description |
---|---|
double? |
Methods
ToString()
Gets a string representation of the object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |