Class CaptureBase
Represents a question or a field used to collect data.
Inheritance
Implements
Inherited Members
Namespace: Algenta.Colectica.Model.Ddi
Assembly: Algenta.Colectica.Model.Ddi.dll
Syntax
public abstract class CaptureBase : DescribableBase, INotifyPropertyChanged, IVersionable, IVisitable, IHasCustomFields, IDescribable, IBindable, IIdentifiable
Remarks
Although the name Question leads one to think of surveys, the Question class
can be used to represent other items that gather data, such as fields in administrative forms.
Constructors
CaptureBase()
Initializes a new instance of the Question class.
Declaration
public CaptureBase()
Properties
Bindings
A collection of bindings that maps parameters from the QuestionItem to ResponseDomains
Declaration
public ObservableCollection<Binding> Bindings { get; }
Property Value
| Type | Description |
|---|---|
| ObservableCollection<Binding> |
InParameters
A collection of parameters provided as input to the question.
Declaration
public ObservableCollection<Parameter> InParameters { get; }
Property Value
| Type | Description |
|---|---|
| ObservableCollection<Parameter> |
OutParameters
A collection of parameters provided as output by the question.
Declaration
public ObservableCollection<Parameter> OutParameters { get; }
Property Value
| Type | Description |
|---|---|
| ObservableCollection<Parameter> |
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
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 |
|---|---|
| Int32 | The number of children removed from the item. |
Overrides
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 |
|---|---|
| Int32 | The number of children replaced. |
Overrides
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | child |