Identifier (record)

Combines LogicalType and member identification (from properties, collections or actions), to a fully qualified feature identifier.

For Identifier (s) of type Identifier.Type#CLASS member information is left empty.

API

Identifier.java
record Identifier {
  Identifier classIdentifier(LogicalType typeIdentifier)
  Identifier propertyIdentifier(LogicalType typeIdentifier, String propertyName)
  Identifier collectionIdentifier(LogicalType typeIdentifier, String collectionName)
  Identifier methodIdentifier(LogicalType typeIdentifier, ResolvedMethod method)     (1)
  Identifier actionIdentifier(LogicalType typeIdentifier, String actionName, Class<?>... parameterClasses)
  Identifier actionIdentifier(LogicalType typeIdentifier, String actionName, Can<String> parameterClassNames)
  String getFullIdentityString()     (2)
  String getMemberNameAndParameterClassNamesIdentityString()     (3)
  TranslationContext getTranslationContext()     (4)
  Identifier withParameterIndex(int parameterIndex)
  String getLogicalIdentityString(String delimiter)
  String getClassNaturalName()
  String getMemberNaturalName()
  Can<String> getMemberParameterClassNaturalNames()
  int compareTo(Identifier other)
  boolean equals(Object obj)
  boolean isEqualTo(Identifier other)
  int hashCode()
  String toString()
  String getMemberLogicalName()
  int getParameterIndex()
  Can<String> getMemberParameterClassNames()
  Type getType()
}
1 methodIdentifier(LogicalType, ResolvedMethod)

for reporting orphaned methods

2 getFullIdentityString()

Fully qualified Identity String. (class-name + member-logical-name + param-class-names)

3 getMemberNameAndParameterClassNamesIdentityString()

Member Identity String (class omitted), including parameters if any.

4 getTranslationContext()

Context to be used for i18n translation.

Members

methodIdentifier(LogicalType, ResolvedMethod)

for reporting orphaned methods

getFullIdentityString()

Fully qualified Identity String. (class-name + member-logical-name + param-class-names)

getMemberNameAndParameterClassNamesIdentityString()

Member Identity String (class omitted), including parameters if any.

getTranslationContext()

Context to be used for i18n translation.