Class IndexedSetting
- java.lang.Object
-
- org.eclipse.emfforms.internal.core.services.segments.index.IndexedSetting
-
- All Implemented Interfaces:
org.eclipse.emf.ecore.EStructuralFeature.Setting
public class IndexedSetting extends java.lang.Object implements org.eclipse.emf.ecore.EStructuralFeature.Setting
AnIndexedSetting
is aEStructuralFeature.Setting
whoseEStructuralFeature
is a multi reference or attribute that is indexed. This means the value of the Setting is the Object at theIndexedSetting's
index in the list referenced by the structural feature. In a "standard" Setting, the whole list would be the settings value.- Author:
- Lucas Koehler
-
-
Constructor Summary
Constructors Constructor Description IndexedSetting(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, int index)
Creates a newIndexedSetting
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
get(boolean resolve)
org.eclipse.emf.ecore.EObject
getEObject()
org.eclipse.emf.ecore.EStructuralFeature
getEStructuralFeature()
int
getIndex()
Returns the index of thisIndexedSetting
.boolean
isSet()
void
set(java.lang.Object newValue)
void
unset()
-
-
-
Constructor Detail
-
IndexedSetting
public IndexedSetting(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, int index)
Creates a newIndexedSetting
.- Parameters:
eObject
- TheEObject
holding a listeStructuralFeature
- The specific feature holding the listindex
- The index that defines which list item is the value of thisEStructuralFeature.Setting
-
-
Method Detail
-
getEObject
public org.eclipse.emf.ecore.EObject getEObject()
- Specified by:
getEObject
in interfaceorg.eclipse.emf.ecore.EStructuralFeature.Setting
-
getEStructuralFeature
public org.eclipse.emf.ecore.EStructuralFeature getEStructuralFeature()
- Specified by:
getEStructuralFeature
in interfaceorg.eclipse.emf.ecore.EStructuralFeature.Setting
-
get
public java.lang.Object get(boolean resolve)
- Specified by:
get
in interfaceorg.eclipse.emf.ecore.EStructuralFeature.Setting
-
set
public void set(java.lang.Object newValue)
- Specified by:
set
in interfaceorg.eclipse.emf.ecore.EStructuralFeature.Setting
-
isSet
public boolean isSet()
- Specified by:
isSet
in interfaceorg.eclipse.emf.ecore.EStructuralFeature.Setting
-
unset
public void unset()
- Specified by:
unset
in interfaceorg.eclipse.emf.ecore.EStructuralFeature.Setting
-
getIndex
public int getIndex()
Returns the index of thisIndexedSetting
. The index defines the list index of this setting's value: The list is resolved from the holdingEObject
and theEStructuralFeature
of thisIndexedSetting
.- Returns:
- The list index
-
-