Show / Hide Table of Contents

Class CodeList

Provides a description of a set of categories that have a specific relationship, such as the categories Male and Female that can be grouped together as Gender. Categories (e.g., Male and Female) can belong to multiple code lists. The code list also provides the unique code values for each of the categories in the code list.

Inheritance
System.Object
NotificationObject
IdentifiableBase
VersionableBase
DescribableBase
CodeList
Inherited Members
DescribableBase.ItemName
DescribableBase.Label
DescribableBase.Description
DescribableBase.DisplayLabel
VersionableBase.Accept(IVersionableVisitor)
VersionableBase.IsDirty
VersionableBase.IsPublished
VersionableBase.ChildrenDereferenced
VersionableBase.IsPopulated
VersionableBase.Version
VersionableBase.VersionDate
VersionableBase.VersionResponsibility
VersionableBase.VersionRationale
VersionableBase.CompositeId
VersionableBase.CustomFields
VersionableBase.UserAttributes
VersionableBase.OtherMaterials
VersionableBase.BasedOn
VersionableBase.Attachments
VersionableBase.ManagedCollections
VersionableBase.ManageCollection(INotifyCollectionChanged, String)
VersionableBase.RemoveChild(IVersionable, IList[])
VersionableBase.RemoveChild(IdentifierTriple, IList[])
VersionableBase.AddChild(IVersionable)
VersionableBase.ChildTypesAccepted
Algenta.Colectica.Model.VersionableBase.TryReplaceChild<T>(Func<>, Action<>, Algenta.Colectica.Model.Utility.IdentifierTriple, Algenta.Colectica.Model.IVersionable)
VersionableBase.ToString()
IdentifiableBase.DefaultAgencyId
IdentifiableBase.AgencyId
IdentifiableBase.Identifier
IdentifiableBase.UserIds
IdentifiableBase.GetUserIdValue(String)
NotificationObject.PropertyChanged
NotificationObject.RaisePropertyChanged(String)
NotificationObject.RaisePropertyChanged(String[])
Algenta.Colectica.Model.NotificationObject.RaisePropertyChanged<T>(Expression<>)
NotificationObject.OnPropertyChanged(String)
NotificationObject.ResumePropertyEvents()
NotificationObject.SuspendPropertyEvents()
NotificationObject.PropertyEventsSuspended
NotificationObject.PropagateChildChanges(INotifyCollectionChanged, String)
Namespace: Algenta.Colectica.Model.Ddi
Assembly: Algenta.Colectica.Model.Ddi.dll
Syntax
public class CodeList : DescribableBase, IVersionable, IIdentifiable, IHasCustomFields, IDescribable, IVisitable

Constructors

CodeList()

Initializes a new instance of the CodeList class.

Declaration
public CodeList()

Properties

CategoryScheme

Gets or sets the category scheme that contains the categories in this code list.

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

Codes

Gets the codes.

Declaration
public ObservableCollection<Code> Codes { get; }
Property Value
Type Description
ObservableCollection<Code>

ItemType

Gets the universally unique identifier representing the item's type.

Declaration
public override Guid ItemType { get; }
Property Value
Type Description
Guid

The identifier representing the item's type.

Overrides
VersionableBase.ItemType

Levels

Gets the levels of a hierarchical code list.

Declaration
public ObservableCollection<Level> Levels { get; }
Property Value
Type Description
ObservableCollection<Level>

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
VersionableBase.GetChildren()

GetFlattenedCodes()

Returns all codes in the hierarchy as a flat list.

Declaration
public Collection<Code> GetFlattenedCodes()
Returns
Type Description
Collection<Code>

The flattened list of codes.

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
VersionableBase.RemoveChild(IdentifierTriple)

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.

Overrides
VersionableBase.ReplaceChild(IdentifierTriple, IVersionable)

Extension Methods

Extensions.Yield<T>(T)
Back to top Copyright © 2009-2018 Colectica