Class Code
Associates a value with a Category.
Inherited Members
Algenta.Colectica.Model.NotificationObject.RaisePropertyChanged<T>(Expression<>)
Namespace: Algenta.Colectica.Model.Ddi
Assembly: Algenta.Colectica.Model.Ddi.dll
Syntax
public class Code : IdentifiableBase, 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
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 |
---|---|
System.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 |
---|---|
System.Int32 |
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 |
---|---|
System.Int32 |
ToString()
Returns a
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A |