org.grinvin.gui.components

Interface AcceptsInvariant

Known Implementing Classes:
FilterListComponent, GraphPropertiesTableComponent, InvariantListComponent

public interface AcceptsInvariant

Author:
adpeeter

Nested Class Summary

class
AcceptsInvariant.Reason

Method Summary

AcceptsInvariant.Reason
acceptsInvariant(InvariantValue> clazz)
Check whether invariants that return this type can be accepted.
AcceptsInvariant.Reason
acceptsInvariant(Invariant invariant)
Check whether the invariant can be accepted.
AcceptsInvariant.Reason
addInvariant(Invariant invariant)
Accept an invariant.

Method Details

acceptsInvariant

public AcceptsInvariant.Reason acceptsInvariant(InvariantValue> clazz)
Check whether invariants that return this type can be accepted. This is used to determine if an invariant created by an invariant factory can be accepted, without the need to create that invariant.

acceptsInvariant

public AcceptsInvariant.Reason acceptsInvariant(Invariant invariant)
Check whether the invariant can be accepted.

addInvariant

public AcceptsInvariant.Reason addInvariant(Invariant invariant)
Accept an invariant.