Class NcConditionType
A data type for a requirement or stipulation.
Inherited Members
Namespace: NiemTypes
Assembly: EidoLib.dll
Syntax
[DataContract]
public class NcConditionType : NcActivityType, IEquatable<NcActivityType>, IEquatable<NcConditionType>
Properties
Context
ncConditionType JSON-LD context
Declaration
[DataMember(Name = "@context")]
public NcConditionType.ContextEnum? Context { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<NcConditionType.ContextEnum> | ncConditionType JSON-LD context |
DisciplinaryAction
A corrective action that is specified as part of a condition. NIEM reference is nc:ConditionDisciplinaryAction
Declaration
[DataMember(Name = "disciplinaryAction")]
public List<NcDisciplinaryActionType> DisciplinaryAction { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcDisciplinaryActionType> | A corrective action that is specified as part of a condition. NIEM reference is nc:ConditionDisciplinaryAction |
GroupId
An identifier of a group of conditions to which this condition belongs. NIEM reference is nc:ConditionGroupID
Declaration
[DataMember(Name = "groupId")]
public List<NiemXsstring> GroupId { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NiemXsstring> | An identifier of a group of conditions to which this condition belongs. NIEM reference is nc:ConditionGroupID |
IsMandatory
True if a condition is strictly required; false otherwise. NIEM reference is nc:ConditionMandatoryIndicator
Declaration
[DataMember(Name = "isMandatory")]
public List<NiemXsboolean> IsMandatory { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NiemXsboolean> | True if a condition is strictly required; false otherwise. NIEM reference is nc:ConditionMandatoryIndicator |
IsViolated
True if a condition has been violated; false otherwise. NIEM reference is nc:ConditionViolatedIndicator
Declaration
[DataMember(Name = "isViolated")]
public List<NiemXsboolean> IsViolated { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NiemXsboolean> | True if a condition has been violated; false otherwise. NIEM reference is nc:ConditionViolatedIndicator |
SetDate
A date a condition was set. NIEM reference is nc:ConditionSetDate
Declaration
[DataMember(Name = "setDate")]
public List<NcDateType> SetDate { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcDateType> | A date a condition was set. NIEM reference is nc:ConditionSetDate |
Violation
A violation of a condition. NIEM reference is nc:ConditionViolationText
Declaration
[DataMember(Name = "violation")]
public List<NcTextType> Violation { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A violation of a condition. NIEM reference is nc:ConditionViolationText |
ViolationDate
A date a condition was violated. NIEM reference is nc:ConditionViolationDate
Declaration
[DataMember(Name = "violationDate")]
public List<NcDateType> ViolationDate { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcDateType> | A date a condition was violated. NIEM reference is nc:ConditionViolationDate |
Methods
Equals(NcConditionType)
Returns true if NcConditionType instances are equal
Declaration
public bool Equals(NcConditionType other)
Parameters
Type | Name | Description |
---|---|---|
NcConditionType | other | Instance of NcConditionType 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(NcConditionType, NcConditionType)
Declaration
public static bool operator ==(NcConditionType left, NcConditionType right)
Parameters
Type | Name | Description |
---|---|---|
NcConditionType | left | |
NcConditionType | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(NcConditionType, NcConditionType)
Declaration
public static bool operator !=(NcConditionType left, NcConditionType right)
Parameters
Type | Name | Description |
---|---|---|
NcConditionType | left | |
NcConditionType | right |
Returns
Type | Description |
---|---|
System.Boolean |