Show / Hide Table of Contents

Class Code

Associates a value with a Category.

Inheritance
Object
NotificationObject
IdentifiableBase
Code
Implements
INotifyPropertyChanged
IIdentifiable
Inherited Members
IdentifiableBase.DefaultAgencyId
IdentifiableBase.AgencyId
IdentifiableBase.Identifier
IdentifiableBase.UserIds
IdentifiableBase.GetUserIdValue(String)
NotificationObject.PropertyChanged
NotificationObject.RaisePropertyChanged(String)
NotificationObject.RaisePropertyChanged(String[])
NotificationObject.RaisePropertyChanged<T>(Expression<Func<T>>)
NotificationObject.OnPropertyChanged(String)
NotificationObject.ResumePropertyEvents()
NotificationObject.SuspendPropertyEvents()
NotificationObject.PropertyEventsSuspended
NotificationObject.PropagateChildChanges(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 Code : IdentifiableBase, INotifyPropertyChanged, IIdentifiable

Constructors

Code()

Initializes a new instance of the Code class.

Declaration
public Code()

Properties

Category

Gets or sets the category associated with the code.

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

ChildCodes

Gets any child codes.

Declaration
public CodeCollection ChildCodes { get; }
Property Value
Type Description
CodeCollection

ParentCode

Gets or sets the parent code, if the Code is in a hierarchical code list and is not at the top level.

Declaration
[DoNotNotify]
public Code ParentCode { get; set; }
Property Value
Type Description
Code

Value

Gets or sets the value of the code.

Declaration
public string Value { get; set; }
Property Value
Type Description
String

Methods

Accept(IVersionableVisitor)

Accepts the specified visitor.

Declaration
public void Accept(IVersionableVisitor visitor)
Parameters
Type Name Description
IVersionableVisitor visitor

The visitor.

GetChildren()

Gets the children.

Declaration
public ChildItemCollection GetChildren()
Returns
Type Description
ChildItemCollection

GetFlattenedCodes(Collection<Code>)

Gets all codes in the code hierarchy as a flat collection.

Declaration
public void GetFlattenedCodes(Collection<Code> codes)
Parameters
Type Name Description
Collection<Code> codes

The collection to which all codes will be added.

RemoveChild(IdentifierTriple)

Removes the child.

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

The child.

Returns
Type Description
Int32
Exceptions
Type Condition
ArgumentNullException

child

ReplaceChild(IdentifierTriple, IVersionable)

Replaces the child.

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

To replace.

IVersionable child

The child.

Returns
Type Description
Int32
Exceptions
Type Condition
ArgumentNullException

child

ToString()

Returns a String that represents this instance.

Declaration
public override string ToString()
Returns
Type Description
String

A String that represents this instance.

Overrides
Object.ToString()

Implements

System.ComponentModel.INotifyPropertyChanged
IIdentifiable
In This Article
Back to top Generated by DocFX