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() |
protected UniqueSetting(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature attribute)
eObject
- an EObject
attribute
- an EAttribute of the given eObject
public static UniqueSetting createSetting(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature attribute)
eObject
- an EObject
attribute
- an EAttribute of the given eObject
public static UniqueSetting createSetting(org.eclipse.emf.ecore.EStructuralFeature.Setting setting)
setting
- the EStructuralFeature.Setting
to wrappublic int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public org.eclipse.emf.ecore.EObject getEObject()
EObject
.EObject
public org.eclipse.emf.ecore.EStructuralFeature getEStructuralFeature()
EObject
.public org.eclipse.emf.ecore.EStructuralFeature.Setting getSetting()
EStructuralFeature.Setting
wrapped in this UniqueSetting
.EStructuralFeature.Setting
Copyright © 2016. All rights reserved.