Interface Name
public interface Name
The unique id of an
item
.- Since:
- 1.7.0
- Author:
- Michael J. Simons
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 aCatalogItem
has no database intrinsic namegetValue()
static Name
Turns a name value into aName
.
-
Method Details
-
of
Turns a name value into aName
. 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 aCatalogItem
has no database intrinsic name- Parameters:
classType
- Class of the itemitemType
- Type (constraint or index)targetEntityType
- Node or relationshipidentifier
- The identifier as defined with the constrained or generated by the databaseproperties
- The set of propertiesoptions
- The options to this object- Returns:
- a generated name
-
getValue
String getValue()- Returns:
- the
string representation
of this instance
-