Class CodeValue
Represents a value from a controlled vocabulary.
Implements
Inherited Members
Namespace: Algenta.Colectica.Model
Assembly: Algenta.Colectica.Model.dll
Syntax
public class CodeValue : NotificationObject, INotifyPropertyChanged
Constructors
CodeValue()
Initializes a new instance of the CodeValue class.
Declaration
public CodeValue()
CodeValue(string)
Initializes a new instance of the CodeValue class.
Declaration
public CodeValue(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | The value. |
Properties
CodeListAgency
Gets or sets the agency that manages the code list from which the value was taken.
Declaration
public string CodeListAgency { get; set; }
Property Value
Type | Description |
---|---|
string | The code list agency. |
CodeListId
Gets or sets the unique identifier of the code list from which the value was taken.
Declaration
public string CodeListId { get; set; }
Property Value
Type | Description |
---|---|
string | The unique identifier of the code list from which the value was taken. |
CodeListName
Gets or sets the name of the code list from which the value was taken.
Declaration
public string CodeListName { get; set; }
Property Value
Type | Description |
---|---|
string | The name of the code list. |
CodeListUrn
Gets or sets the URN of the code list from which the value was taken.
Declaration
public string CodeListUrn { get; set; }
Property Value
Type | Description |
---|---|
string | The code list urn. |
CodeListVersion
Gets or sets the version of the code list from which the value was taken.
Declaration
public string CodeListVersion { get; set; }
Property Value
Type | Description |
---|---|
string | The code list version. |
HasAnyAttributes
Gets a value indicating whether any of the properties besides Value have non-empty content.
Declaration
public bool HasAnyAttributes { get; }
Property Value
Type | Description |
---|---|
bool |
Language
Gets or sets the language of the value.
Declaration
public string Language { get; set; }
Property Value
Type | Description |
---|---|
string |
OtherValue
Gets or sets the other value, if the item was not taken from the specified code list.
Declaration
public string OtherValue { get; set; }
Property Value
Type | Description |
---|---|
string | The other value. |
Value
Gets or sets the value.
Declaration
public string Value { get; set; }
Property Value
Type | Description |
---|---|
string | The value. |
Methods
IsNullOrWhiteSpace(CodeValue)
Determines whether the value of the item has content.
Declaration
public static bool IsNullOrWhiteSpace(CodeValue item)
Parameters
Type | Name | Description |
---|---|---|
CodeValue | item | The item. |
Returns
Type | Description |
---|---|
bool |
Operators
explicit operator string(CodeValue)
Allows manually casting a CodeValue
to a string
.
Declaration
public static explicit operator string(CodeValue codeValue)
Parameters
Type | Name | Description |
---|---|---|
CodeValue | codeValue | The CodeValue to cast. |
Returns
Type | Description |
---|---|
string | The string. |
implicit operator CodeValue(string)
Allows automatically casting a string
to a CodeValue
.
Declaration
public static implicit operator CodeValue(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | The string to cast. |
Returns
Type | Description |
---|---|
CodeValue | The CodeValue |