Class JStatuteType
A data type for a law, rule, or ordinance within a jurisdiction.
Inheritance
Implements
Inherited Members
Namespace: NiemTypes
Assembly: EidoLib.dll
Syntax
[DataContract]
public class JStatuteType : IEquatable<JStatuteType>
Properties
Category
A kind of statute. NIEM reference is j:StatuteCategoryText
Declaration
[DataMember(Name = "category")]
public List<NcTextType> Category { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A kind of statute. NIEM reference is j:StatuteCategoryText |
CategoryCode
A kind of statute. NIEM reference is j:StatuteCategoryCode
Declaration
[DataMember(Name = "categoryCode")]
public List<NcStatuteCategoryCodeType> CategoryCode { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcStatuteCategoryCodeType> | A kind of statute. NIEM reference is j:StatuteCategoryCode |
CodeIdentification
An identification number of a set of laws for a particular jurisdiction. NIEM reference is j:StatuteCodeIdentification
Declaration
[DataMember(Name = "codeIdentification")]
public List<NcIdentificationType> CodeIdentification { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcIdentificationType> | An identification number of a set of laws for a particular jurisdiction. NIEM reference is j:StatuteCodeIdentification |
CodeSectionIdentification
An identification of a section or category within a code book. NIEM reference is j:StatuteCodeSectionIdentification
Declaration
[DataMember(Name = "codeSectionIdentification")]
public List<NcIdentificationType> CodeSectionIdentification { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcIdentificationType> | An identification of a section or category within a code book. NIEM reference is j:StatuteCodeSectionIdentification |
Context
jStatuteType JSON-LD context
Declaration
[DataMember(Name = "@context")]
public JStatuteType.ContextEnum? Context { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<JStatuteType.ContextEnum> | jStatuteType JSON-LD context |
Description
A description of a statute. NIEM reference is j:StatuteDescriptionText
Declaration
[DataMember(Name = "description")]
public List<NcTextType> Description { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A description of a statute. NIEM reference is j:StatuteDescriptionText |
EnactmentDate
A date a statute was enacted and came into effect. NIEM reference is j:StatuteEnactmentDate
Declaration
[DataMember(Name = "enactmentDate")]
public List<NcDateType> EnactmentDate { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcDateType> | A date a statute was enacted and came into effect. NIEM reference is j:StatuteEnactmentDate |
IsOffenseEnhanceable
True if a statute refers to an offense that may be made more serious due to circumstances related to the incident; false otherwise. NIEM reference is j:StatuteOffenseEnhanceableIndicator
Declaration
[DataMember(Name = "isOffenseEnhanceable")]
public List<NiemXsboolean> IsOffenseEnhanceable { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NiemXsboolean> | True if a statute refers to an offense that may be made more serious due to circumstances related to the incident; false otherwise. NIEM reference is j:StatuteOffenseEnhanceableIndicator |
Jurisdiction
An area in which a statute applies. NIEM reference is j:StatuteJurisdiction
Declaration
[DataMember(Name = "jurisdiction")]
public List<NcJurisdictionType> Jurisdiction { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcJurisdictionType> | An area in which a statute applies. NIEM reference is j:StatuteJurisdiction |
Keyword
A brief description of a Statute which makes use of catchwords. NIEM reference is j:StatuteKeywordText
Declaration
[DataMember(Name = "keyword")]
public List<NcTextType> Keyword { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A brief description of a Statute which makes use of catchwords. NIEM reference is j:StatuteKeywordText |
Level
A level of crime a statute applies to. NIEM reference is j:StatuteLevelText
Declaration
[DataMember(Name = "level")]
public List<NcTextType> Level { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A level of crime a statute applies to. NIEM reference is j:StatuteLevelText |
OffenseApcoCode
A criminal offense within a code book. NIEM reference is j:StatuteOffenseAPCOCode
Declaration
[DataMember(Name = "offenseApcoCode")]
public List<ApcoIncidentCategoryCodeType> OffenseApcoCode { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<ApcoIncidentCategoryCodeType> | A criminal offense within a code book. NIEM reference is j:StatuteOffenseAPCOCode |
OffenseIdentification
An identification of a criminal offense within a code book. NIEM reference is j:StatuteOffenseIdentification
Declaration
[DataMember(Name = "offenseIdentification")]
public List<NcIdentificationType> OffenseIdentification { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcIdentificationType> | An identification of a criminal offense within a code book. NIEM reference is j:StatuteOffenseIdentification |
OffenseStateCode
A literal description of a criminal offense within a state code book. NIEM reference is j:StatuteOffenseStateCodeText
Declaration
[DataMember(Name = "offenseStateCode")]
public List<NcTextType> OffenseStateCode { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A literal description of a criminal offense within a state code book. NIEM reference is j:StatuteOffenseStateCodeText |
OffenseUcrCode
A criminal offense within a code book. NIEM reference is j:StatuteOffenseUCRCode
Declaration
[DataMember(Name = "offenseUcrCode")]
public List<UcrOffenseCodeType> OffenseUcrCode { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<UcrOffenseCodeType> | A criminal offense within a code book. NIEM reference is j:StatuteOffenseUCRCode |
RepealDate
A date a statute was repealed and no longer applied. NIEM reference is j:StatuteRepealDate
Declaration
[DataMember(Name = "repealDate")]
public List<NcDateType> RepealDate { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcDateType> | A date a statute was repealed and no longer applied. NIEM reference is j:StatuteRepealDate |
Status
A current status of a statute. NIEM reference is j:StatuteStatus
Declaration
[DataMember(Name = "status")]
public List<NcStatusType> Status { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcStatusType> | A current status of a statute. NIEM reference is j:StatuteStatus |
Text
A full text of a statute or law. NIEM reference is j:StatuteText
Declaration
[DataMember(Name = "text")]
public List<NcTextType> Text { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A full text of a statute or law. NIEM reference is j:StatuteText |
Methods
Equals(JStatuteType)
Returns true if JStatuteType instances are equal
Declaration
public bool Equals(JStatuteType other)
Parameters
Type | Name | Description |
---|---|---|
JStatuteType | other | Instance of JStatuteType 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(JStatuteType, JStatuteType)
Declaration
public static bool operator ==(JStatuteType left, JStatuteType right)
Parameters
Type | Name | Description |
---|---|---|
JStatuteType | left | |
JStatuteType | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(JStatuteType, JStatuteType)
Declaration
public static bool operator !=(JStatuteType left, JStatuteType right)
Parameters
Type | Name | Description |
---|---|---|
JStatuteType | left | |
JStatuteType | right |
Returns
Type | Description |
---|---|
System.Boolean |