Class JTermType
A data type for a duration length either in specific terms or as a range.
Inherited Members
Namespace: NiemTypes
Assembly: EidoLib.dll
Syntax
[DataContract]
public class JTermType : NcActivityType, IEquatable<NcActivityType>, IEquatable<JTermType>
Properties
Context
jTermType JSON-LD context
Declaration
[DataMember(Name = "@context")]
public JTermType.ContextEnum? Context { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<JTermType.ContextEnum> | jTermType JSON-LD context |
Duration
A specific range or duration of a term. NIEM reference is j:TermDuration
Declaration
[DataMember(Name = "duration")]
public List<NiemXsduration> Duration { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NiemXsduration> | A specific range or duration of a term. NIEM reference is j:TermDuration |
IsLife
True if the term is not for a set duration length but for life; false otherwise. NIEM reference is j:TermLifeIndicator
Declaration
[DataMember(Name = "isLife")]
public List<NiemXsboolean> IsLife { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NiemXsboolean> | True if the term is not for a set duration length but for life; false otherwise. NIEM reference is j:TermLifeIndicator |
MaximumDuration
A maximum range or duration for a term. NIEM reference is j:TermMaximumDuration
Declaration
[DataMember(Name = "maximumDuration")]
public List<NiemXsduration> MaximumDuration { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NiemXsduration> | A maximum range or duration for a term. NIEM reference is j:TermMaximumDuration |
MinimumDuration
A minimum range or duration for a term. NIEM reference is j:TermMinimumDuration
Declaration
[DataMember(Name = "minimumDuration")]
public List<NiemXsduration> MinimumDuration { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NiemXsduration> | A minimum range or duration for a term. NIEM reference is j:TermMinimumDuration |
Methods
Equals(JTermType)
Returns true if JTermType instances are equal
Declaration
public bool Equals(JTermType other)
Parameters
Type | Name | Description |
---|---|---|
JTermType | other | Instance of JTermType 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(JTermType, JTermType)
Declaration
public static bool operator ==(JTermType left, JTermType right)
Parameters
Type | Name | Description |
---|---|---|
JTermType | left | |
JTermType | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(JTermType, JTermType)
Declaration
public static bool operator !=(JTermType left, JTermType right)
Parameters
Type | Name | Description |
---|---|---|
JTermType | left | |
JTermType | right |
Returns
Type | Description |
---|---|
System.Boolean |