Click or drag to resize

ConditionalAttribute Class

EDI DOM validation attribute for conditional EDI data elements. Used for HIPAA SNIP Type 4. If the annotated EDI data element is not null then all elements at the specified positions must also be not null.
Inheritance Hierarchy

Namespace:  EdiFabric.Core.Annotations.Validation
Assembly:  EdiFabric.Core (in EdiFabric.Core.dll) Version: 1.0.0.0 (9.7.7.0)
Syntax
public class ConditionalAttribute : ValidationAttribute

The ConditionalAttribute type exposes the following members.

Constructors
  NameDescription
Public methodConditionalAttribute
Initializes a new instance of the ConditionalAttribute class.
Top
Properties
  NameDescription
Public propertyPositions
The positions of the conditional data elements.
Top
Methods
  NameDescription
Public methodValidateEdi
Detects if an EDI data element is valid according to its condition.
(Overrides ValidationAttributeValidateEdi(ValidationContext).)
Top
Extension Methods
  NameDescription
Public Extension MethodValidate(SyntaxSet, Char)Overloaded.
Validates an EDI item according to its EDI DOM validation attributes.
(Defined by ValidationExtensions.)
Public Extension MethodValidate(Int32, SyntaxSet, Char, Int32)Overloaded.
Validates an item according to its EDI DOM validation attributes. This is internally called to validate an EdiMessage.
(Defined by ValidationExtensions.)
Top
Examples
In N4 segment CountrySubdivisionCode_07 can only exist if CountryCode_04 exists.
See Also