Class NcCodeType
A data type for a code with codes sourced from an external code list.
Inheritance
Implements
Inherited Members
Namespace: NiemTypes
Assembly: EidoLib.dll
Syntax
[DataContract]
public class NcCodeType : IEquatable<NcCodeType>
Properties
CodeListColumnName
A local name for a code list column within a code list. NIEM reference is cli:codeListColumnName
Declaration
[DataMember(Name = "codeListColumnName")]
public string CodeListColumnName { get; set; }
Property Value
Type | Description |
---|---|
System.String | A local name for a code list column within a code list. NIEM reference is cli:codeListColumnName |
CodeListUri
A universal identifier for a code list. NIEM reference is cli:codeListURI
Declaration
[DataMember(Name = "codeListUri")]
public string CodeListUri { get; set; }
Property Value
Type | Description |
---|---|
System.String | A universal identifier for a code list. NIEM reference is cli:codeListURI |
Context
ncCodeType JSON-LD context
Declaration
[DataMember(Name = "@context")]
public NcCodeType.ContextEnum? Context { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<NcCodeType.ContextEnum> | ncCodeType JSON-LD context |
IsCodeListConstraining
True if a code list binding constrains the validity of a code list value; false otherwise. NIEM reference is cli:codeListConstrainingIndicator
Declaration
[DataMember(Name = "isCodeListConstraining")]
public bool? IsCodeListConstraining { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> | True if a code list binding constrains the validity of a code list value; false otherwise. NIEM reference is cli:codeListConstrainingIndicator |
Value
Gets or Sets Value
Declaration
[DataMember(Name = "value")]
public string Value { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Equals(NcCodeType)
Returns true if NcCodeType instances are equal
Declaration
public bool Equals(NcCodeType other)
Parameters
Type | Name | Description |
---|---|---|
NcCodeType | other | Instance of NcCodeType to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | Object to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Overrides
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
Overrides
ToJson()
Returns the JSON string presentation of the object
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System.String | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String presentation of the object |
Overrides
Operators
Equality(NcCodeType, NcCodeType)
Declaration
public static bool operator ==(NcCodeType left, NcCodeType right)
Parameters
Type | Name | Description |
---|---|---|
NcCodeType | left | |
NcCodeType | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(NcCodeType, NcCodeType)
Declaration
public static bool operator !=(NcCodeType left, NcCodeType right)
Parameters
Type | Name | Description |
---|---|---|
NcCodeType | left | |
NcCodeType | right |
Returns
Type | Description |
---|---|
System.Boolean |