Exemplo 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);
        }
Exemplo 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);
        }
Exemplo 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()));
        }