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