Show / Hide Table of Contents

Class CodeDomain

Represents a coded response to be collected by a Question.

Inheritance
object
NotificationObject
ResponseDomain
CodeDomain
Implements
INotifyPropertyChanged
Inherited Members
ResponseDomain.MissingValues
ResponseDomain.BlankIsMissingValue
ResponseDomain.ClassificationLevel
ResponseDomain.Label
ResponseDomain.Description
ResponseDomain.AttachedToCodes
ResponseDomain.AttachedToValues
ResponseDomain.RepresentationType
ResponseDomain.OutParameter
ResponseDomain.GridAttachments
ResponseDomain.GenericOutputFormat
ResponseDomain.RecommendedDataType
ResponseDomain.MeasurementUnit
NotificationObject.PropertyChanged
NotificationObject.RaisePropertyChanged(string)
NotificationObject.OnPropertyChanged(string)
NotificationObject.ResumePropertyEvents()
NotificationObject.SuspendPropertyEvents()
NotificationObject.PropertyEventsSuspended
NotificationObject.PropagateChildChanges(INotifyCollectionChanged, string)
NotificationObject.WatchProperty(INotifyPropertyChanged, string)
NotificationObject.WatchCollection(INotifyCollectionChanged, string)
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Algenta.Colectica.Model.Ddi
Assembly: Algenta.Colectica.Model.Ddi.dll
Syntax
public class CodeDomain : ResponseDomain, INotifyPropertyChanged

Constructors

CodeDomain()

Initializes a new instance of the CodeDomain class.

Declaration
public CodeDomain()

Properties

Codes

Gets or sets the codes from which the respondent will choose.

Declaration
public CodeList Codes { get; set; }
Property Value
Type Description
CodeList

MultipleChoiceType

Gets or sets whether the respondent should choose one or more items from the code list.

Declaration
public MultipleChoiceType MultipleChoiceType { get; set; }
Property Value
Type Description
MultipleChoiceType

SelectUpTo

Gets or sets the maximum number of items a respondent should choose from the code list.

Declaration
public int? SelectUpTo { get; set; }
Property Value
Type Description
int?

Methods

GetChildren()

Gets the identifiers of the item's children.

Declaration
public override ChildItemCollection GetChildren()
Returns
Type Description
ChildItemCollection

The identifiers of the item's children.

Overrides
ResponseDomain.GetChildren()

RemoveChild(IdentifierTriple)

Removes the specified child.

Declaration
public override int RemoveChild(IdentifierTriple child)
Parameters
Type Name Description
IdentifierTriple child

The child to be removed.

Returns
Type Description
int

The number of children removed from the item.

Overrides
ResponseDomain.RemoveChild(IdentifierTriple)
Exceptions
Type Condition
ArgumentNullException

child

ReplaceChild(IdentifierTriple, IVersionable)

Replaces the child with the specified identifier with the provided item.

Declaration
public override int ReplaceChild(IdentifierTriple toReplace, IVersionable child)
Parameters
Type Name Description
IdentifierTriple toReplace

The identifier of the child to replace.

IVersionable child

The new child.

Returns
Type Description
int

The number of children replaced.

Overrides
ResponseDomain.ReplaceChild(IdentifierTriple, IVersionable)
Exceptions
Type Condition
ArgumentNullException

child

ToString()

Gets a string representation of the object.

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

WatchProperties()

Watch for property changed events

Declaration
protected override void WatchProperties()
Overrides
ResponseDomain.WatchProperties()

Implements

INotifyPropertyChanged
In this article
Back to top Generated by DocFX