public class UniqueSetting extends Object
Convenience class for managing settings.
Provides an equals method that returns true if the EObject and the
EStructuralFeature are the same.
| Modifier | Constructor and Description |
|---|---|
protected |
UniqueSetting(org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.ecore.EStructuralFeature attribute)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static UniqueSetting |
createSetting(org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.ecore.EStructuralFeature attribute)
Convenience method for creating a setting.
|
static UniqueSetting |
createSetting(org.eclipse.emf.ecore.EStructuralFeature.Setting setting)
Convenience method for creating a setting.
|
boolean |
equals(Object obj) |
org.eclipse.emf.ecore.EObject |
getEObject()
Returns the
EObject. |
org.eclipse.emf.ecore.EStructuralFeature |
getEStructuralFeature()
Returns the EAttribute of the
EObject. |
org.eclipse.emf.ecore.EStructuralFeature.Setting |
getSetting()
Return the
EStructuralFeature.Setting wrapped in this UniqueSetting. |
int |
hashCode() |
String |
toString() |
protected UniqueSetting(org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.ecore.EStructuralFeature attribute)
eObject - an EObjectattribute - an EAttribute of the given eObjectpublic static UniqueSetting createSetting(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature attribute)
eObject - an EObjectattribute - an EAttribute of the given eObjectpublic static UniqueSetting createSetting(org.eclipse.emf.ecore.EStructuralFeature.Setting setting)
setting - the EStructuralFeature.Setting to wrappublic int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public org.eclipse.emf.ecore.EObject getEObject()
EObject.EObjectpublic org.eclipse.emf.ecore.EStructuralFeature getEStructuralFeature()
EObject.public org.eclipse.emf.ecore.EStructuralFeature.Setting getSetting()
EStructuralFeature.Setting wrapped in this UniqueSetting.EStructuralFeature.SettingCopyright © 2020. All rights reserved.