public class NameHelper
extends java.lang.Object
| Constructor and Description |
|---|
NameHelper() |
| Modifier and Type | Method and Description |
|---|---|
static org.eclipse.emf.ecore.EAttribute |
getNamingAttribute(org.eclipse.emf.ecore.EObject eObject)
Retrieve the attribute which symbolizes the name of the given object.
|
static void |
setUniqueString(org.eclipse.emf.ecore.EObject object,
org.eclipse.emf.ecore.EObject container,
org.eclipse.emf.ecore.EAttribute attribute,
java.lang.String defaultString,
java.lang.String pattern)
Set string to the given object that is unique in the given container.
|
public static void setUniqueString(org.eclipse.emf.ecore.EObject object,
org.eclipse.emf.ecore.EObject container,
org.eclipse.emf.ecore.EAttribute attribute,
java.lang.String defaultString,
java.lang.String pattern)
object - named element.container - container of named element.attribute - EAttribute for naming feature.defaultString - default string of the object. First parameter in the pattern {1}pattern - pattern that the resulting string will match.public static org.eclipse.emf.ecore.EAttribute getNamingAttribute(org.eclipse.emf.ecore.EObject eObject)
eObject -