public interface InstanceNameProvider
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getInstanceName(java.lang.Object instance)
Get entity instance name defined by
InstanceName annotation |
java.util.Collection<MetaProperty> |
getInstanceNameRelatedProperties(MetaClass metaClass,
boolean useOriginal)
Return a collection of properties included into entity's name pattern (see
InstanceName ). |
java.lang.String getInstanceName(java.lang.Object instance)
InstanceName
annotationinstance
- instancejava.util.Collection<MetaProperty> getInstanceNameRelatedProperties(MetaClass metaClass, boolean useOriginal)
InstanceName
).metaClass
- entity metaclassuseOriginal
- if true, and if the given metaclass doesn't define a InstanceName
and if it is an
extended entity, this method tries to find a name pattern in an original entity