Interface Name


public interface Name
The unique id of an item.
Since:
1.7.0
Author:
Michael J. Simons
  • Method Details

    • of

      static Name of(String value)
      Turns a name value into a Name. The value might be null
      Parameters:
      value - The value of the name
      Returns:
      A name
    • generate

      static Name generate(Class<?> classType, ItemType itemType, TargetEntityType targetEntityType, String identifier, Collection<String> properties, String options)
      Generates a name for the given combination of attributes in case a CatalogItem has no database intrinsic name
      Parameters:
      classType - Class of the item
      itemType - Type (constraint or index)
      targetEntityType - Node or relationship
      identifier - The identifier as defined with the constrained or generated by the database
      properties - The set of properties
      options - The options to this object
      Returns:
      a generated name
    • getValue

      String getValue()
      Returns:
      the string representation of this instance