java.lang.Object
java.lang.Enum<EdgeOrigin>
com.darkcollective.relix.symbol.graph.EdgeOrigin
All Implemented Interfaces:
Serializable, Comparable<EdgeOrigin>, Constable

public enum EdgeOrigin extends Enum<EdgeOrigin>
How a Relationship entered the schema graph.

Origin is load-bearing: a declared edge is ground truth and its violations are hard analysis errors, while learned and inferred edges are provisional — they must stay visibly distinguishable and correctable, and a stale one is dropped with a warning rather than failing analysis.

  • Enum Constant Details

    • DECLARED

      public static final EdgeOrigin DECLARED
      Declared in a .relix source file — a relate statement or a references: block. Ground truth; validated as a hard error.
    • LEARNED

      public static final EdgeOrigin LEARNED
      Learned during a session — supplied through conversational acquisition ("how do orders relate to customers?") or captured from the joins a user actually wrote. Session-scoped until persistence decides otherwise.
    • INFERRED

      public static final EdgeOrigin INFERRED
      Inferred by examining data — value containment against candidate keys . A suggestion, never silently authoritative.
  • Method Details

    • values

      public static EdgeOrigin[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EdgeOrigin valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null