org.eclipse.xtext.linking.lazy
Class SettingDelegate
java.lang.Object
org.eclipse.xtext.linking.lazy.SettingDelegate
- All Implemented Interfaces:
- org.eclipse.emf.ecore.EStructuralFeature.Setting
public class SettingDelegate
- extends java.lang.Object
- implements org.eclipse.emf.ecore.EStructuralFeature.Setting
Delegating implementation of an EStructuralFeature.Setting
to be independent
of other's hashCode()
and equals(Object)
implementation.
The criteria is here: The settings's eObject and eStructuralFeature have to be equal.
- Author:
- Sebastian Zarnekow
Constructor Summary |
SettingDelegate(org.eclipse.emf.ecore.EStructuralFeature.Setting delegate)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
SettingDelegate
public SettingDelegate(org.eclipse.emf.ecore.EStructuralFeature.Setting delegate)
get
public java.lang.Object get(boolean resolve)
- Specified by:
get
in interface org.eclipse.emf.ecore.EStructuralFeature.Setting
getEObject
public org.eclipse.emf.ecore.EObject getEObject()
- Specified by:
getEObject
in interface org.eclipse.emf.ecore.EStructuralFeature.Setting
getEStructuralFeature
public org.eclipse.emf.ecore.EStructuralFeature getEStructuralFeature()
- Specified by:
getEStructuralFeature
in interface org.eclipse.emf.ecore.EStructuralFeature.Setting
isSet
public boolean isSet()
- Specified by:
isSet
in interface org.eclipse.emf.ecore.EStructuralFeature.Setting
set
public void set(java.lang.Object newValue)
- Specified by:
set
in interface org.eclipse.emf.ecore.EStructuralFeature.Setting
unset
public void unset()
- Specified by:
unset
in interface org.eclipse.emf.ecore.EStructuralFeature.Setting
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object