Example #1
0
        public SemanticValidator(FileFormatVersions format, ApplicationType app)
        {
            FileFormat = format;
            AppType    = app;

            _curReg = new SemanticConstraintRegistry(format, app);
        }
Example #2
0
 public UniqueAttributeValueConstraint(byte attribute, bool caseSensitive, bool partLevel, SemanticConstraintRegistry reg)
     : base(SemanticValidationLevel.Part)
 {
     _attribute     = attribute;
     _reg           = reg;
     _caseSensitive = caseSensitive;
     _partLevel     = partLevel;
 }
 public UniqueAttributeValueConstraint(byte attribute, bool caseSensitive, bool partLevel, SemanticConstraintRegistry reg)
     : base(SemanticValidationLevel.Part)
 {
     _attribute = attribute;
     _reg       = reg;
     _partLevel = partLevel;
     _comparer  = caseSensitive ? StringComparer.Ordinal : StringComparer.OrdinalIgnoreCase;
     _values    = new HashSet <string>(_comparer);
 }