Class Element

  • All Implemented Interfaces:
    Serializable, ElementId
    Direct Known Subclasses:
    Edge, Entity

    public abstract class Element
    extends Object
    implements ElementId
    Elements are the fundamental building blocks of the Graph. Elements should have identifier(s), an group and an optional collection of properties. Elements are designed so that multiple elements can share the same identifier(s) but are distinguished via their group.
    • An group is a way of categorising the element and grouping elements together that share the same set of properties.
    • The identifier(s) along with the group should uniquely identify an element.
    • The properties are any other properties of the element. Properties should be split out as much as possible into simple properties, enabling validation, aggregation, transformation and filtering to be done more precisely.

    Equals has been overridden to check groups are equal. NOTE - it does not compare property values.

    See Also:
    Serialized Form