Class CaptureBase
Represents a question or a field used to collect data.
Inheritance
Inherited Members
Namespace: Algenta.Colectica.Model.Ddi
Assembly: Algenta.Colectica.Model.Ddi.dll
Syntax
public abstract class CaptureBase : DescribableBase, 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> |
Implements
InParameters
A collection of parameters provided as input to the question.
Declaration
public ObservableCollection<Parameter> InParameters { get; }
Property Value
Type | Description |
---|---|
ObservableCollection<Parameter> |
Implements
OutParameters
A collection of parameters provided as output by the question.
Declaration
public ObservableCollection<Parameter> OutParameters { get; }
Property Value
Type | Description |
---|---|
ObservableCollection<Parameter> |
Implements
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 |
---|---|
System.Int32 | The number of children removed from the item. |
Overrides
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 |
---|---|
System.Int32 | The number of children replaced. |