Documentation
Table of Contents

Class EditImpact

Namespace
IntentSharp.Documents
Assembly
IntentSharp.dll

What a proposed version of a document would do, as an IDocumentValidator assessed it: whether it loads, the problems found, the items it changes, and whether it widens a security item.

public sealed class EditImpact
Inheritance
object
EditImpact
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Extension Methods

Constructors

EditImpact()

Creates an impact. Every property has its empty value, and LoadsCleanly is false until set.

Properties

Changes

The named items the proposed text changes; empty when none.

Clean

An impact that loads cleanly and changes nothing.

LoadsCleanly

True when the proposed text loads with no problem. False, the default, refuses the edit.

Problems

The problems found; empty when none.

WidenedSubjects

The names of the subjects or settings whose security the proposed text widens; empty when it widens none.

WidensSecurity

True when the proposed text widens a security item: allows more than the running text allows, or removes a security limit. A wrapper around the edit writer that holds only such edits tests this one value.

Methods

Combine(IEnumerable<EditImpact>)

Combines the impacts of several validators of one edit: it loads cleanly only when every impact does, the problems and changes are concatenated in order, it widens security when any impact does, and the widened names are the union in order of first appearance (compared ordinally). No impacts combine to a clean impact; a caller that requires at least one validator checks that itself.