Class ElementState<O extends ObjectType>

  • All Implemented Interfaces:
    Serializable, Cloneable

    public class ElementState<O extends ObjectType>
    extends Object
    implements Serializable, Cloneable
    Encapsulates the maintenance of the state of an element (focus, projection). Holds mainly: - basic information like type, definition, and OID - state: old, current, new - deltas: primary, secondary, current (i.e. current -> new), summary (i.e. old -> new) - archived secondary deltas - flags related to the validity of computed components (see below), to avoid needless recomputation - various other state flags (see in the description) Implementation notes: 1. Computed components (current, summary delta, adjusted current object, new object) are evaluated lazily. Their validity is indicated by appropriate flags, driving their (re)computation. 2. Because of their complexity and interdependence, state-changing operations are grouped in a separate region: State updates.
    See Also:
    Serialized Form