Class CodeValue
Represents a value from a controlled vocabulary.
Inherited Members
Namespace: Algenta.Colectica.Model
Assembly: Algenta.Colectica.Model.dll
Syntax
public class CodeValue : NotificationObject
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 |
---|---|---|
System.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 |
---|---|
System.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 |
---|---|
System.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 |
---|---|
System.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 |
---|---|
System.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 |
---|---|
System.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 |
---|---|
System.Boolean |
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 |
---|---|
System.String | The other value. |
Value
Gets or sets the value.
Declaration
public string Value { get; set; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|
System.Boolean |
Operators
Explicit(CodeValue to String)
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(String to CodeValue)
Allows automatically casting a string
to a CodeValue
.
Declaration
public static implicit operator CodeValue(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The string to cast. |
Returns
Type | Description |
---|---|
CodeValue | The CodeValue |