Annotation Interface Node


@Retention(RUNTIME) @Target(TYPE) @Documented @API(status=STABLE, since="6.0") public @interface Node
The annotation to configure the mapping from a node with a given set of labels to a class and vice versa.
Since:
6.0
Author:
Michael J. Simons
  • Element Details

    • value

      @AliasFor("labels") String[] value
      Returns:
      See labels().
      Default:
      {}
    • labels

      @AliasFor("value") String[] labels
      Returns:
      The labels to identify a node with that is supposed to be mapped to the class annotated with @Node. The first label will be the primary label if primaryLabel() was not set explicitly.
      Default:
      {}
    • primaryLabel

      String primaryLabel
      Returns:
      The explicit primary label to identify a node.
      Default:
      ""