Esempio n. 1
0
        public static ShapeMatchCriterion GetDefaultShapeMatchCriterion(
            [CanBeNull] XmlVerificationOptions verificationOptions)
        {
            const ShapeMatchCriterion defaultValue = ShapeMatchCriterion.EqualEnvelope;

            if (verificationOptions == null)
            {
                return(defaultValue);
            }

            XmlExceptionConfiguration exceptions = verificationOptions.Exceptions;

            return(exceptions?.DefaultShapeMatchCriterion ?? defaultValue);
        }
Esempio n. 2
0
        public static ExceptionObjectStatus GetDefaultExceptionObjectStatus(
            [CanBeNull] XmlVerificationOptions verificationOptions)
        {
            const ExceptionObjectStatus defaultValue = ExceptionObjectStatus.Active;

            if (verificationOptions == null)
            {
                return(defaultValue);
            }

            XmlExceptionConfiguration exceptions = verificationOptions.Exceptions;

            return(exceptions?.DefaultExceptionObjectStatus ?? defaultValue);
        }
Esempio n. 3
0
        public static IWorkspace GetExceptionWorkspace(
            [NotNull] XmlVerificationOptions verificationOptions)
        {
            XmlExceptionConfiguration exceptions = verificationOptions.Exceptions;

            if (exceptions == null)
            {
                return(null);
            }

            string dataSource = exceptions.DataSource;

            return(StringUtils.IsNullOrEmptyOrBlank(dataSource)
                                       ? null
                                       : WorkspaceUtils.OpenWorkspace(dataSource.Trim()));
        }